@lovrabet/rabetbase-cli 2.5.10-beta.4 → 2.5.10-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/api-doc.js +1 -1
- package/lib/api/api-group.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/api/generate-sdk-config-file.js +1 -1
- package/lib/api/legacy-api-file.js +1 -1
- package/lib/api/model-registry-file.js +1 -1
- package/lib/api/model-registry-scaffold.js +1 -1
- package/lib/api/model-source.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/detail.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/logs.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/delete.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/init.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/dataset/batch-design.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/cross-relation-create.js +1 -1
- package/lib/commands/dataset/cross-relation-delete.js +1 -1
- package/lib/commands/dataset/cross-relation-list.js +1 -1
- package/lib/commands/dataset/cross-relation-shared.js +1 -1
- package/lib/commands/dataset/cross-relation-update.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/design-context.js +1 -1
- package/lib/commands/dataset/design-start.js +1 -1
- package/lib/commands/dataset/design-status.js +1 -1
- package/lib/commands/dataset/design-sync-retry.js +1 -1
- package/lib/commands/dataset/design-sync-status.js +1 -1
- package/lib/commands/dataset/design-validate.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-restore.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/dataset/user-deleted-field-list.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/cross-db-analysis-shared.js +1 -1
- package/lib/commands/db/cross-db-analyze-latest.js +1 -1
- package/lib/commands/db/cross-db-analyze-start.js +1 -1
- package/lib/commands/db/cross-db-analyze-status.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/table-diff-shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/deployment/index.js +1 -1
- package/lib/commands/deployment/sync-all.js +1 -1
- package/lib/commands/deployment/sync-jobs.js +1 -1
- package/lib/commands/deployment/sync-status.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/flow/create.js +1 -1
- package/lib/commands/flow/detail.js +1 -1
- package/lib/commands/flow/index.js +1 -1
- package/lib/commands/flow/list.js +1 -1
- package/lib/commands/flow/page-list.js +1 -1
- package/lib/commands/flow/publish.js +1 -1
- package/lib/commands/flow/runtime-resources-shared.js +1 -1
- package/lib/commands/flow/runtime-role-list.js +1 -1
- package/lib/commands/flow/runtime-role-user-list.js +1 -1
- package/lib/commands/flow/runtime-user-search.js +1 -1
- package/lib/commands/flow/shared.js +1 -1
- package/lib/commands/flow/update.js +1 -1
- package/lib/commands/flow/validate.js +1 -1
- package/lib/commands/instant-api-policy/current.js +1 -1
- package/lib/commands/instant-api-policy/index.js +1 -1
- package/lib/commands/instant-api-policy/init.js +1 -1
- package/lib/commands/instant-api-policy/publish.js +1 -1
- package/lib/commands/instant-api-policy/pull.js +1 -1
- package/lib/commands/instant-api-policy/revision.js +1 -1
- package/lib/commands/instant-api-policy/revisions.js +1 -1
- package/lib/commands/instant-api-policy/rollback.js +1 -1
- package/lib/commands/instant-api-policy/shared.js +1 -1
- package/lib/commands/instant-api-policy/validate.js +1 -1
- package/lib/commands/issue/context.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/search.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/path.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/subapp-assets.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/subapp-assets-status.js +1 -1
- package/lib/commands/menu/subapp-assets-update.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/api-architecture-upgrade.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/domain-routing-sync.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/rule/get.js +1 -1
- package/lib/commands/rule/index.js +1 -1
- package/lib/commands/rule/list.js +1 -1
- package/lib/commands/rule/set.js +1 -1
- package/lib/commands/rule/shared.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/feishu-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/domain-config.js +1 -1
- package/lib/config/project-domain-routing.js +1 -1
- package/lib/config/region-config.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/region.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/constant/routing-profile.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/hook-directory.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/cross-db-analysis.js +1 -1
- package/lib/core/cross-db-relation.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/flow-config.js +1 -1
- package/lib/core/instant-api-policy/config.js +1 -1
- package/lib/core/instant-api-policy/endpoints.js +1 -1
- package/lib/core/kb-management-client.js +1 -1
- package/lib/core/kb-search-client.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/lr-smart-jsx.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/supported-flags.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/generated/official-routing.js +1 -1
- package/lib/generated/routing-contract.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/services/dataset-design/checkpoint.js +1 -1
- package/lib/services/dataset-design/commands.js +1 -1
- package/lib/services/dataset-design/contract.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +4 -4
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
- package/skills/rabetbase-page-generation/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a199_0x2be3bc=a199_0x24fd;(function(_0xaa4e9,_0x3e1750){const _0x19ab2b=a199_0x24fd,_0x257b1f=_0xaa4e9();while(!![]){try{const _0x33ffa4=-parseInt(_0x19ab2b(0x13a))/0x1*(parseInt(_0x19ab2b(0x15c))/0x2)+parseInt(_0x19ab2b(0x147))/0x3+-parseInt(_0x19ab2b(0x143))/0x4+-parseInt(_0x19ab2b(0x155))/0x5+parseInt(_0x19ab2b(0x164))/0x6+parseInt(_0x19ab2b(0x14a))/0x7+-parseInt(_0x19ab2b(0x12f))/0x8*(-parseInt(_0x19ab2b(0x15e))/0x9);if(_0x33ffa4===_0x3e1750)break;else _0x257b1f['push'](_0x257b1f['shift']());}catch(_0x2b3e14){_0x257b1f['push'](_0x257b1f['shift']());}}}(a199_0x1e22,0x2e3f9));import{readFile}from'node:fs/promises';function a199_0x1e22(){const _0x29d499=['pageName\x20cannot\x20exceed\x20100\x20characters.','trim','menuId','BLANK','keys','isInteger','menuPath','ONEPAGE','write','files','includes','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','length','784rYBzNr','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir.','POST','/smartapi/webcode/page/create','Created\x20Custom\x20Page\x20','Custom\x20Page\x20pattern\x20not\x20found:\x20','string','page-content','../../../templates/custom-pages','parse','apiError','1OKKWkj','compress','--page-dir\x20must\x20contain\x20at\x20least\x20one\x20page\x20file.','parent-menu-id','version','DASHBOARD','str','Built-in\x20Custom\x20Page\x20pattern\x20(cannot\x20be\x20used\x20with\x20--page-dir)','--page-pattern\x20must\x20be\x20BLANK,\x20ONEPAGE,\x20or\x20DASHBOARD.','1382768AUcPYA','name','pageId','Would\x20create\x20Custom\x20Page\x20','451368XVHlTi','utf8','CUSTOM','617239GmupqQ','create','object','appCode','some','parentMenuId','--page-pattern\x20and\x20--page-dir\x20cannot\x20be\x20used\x20together.','page-dir','isArray','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page-type','1435585uveRyc','Provide\x20--page-pattern\x20BLANK,\x20ONEPAGE,\x20DASHBOARD,\x20or\x20--page-dir\x20<dir>.','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','validation','values','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','374966NDsnkP','page-pattern','57906CiOScZ','isNaN','number','stringify','pageName','page\x20create\x20does\x20not\x20accept\x20--page-type.','843360IWgunt','Directory\x20containing\x20all\x20page\x20files\x20(cannot\x20be\x20used\x20with\x20--page-pattern)','num','page.create','\x20and\x20its\x20menu\x20entry.'];a199_0x1e22=function(){return _0x29d499;};return a199_0x1e22();}import{dirname,join,resolve}from'node:path';import{fileURLToPath}from'node:url';import{APPCODE_FLAG}from'../../commands/common/flags.js';import{readCustomPageDirectory}from'../../core/page/file-system.js';import{createCustomPage}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,validateCustomPageContent}from'./custom/shared.js';function a199_0x24fd(_0xc4b3da,_0x3a7fcd){_0xc4b3da=_0xc4b3da-0x12f;const _0x1e22f6=a199_0x1e22();let _0x24fd20=_0x1e22f6[_0xc4b3da];return _0x24fd20;}const CUSTOM_PAGE_PATTERNS=[a199_0x2be3bc(0x16c),a199_0x2be3bc(0x170),a199_0x2be3bc(0x13f)],CUSTOM_PAGE_TEMPLATE_DIR=resolve(dirname(fileURLToPath(import.meta.url)),a199_0x2be3bc(0x137));export const pageCreate={'service':'page','command':a199_0x2be3bc(0x14b),'description':'Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20local\x20directory','risk':a199_0x2be3bc(0x171),'defaultOutputFormat':a199_0x2be3bc(0x13b),'structuredErrors':!![],'rejectedFlags':[{'name':a199_0x2be3bc(0x154),'message':a199_0x2be3bc(0x163),'hint':a199_0x2be3bc(0x130)},{'name':a199_0x2be3bc(0x136),'message':'page\x20create\x20no\x20longer\x20accepts\x20--page-content.','hint':a199_0x2be3bc(0x15b)}],'flags':[{'name':a199_0x2be3bc(0x144),'type':a199_0x2be3bc(0x135),'description':a199_0x2be3bc(0x157)},{'name':a199_0x2be3bc(0x13d),'type':a199_0x2be3bc(0x160),'description':a199_0x2be3bc(0x15a)},{'name':a199_0x2be3bc(0x15d),'type':a199_0x2be3bc(0x135),'description':a199_0x2be3bc(0x141),'enum':CUSTOM_PAGE_PATTERNS},{'name':a199_0x2be3bc(0x151),'type':a199_0x2be3bc(0x135),'description':a199_0x2be3bc(0x165)},APPCODE_FLAG],async 'validate'(_0x418eb1){await readValidatedPageSource(_0x418eb1);},async 'dryRun'(_0xa92cc7){const _0x3cf2c0=a199_0x2be3bc,_0x415243=readInput(_0xa92cc7,await readValidatedPageSource(_0xa92cc7));return{'method':_0x3cf2c0(0x131),'url':_0x3cf2c0(0x132),'body':{'appCode':_0x415243[_0x3cf2c0(0x14d)],'pageName':_0x415243[_0x3cf2c0(0x162)],..._0x415243['parentMenuId']!=null?{'parentMenuId':_0x415243[_0x3cf2c0(0x14f)]}:{},'createMenu':_0x415243['createMenu'],'codeContent':_0x415243[_0x3cf2c0(0x172)]},'description':_0x3cf2c0(0x146)+JSON[_0x3cf2c0(0x161)](_0x415243['pageName'])+_0x3cf2c0(0x168)};},async 'execute'(_0x1c93a7){const _0x4066a0=a199_0x2be3bc,_0x44d47d=readInput(_0x1c93a7,await readValidatedPageSource(_0x1c93a7)),_0x58af4c=await createCustomPage(_0x44d47d);if(!Number[_0x4066a0(0x16e)](_0x58af4c[_0x4066a0(0x145)])||_0x58af4c['pageId']<=0x0)throw CliErrors[_0x4066a0(0x139)]('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');const _0x229417=buildCustomPageDevelopmentUrl(_0x44d47d[_0x4066a0(0x14d)],_0x58af4c['menuPath']),_0x2294e6=buildCustomPageEditUrl(_0x44d47d['appCode'],_0x58af4c[_0x4066a0(0x145)]);return{'ok':!![],'data':{'operation':_0x4066a0(0x167),'pageType':_0x4066a0(0x149),'pagePattern':readPagePattern(_0x1c93a7),'selector':{'appCode':_0x44d47d[_0x4066a0(0x14d)],'pageName':_0x44d47d['pageName']},'before':null,'after':{'pageId':_0x58af4c['pageId'],'pageName':_0x58af4c[_0x4066a0(0x162)],'appCode':_0x58af4c[_0x4066a0(0x14d)],'version':_0x58af4c[_0x4066a0(0x13e)],'menuId':_0x58af4c[_0x4066a0(0x16b)],'menuPath':_0x58af4c[_0x4066a0(0x16f)],'files':_0x58af4c[_0x4066a0(0x172)]??Object[_0x4066a0(0x16d)](_0x44d47d[_0x4066a0(0x172)])},'dryRun':![],'request':_0x44d47d,..._0x229417?{'pageUrl':_0x229417}:{},..._0x2294e6?{'editPageUrl':_0x2294e6}:{},'warnings':_0x229417?[]:[_0x4066a0(0x153)]},'message':_0x4066a0(0x133)+_0x58af4c[_0x4066a0(0x145)]+'.'};}};function readPagePattern(_0x33e939){const _0xd2fd75=a199_0x2be3bc,_0x4d9a92=_0x33e939[_0xd2fd75(0x140)](_0xd2fd75(0x15d))[_0xd2fd75(0x16a)](),_0x49b204=_0x33e939[_0xd2fd75(0x140)](_0xd2fd75(0x151))[_0xd2fd75(0x16a)]();if(_0x4d9a92&&_0x49b204)throw CliErrors[_0xd2fd75(0x158)](_0xd2fd75(0x150));if(_0x49b204)return null;if(!_0x4d9a92)throw CliErrors[_0xd2fd75(0x158)](_0xd2fd75(0x156));if(!CUSTOM_PAGE_PATTERNS[_0xd2fd75(0x173)](_0x4d9a92))throw CliErrors[_0xd2fd75(0x158)](_0xd2fd75(0x142));return _0x4d9a92;}async function readPageSource(_0x266a7a){const _0x15f205=a199_0x2be3bc,_0x3fba72=_0x266a7a[_0x15f205(0x140)]('page-dir')[_0x15f205(0x16a)](),_0x28c3a2=readPagePattern(_0x266a7a);if(_0x28c3a2===null){const _0x4f695f=await readCustomPageDirectory(_0x3fba72);if(Object['keys'](_0x4f695f)[_0x15f205(0x175)]===0x0)throw CliErrors[_0x15f205(0x158)](_0x15f205(0x13c));return _0x4f695f;}let _0x402975;try{_0x402975=await readFile(join(CUSTOM_PAGE_TEMPLATE_DIR,_0x28c3a2['toLowerCase']()+'.json'),_0x15f205(0x148));}catch{throw CliErrors['validation'](_0x15f205(0x134)+_0x28c3a2+'.');}let _0x51d79f;try{_0x51d79f=JSON[_0x15f205(0x138)](_0x402975);}catch{throw CliErrors[_0x15f205(0x158)]('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x28c3a2+'.');}if(!_0x51d79f||typeof _0x51d79f!==_0x15f205(0x14c)||Array[_0x15f205(0x152)](_0x51d79f)||Object[_0x15f205(0x159)](_0x51d79f)[_0x15f205(0x14e)](_0x513d33=>typeof _0x513d33!==_0x15f205(0x135)))throw CliErrors['validation']('Invalid\x20Custom\x20Page\x20pattern:\x20'+_0x28c3a2+'.');return _0x51d79f;}async function readValidatedPageSource(_0x5627f2){const _0x44b427=await readPageSource(_0x5627f2);return await validateCustomPageContent(_0x44b427),_0x44b427;}function readInput(_0x28eb09,_0x54c7bf){const _0x5f507b=a199_0x2be3bc,_0x568343=_0x28eb09[_0x5f507b(0x140)](_0x5f507b(0x144))[_0x5f507b(0x16a)]()||'Custom_page_'+Date['now']();if(_0x568343[_0x5f507b(0x175)]>0x64)throw CliErrors[_0x5f507b(0x158)](_0x5f507b(0x169));const _0x5d32d7=_0x28eb09[_0x5f507b(0x166)](_0x5f507b(0x13d),NaN),_0xabbc8f=!Number[_0x5f507b(0x15f)](_0x5d32d7);if(_0xabbc8f&&(!Number[_0x5f507b(0x16e)](_0x5d32d7)||_0x5d32d7<=0x0))throw CliErrors['validation'](_0x5f507b(0x174));return{'appCode':_0x28eb09['appCode'],'pageName':_0x568343,..._0xabbc8f?{'parentMenuId':_0x5d32d7}:{},'createMenu':!![],'files':_0x54c7bf};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a200_0x184157=a200_0x201b;function a200_0x53a1(){const _0x2209ae=['getHours','getDate','685355IFoZWX','27ixeXRS','285486AGAjGS','getSeconds','Custom\x20Page\x20ID','str','getTime','join','4585630tLeXfX','padStart','pageCode','1121528NsCzCr','custom-detail','24wuNQNs','getMinutes','5svfInX','10mzQwtE','getFullYear','50818IkccYU','829884XjrRqb','trim','number','7WJGpCN','isNaN','Retrieved\x20Custom\x20Page\x20','20191776JVSnUr'];a200_0x53a1=function(){return _0x2209ae;};return a200_0x53a1();}(function(_0x8fa69c,_0x5d141e){const _0x5e653a=a200_0x201b,_0x291d1d=_0x8fa69c();while(!![]){try{const _0x1b2b22=parseInt(_0x5e653a(0x172))/0x1*(parseInt(_0x5e653a(0x16e))/0x2)+-parseInt(_0x5e653a(0x17a))/0x3*(-parseInt(_0x5e653a(0x169))/0x4)+parseInt(_0x5e653a(0x16b))/0x5*(parseInt(_0x5e653a(0x16f))/0x6)+parseInt(_0x5e653a(0x180))/0x7+parseInt(_0x5e653a(0x183))/0x8*(parseInt(_0x5e653a(0x179))/0x9)+-parseInt(_0x5e653a(0x16c))/0xa*(-parseInt(_0x5e653a(0x178))/0xb)+-parseInt(_0x5e653a(0x175))/0xc;if(_0x1b2b22===_0x5d141e)break;else _0x291d1d['push'](_0x291d1d['shift']());}catch(_0x39a5d9){_0x291d1d['push'](_0x291d1d['shift']());}}}(a200_0x53a1,0x539c5));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x201b(_0x4b9540,_0xc1a0d5){_0x4b9540=_0x4b9540-0x168;const _0x53a1c8=a200_0x53a1();let _0x201bc7=_0x53a1c8[_0x4b9540];return _0x201bc7;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':a200_0x184157(0x168),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':'read','defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a200_0x184157(0x171),'required':!![],'description':a200_0x184157(0x17c)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x23177a){readCustomPageId(_0x23177a);},async 'execute'(_0x57f443){const _0x3867bd=a200_0x184157,_0x5df6c5=readCustomPageId(_0x57f443),_0x4665f6=await getCustomPageSource(_0x5df6c5),{bundle:_0x3d0668,createTime:_0x5a3259,updateTime:_0x3ba28c,..._0x41ae58}=_0x4665f6,_0x1ad03b=_0x4665f6['id']??_0x5df6c5,_0x534f41=_0x4665f6['appCode']?.['trim']()||_0x57f443[_0x3867bd(0x17d)]('appcode')[_0x3867bd(0x170)](),_0xa8113=buildCustomPageRuntimeUrl(_0x534f41,_0x4665f6[_0x3867bd(0x182)]),_0x309c40=buildCustomPageEditUrl(_0x534f41,_0x1ad03b),_0x145a3f=await resolveCustomPageDevelopmentUrl(_0x534f41,_0x1ad03b,_0x57f443['cookie']);return{'ok':!![],'data':{..._0x41ae58,..._0xa8113?{'runtimePageUrl':_0xa8113}:{},..._0x145a3f?{'pageUrl':_0x145a3f}:{},..._0x309c40?{'editPageUrl':_0x309c40}:{},..._0x5a3259==null?{}:{'createTime':formatTime(_0x5a3259)},..._0x3ba28c==null?{}:{'updateTime':formatTime(_0x3ba28c)}},'message':_0x3867bd(0x174)+_0x5df6c5+'.'};}};function formatTime(_0x229910){const _0x3542be=a200_0x184157,_0x16967a=new Date(_0x229910);if(Number[_0x3542be(0x173)](_0x16967a[_0x3542be(0x17e)]()))return String(_0x229910);const _0x53967e=[_0x16967a[_0x3542be(0x16d)](),String(_0x16967a['getMonth']()+0x1)['padStart'](0x2,'0'),String(_0x16967a[_0x3542be(0x177)]())[_0x3542be(0x181)](0x2,'0')][_0x3542be(0x17f)]('-'),_0xcab20d=[String(_0x16967a[_0x3542be(0x176)]())[_0x3542be(0x181)](0x2,'0'),String(_0x16967a[_0x3542be(0x16a)]())[_0x3542be(0x181)](0x2,'0'),String(_0x16967a[_0x3542be(0x17b)]())[_0x3542be(0x181)](0x2,'0')][_0x3542be(0x17f)](':');return _0x53967e+'\x20'+_0xcab20d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a201_0x12cc63=a201_0x5ad7;(function(_0x598b38,_0x37ec8e){const _0x57cf22=a201_0x5ad7,_0x2c52cf=_0x598b38();while(!![]){try{const _0x188b36=-parseInt(_0x57cf22(0x173))/0x1*(parseInt(_0x57cf22(0x16a))/0x2)+parseInt(_0x57cf22(0x175))/0x3+-parseInt(_0x57cf22(0x178))/0x4+-parseInt(_0x57cf22(0x16d))/0x5+-parseInt(_0x57cf22(0x163))/0x6*(-parseInt(_0x57cf22(0x176))/0x7)+parseInt(_0x57cf22(0x16e))/0x8*(parseInt(_0x57cf22(0x169))/0x9)+parseInt(_0x57cf22(0x177))/0xa;if(_0x188b36===_0x37ec8e)break;else _0x2c52cf['push'](_0x2c52cf['shift']());}catch(_0x9667a6){_0x2c52cf['push'](_0x2c52cf['shift']());}}}(a201_0x4a42,0x44050));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a201_0x4a42(){const _0x495f72=['102450CQaZgY','25571QbusHG','10408620CHfyMh','217820ahAWmB','cookie','pageId','276PTrcwg','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','page','label','type','length','192582idtXMh','1113952RtkGLN','flatMap','No\x20Custom\x20Pages\x20found.','1872045LGBykx','8NkYjrX','read','path','\x20Custom\x20Page(s).','Found\x20','1GzFzYS','appCode'];a201_0x4a42=function(){return _0x495f72;};return a201_0x4a42();}function a201_0x5ad7(_0x26d61a,_0x43ed2f){_0x26d61a=_0x26d61a-0x161;const _0x4a4251=a201_0x4a42();let _0x5ad7a8=_0x4a4251[_0x26d61a];return _0x5ad7a8;}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x12cc63(0x165),'command':'custom-list','description':a201_0x12cc63(0x164),'risk':a201_0x12cc63(0x16f),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x257254){const _0x4ebdec=a201_0x12cc63,_0x1c281f=(await fetchMenuSnapshot(_0x257254[_0x4ebdec(0x174)],_0x257254[_0x4ebdec(0x161)]))['menus'][_0x4ebdec(0x16b)](_0xaa0227=>{const _0x5c0bb0=_0x4ebdec;if(_0xaa0227[_0x5c0bb0(0x167)]!=='react'||_0xaa0227[_0x5c0bb0(0x162)]==null)return[];const _0x4b2db5=buildCustomPageDevelopmentUrl(_0x257254[_0x5c0bb0(0x174)],_0xaa0227['path']),_0xb6a72f=buildCustomPageRuntimeUrl(_0x257254[_0x5c0bb0(0x174)],_0xaa0227['path']),_0x53819d=buildCustomPageEditUrl(_0x257254[_0x5c0bb0(0x174)],_0xaa0227[_0x5c0bb0(0x162)]);return[{'pageId':_0xaa0227[_0x5c0bb0(0x162)],'label':_0xaa0227[_0x5c0bb0(0x166)],'path':_0xaa0227[_0x5c0bb0(0x170)],..._0x4b2db5?{'pageUrl':_0x4b2db5}:{},..._0xb6a72f?{'runtimePageUrl':_0xb6a72f}:{},..._0x53819d?{'editPageUrl':_0x53819d}:{}}];});return{'ok':!![],'data':{'pages':_0x1c281f},'message':_0x1c281f[_0x4ebdec(0x168)]===0x0?_0x4ebdec(0x16c):_0x4ebdec(0x172)+_0x1c281f[_0x4ebdec(0x168)]+_0x4ebdec(0x171)};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a202_0x1ee8(_0x49c31b,_0xe48955){_0x49c31b=_0x49c31b-0x1ba;const _0x343c1f=a202_0x343c();let _0x1ee870=_0x343c1f[_0x49c31b];return _0x1ee870;}function a202_0x343c(){const _0x3f913f=['FORMAL','39057PWSrPT','pageCode','Would\x20publish\x20Custom\x20Page\x20','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','/smartapi/webcode/file/publish','appCode','1941180JOCQhk','str','isInteger','runtimePageUrl','push','write','apiError','1296684pHGtzR','trim','267278ynAofZ','string','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','Optional\x20publish\x20remark','remark','warnings','page.custom-publish','4baokRv','pageId','unknown','2573235mQpLhU','page','5QdNbqg','cookie','Published\x20Custom\x20Page\x20','compress','5033tRRwTa','254RHkzrn','3284608acuKbv','status','50HsJvXe','number'];a202_0x343c=function(){return _0x3f913f;};return a202_0x343c();}const a202_0x23446a=a202_0x1ee8;(function(_0x28c925,_0x53f149){const _0x44904f=a202_0x1ee8,_0x57c02b=_0x28c925();while(!![]){try{const _0x35c538=parseInt(_0x44904f(0x1da))/0x1*(parseInt(_0x44904f(0x1db))/0x2)+-parseInt(_0x44904f(0x1bb))/0x3*(parseInt(_0x44904f(0x1d1))/0x4)+-parseInt(_0x44904f(0x1d6))/0x5*(parseInt(_0x44904f(0x1c1))/0x6)+parseInt(_0x44904f(0x1d4))/0x7+parseInt(_0x44904f(0x1dc))/0x8+-parseInt(_0x44904f(0x1c8))/0x9*(parseInt(_0x44904f(0x1de))/0xa)+parseInt(_0x44904f(0x1ca))/0xb;if(_0x35c538===_0x53f149)break;else _0x57c02b['push'](_0x57c02b['shift']());}catch(_0xa4404c){_0x57c02b['push'](_0x57c02b['shift']());}}}(a202_0x343c,0x5dee5));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x23446a(0x1d5),'command':'custom-publish','description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':a202_0x23446a(0x1c6),'defaultOutputFormat':a202_0x23446a(0x1d9),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x23446a(0x1df),'required':!![],'description':'Custom\x20Page\x20ID'},{'name':'remark','type':a202_0x23446a(0x1cb),'description':a202_0x23446a(0x1cd)}],async 'validate'(_0x2d7b34){readCustomPageId(_0x2d7b34);},async 'dryRun'(_0x479129){const _0x5913f6=a202_0x23446a,_0x583a64=readInput(_0x479129);return{'method':'POST','url':_0x5913f6(0x1bf),'body':{'id':_0x583a64[_0x5913f6(0x1d2)],..._0x583a64[_0x5913f6(0x1ce)]?{'remark':_0x583a64[_0x5913f6(0x1ce)]}:{}},'description':_0x5913f6(0x1bd)+_0x583a64[_0x5913f6(0x1d2)]+'.'};},async 'execute'(_0x76ae4e){const _0xbf95f9=a202_0x23446a,_0x5c43bb=readInput(_0x76ae4e);await getCustomPageSource(_0x5c43bb[_0xbf95f9(0x1d2)]);const _0x562894=await publishCustomPage(_0x5c43bb);if(!Number[_0xbf95f9(0x1c3)](_0x562894)||_0x562894!==_0x5c43bb['pageId'])throw CliErrors[_0xbf95f9(0x1c7)]('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x4c4b2c=await getCustomPageSource(_0x5c43bb[_0xbf95f9(0x1d2)]);if(_0x4c4b2c[_0xbf95f9(0x1dd)]!==_0xbf95f9(0x1ba))throw CliErrors[_0xbf95f9(0x1c7)](_0xbf95f9(0x1cc)+(_0x4c4b2c['status']??_0xbf95f9(0x1d3))+'.');const _0x555d48=_0x4c4b2c['appCode']?.[_0xbf95f9(0x1c9)](),_0x33543a=buildCustomPageEditUrl(_0x555d48,_0x5c43bb[_0xbf95f9(0x1d2)]),_0x4ae3a1=await resolveCustomPageDevelopmentUrl(_0x555d48,_0x5c43bb[_0xbf95f9(0x1d2)],_0x76ae4e[_0xbf95f9(0x1d7)]),_0x35cc1c=buildMutationData(_0x5c43bb,!![],_0x4ae3a1,_0x33543a);_0x555d48&&!_0x4ae3a1&&_0x35cc1c['warnings'][_0xbf95f9(0x1c5)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.');const _0x199cde=buildCustomPageRuntimeUrl(_0x4c4b2c[_0xbf95f9(0x1c0)],_0x4c4b2c[_0xbf95f9(0x1bc)]);return _0x199cde?_0x35cc1c[_0xbf95f9(0x1c4)]=_0x199cde:_0x35cc1c[_0xbf95f9(0x1cf)][_0xbf95f9(0x1c5)](_0xbf95f9(0x1be)),{'ok':!![],'data':_0x35cc1c,'message':_0xbf95f9(0x1d8)+_0x5c43bb['pageId']+'.'};}};function readInput(_0x25f5c6){const _0x56f6a1=a202_0x23446a,_0x36cc57=readCustomPageId(_0x25f5c6),_0x28c2b6=_0x25f5c6[_0x56f6a1(0x1c2)](_0x56f6a1(0x1ce))[_0x56f6a1(0x1c9)]();return{'pageId':_0x36cc57,..._0x28c2b6?{'remark':_0x28c2b6}:{}};}function buildMutationData(_0x4061a0,_0x13479b=![],_0x9673dd,_0x408971){const _0x4c4d59=a202_0x23446a;return{'operation':_0x4c4d59(0x1d0),'selector':{'pageId':_0x4061a0['pageId']},'before':null,'after':{'pageId':_0x4061a0[_0x4c4d59(0x1d2)],'status':_0x4c4d59(0x1ba)},'dryRun':!_0x13479b,'request':_0x4061a0,..._0x9673dd?{'pageUrl':_0x9673dd}:{},..._0x408971?{'editPageUrl':_0x408971}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a203_0x530b0e=a203_0x2d59;(function(_0x3e681f,_0x49fbc7){const _0x1f4ac3=a203_0x2d59,_0x42f032=_0x3e681f();while(!![]){try{const _0x3dda77=-parseInt(_0x1f4ac3(0x6f))/0x1+-parseInt(_0x1f4ac3(0x71))/0x2*(-parseInt(_0x1f4ac3(0x6b))/0x3)+parseInt(_0x1f4ac3(0x73))/0x4+-parseInt(_0x1f4ac3(0x79))/0x5*(-parseInt(_0x1f4ac3(0x6d))/0x6)+-parseInt(_0x1f4ac3(0x74))/0x7+parseInt(_0x1f4ac3(0x80))/0x8+parseInt(_0x1f4ac3(0x7d))/0x9*(parseInt(_0x1f4ac3(0x6c))/0xa);if(_0x3dda77===_0x49fbc7)break;else _0x42f032['push'](_0x42f032['shift']());}catch(_0x3ac784){_0x42f032['push'](_0x42f032['shift']());}}}(a203_0x410a,0x254f5));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_0x530b0e(0x6e)};function trimOptional(_0x2cbe84){const _0xa8c019=a203_0x530b0e;return _0x2cbe84?.[_0xa8c019(0x7e)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x5a1038,_0x3ad6a0){const _0x28b28a=trimOptional(_0x5a1038),_0x28591d=trimOptional(_0x3ad6a0);if(!_0x28b28a||!_0x28591d)return undefined;return getPublishedAppDomain(_0x28b28a)+'/'+encodeURIComponent(_0x28591d);}function a203_0x410a(){const _0xfd240=['2604zXMWuQ','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','258550cYDJoU','message','2jBFlga','react','489248dgRuYn','2056852TPhTVB','find','length','type','file','355VlWsiU','num','/ide/','map','29709GshcxI','trim','validation','666664zumrPo','pageId','227787jxtehy','1190FFbrgZ'];a203_0x410a=function(){return _0xfd240;};return a203_0x410a();}export function buildCustomPageDevelopmentUrl(_0x470557,_0x309e39){const _0x201cce=trimOptional(_0x470557),_0x23bfd6=trimOptional(_0x309e39);if(!_0x201cce||!_0x23bfd6)return undefined;return getAppBaseUrl(_0x201cce)+'/pages/'+encodeURIComponent(_0x23bfd6);}function a203_0x2d59(_0x3ddfe8,_0x548b40){_0x3ddfe8=_0x3ddfe8-0x6a;const _0x410ae5=a203_0x410a();let _0x2d5944=_0x410ae5[_0x3ddfe8];return _0x2d5944;}export async function resolveCustomPageDevelopmentUrl(_0x1af5a6,_0x460902,_0x23ac5d){const _0x30fc85=a203_0x530b0e,_0x53b4b6=trimOptional(_0x1af5a6);if(!_0x53b4b6)return undefined;try{const _0x4ae27d=(await fetchMenuSnapshot(_0x53b4b6,_0x23ac5d))['menus'][_0x30fc85(0x75)](_0x2ed051=>_0x2ed051[_0x30fc85(0x77)]===_0x30fc85(0x72)&&_0x2ed051[_0x30fc85(0x6a)]===_0x460902);return buildCustomPageDevelopmentUrl(_0x53b4b6,_0x4ae27d?.['path']);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x4ac7b6,_0x12cd71){const _0x794cb8=a203_0x530b0e,_0x5d7a24=trimOptional(_0x4ac7b6);if(!_0x5d7a24)return;const _0x527346=trimOptional(String(_0x12cd71??''));if(!_0x527346)return;return getAppBaseUrl(_0x5d7a24)+_0x794cb8(0x7b)+encodeURIComponent(_0x527346);}export async function validateCustomPageContent(_0x1c4e4c){const _0x571114=a203_0x530b0e,_0x3dafdd=await validateCustomPageSourceFiles(_0x1c4e4c);if(_0x3dafdd[_0x571114(0x76)]>0x0)throw CliErrors[_0x571114(0x7f)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x3dafdd[_0x571114(0x7c)](_0x4a2d8a=>_0x4a2d8a[_0x571114(0x78)]+':\x20'+_0x4a2d8a[_0x571114(0x70)])['join'](';\x20'));}export function readCustomPageId(_0x4f02dc){const _0x51a6c7=a203_0x530b0e,_0x3a5cb4=_0x4f02dc[_0x51a6c7(0x7a)]('id');if(!Number['isInteger'](_0x3a5cb4)||_0x3a5cb4<=0x0)throw CliErrors[_0x51a6c7(0x7f)]('--id\x20must\x20be\x20a\x20positive\x20integer.');return _0x3a5cb4;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a204_0x54eda1=a204_0xbb65;(function(_0x5239b5,_0x5bcac0){const _0xa09ab2=a204_0xbb65,_0x45b11c=_0x5239b5();while(!![]){try{const _0x1daf78=-parseInt(_0xa09ab2(0x147))/0x1*(-parseInt(_0xa09ab2(0x156))/0x2)+parseInt(_0xa09ab2(0x153))/0x3*(-parseInt(_0xa09ab2(0x15b))/0x4)+-parseInt(_0xa09ab2(0x151))/0x5*(parseInt(_0xa09ab2(0x14d))/0x6)+parseInt(_0xa09ab2(0x158))/0x7+parseInt(_0xa09ab2(0x14e))/0x8*(parseInt(_0xa09ab2(0x14f))/0x9)+-parseInt(_0xa09ab2(0x145))/0xa+parseInt(_0xa09ab2(0x157))/0xb*(parseInt(_0xa09ab2(0x14b))/0xc);if(_0x1daf78===_0x5bcac0)break;else _0x45b11c['push'](_0x45b11c['shift']());}catch(_0x5b25a6){_0x45b11c['push'](_0x45b11c['shift']());}}}(a204_0x4ace,0x41987));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x54eda1(0x14a),'.jsx':a204_0x54eda1(0x14a),'.ts':a204_0x54eda1(0x14c),'.tsx':'typescript'},CUSTOM_PAGE_EXTENSIONS=['.jsx','.tsx'];export async function validateCustomPageSourceFiles(_0xdc7727){const _0x17a228=a204_0x54eda1,_0x82adc5=Object[_0x17a228(0x146)](_0xdc7727)[_0x17a228(0x159)](([_0x7f3639])=>getParser(_0x7f3639));if(!_0x82adc5[_0x17a228(0x150)](([_0xcdb174])=>isReactSourceFile(_0xcdb174)))return[{'file':_0x17a228(0x15a),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x4ad0e0=await Promise['all'](_0x82adc5['map'](async([_0x5e10cb,_0x4587c9])=>{const _0x20f9cd=_0x17a228;try{return await format(_0x4587c9,{'parser':getParser(_0x5e10cb)}),undefined;}catch(_0x241585){return{'file':_0x5e10cb,'message':_0x241585 instanceof Error?_0x241585[_0x20f9cd(0x152)]:String(_0x241585)};}}));return _0x4ad0e0['filter'](_0x3221f2=>_0x3221f2!==undefined);}function a204_0xbb65(_0x1b368f,_0x3393c7){_0x1b368f=_0x1b368f-0x145;const _0x4ace63=a204_0x4ace();let _0xbb658=_0x4ace63[_0x1b368f];return _0xbb658;}function a204_0x4ace(){const _0x5d1342=['480450DrGmot','entries','2ekykSB','find','endsWith','babel','245424SKrcrh','typescript','537798evHAmQ','1563400aDuXSu','9cfQWHy','some','5jPsAjL','message','1227iOysOL','trim','toLowerCase','399614sdUPKp','132fVkxDL','471296utMKCs','filter','page\x20files','4904sqscQW'];a204_0x4ace=function(){return _0x5d1342;};return a204_0x4ace();}function getParser(_0x42b5a6){const _0xe66a7=a204_0x54eda1,_0x3c7ad7=_0x42b5a6[_0xe66a7(0x154)]()[_0xe66a7(0x155)]();return Object[_0xe66a7(0x146)](SOURCE_PARSERS)[_0xe66a7(0x148)](([_0x29d261])=>_0x3c7ad7[_0xe66a7(0x149)](_0x29d261))?.[0x1];}function isReactSourceFile(_0x11386d){const _0x4efb5d=a204_0x54eda1,_0x48253a=_0x11386d[_0x4efb5d(0x154)]()['toLowerCase']();return CUSTOM_PAGE_EXTENSIONS[_0x4efb5d(0x150)](_0x529357=>_0x48253a['endsWith'](_0x529357));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a205_0x38c7(){const _0x236c1a=['276186MkBITE','Updated\x20Custom\x20Page\x20','trim','508856LtDuYz','pageContent','Custom\x20Page\x20ID','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','4980UFlrBx','pageId','7DWbfHu','compress','314710DOHTRQ','1129125BGEmIm','2750lTEBrG','number','page.custom-update','826623Srjnkl','isInteger','23837nBEXUa','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','54CilUqC','apiError','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','POST','Directory\x20containing\x20all\x20complete\x20page\x20files','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','page','appcode','appCode','custom-update','newVersion','page-content','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','page-dir','string','4MIpFkE','str','214FNczGE'];a205_0x38c7=function(){return _0x236c1a;};return a205_0x38c7();}const a205_0x48ae09=a205_0x33d6;(function(_0x22083e,_0x4783eb){const _0x32acc7=a205_0x33d6,_0x314c03=_0x22083e();while(!![]){try{const _0x20e384=parseInt(_0x32acc7(0x163))/0x1*(parseInt(_0x32acc7(0x149))/0x2)+parseInt(_0x32acc7(0x14c))/0x3*(-parseInt(_0x32acc7(0x161))/0x4)+-parseInt(_0x32acc7(0x148))/0x5+-parseInt(_0x32acc7(0x164))/0x6*(parseInt(_0x32acc7(0x145))/0x7)+-parseInt(_0x32acc7(0x13f))/0x8*(parseInt(_0x32acc7(0x151))/0x9)+-parseInt(_0x32acc7(0x147))/0xa+-parseInt(_0x32acc7(0x14e))/0xb*(-parseInt(_0x32acc7(0x143))/0xc);if(_0x20e384===_0x4783eb)break;else _0x314c03['push'](_0x314c03['shift']());}catch(_0x1d54f7){_0x314c03['push'](_0x314c03['shift']());}}}(a205_0x38c7,0x38e55));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';function a205_0x33d6(_0x19f70d,_0x118b67){_0x19f70d=_0x19f70d-0x13f;const _0x38c764=a205_0x38c7();let _0x33d600=_0x38c764[_0x19f70d];return _0x33d600;}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':a205_0x48ae09(0x157),'command':a205_0x48ae09(0x15a),'description':a205_0x48ae09(0x142),'risk':'write','defaultOutputFormat':a205_0x48ae09(0x146),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a205_0x48ae09(0x15c),'message':a205_0x48ae09(0x15d),'hint':a205_0x48ae09(0x156)}],'flags':[{'name':'id','type':a205_0x48ae09(0x14a),'required':!![],'description':a205_0x48ae09(0x141)},{'name':a205_0x48ae09(0x15f),'type':a205_0x48ae09(0x160),'required':!![],'description':a205_0x48ae09(0x155)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x442ae8){readCustomPageId(_0x442ae8),await readValidatedPageContent(_0x442ae8);},async 'dryRun'(_0x3f8186){const _0x1f85e9=a205_0x48ae09,_0x513dcd=await readInput(_0x3f8186);return{'method':_0x1f85e9(0x154),'url':'/smartapi/webcode/page/update/content','body':{'id':_0x513dcd[_0x1f85e9(0x144)],'codeContent':_0x513dcd[_0x1f85e9(0x140)]},'description':_0x1f85e9(0x14f)+_0x513dcd[_0x1f85e9(0x144)]+'.'};},async 'execute'(_0x395b10){const _0x1d5893=a205_0x48ae09,_0x2ad711=await readInput(_0x395b10),_0x1e1fac=await updateCustomPageContent({'pageId':_0x2ad711[_0x1d5893(0x144)],'pageContent':_0x2ad711[_0x1d5893(0x140)]});if(!Number[_0x1d5893(0x14d)](_0x1e1fac[_0x1d5893(0x15b)])||_0x1e1fac[_0x1d5893(0x15b)]<=0x0)throw CliErrors[_0x1d5893(0x152)](_0x1d5893(0x150));const _0x3ad0ec=buildCustomPageEditUrl(_0x2ad711[_0x1d5893(0x159)],_0x2ad711['pageId']),_0x4084a8=await resolveCustomPageDevelopmentUrl(_0x2ad711[_0x1d5893(0x159)],_0x2ad711[_0x1d5893(0x144)],_0x395b10['cookie']);return{'ok':!![],'data':{'operation':_0x1d5893(0x14b),'selector':{'appCode':_0x2ad711['appCode'],'pageId':_0x2ad711['pageId']},'before':null,'after':{'pageId':_0x1e1fac[_0x1d5893(0x144)],'version':_0x1e1fac['newVersion'],'pageContent':_0x2ad711[_0x1d5893(0x140)]},'dryRun':![],'request':_0x2ad711,..._0x4084a8?{'pageUrl':_0x4084a8}:{},..._0x3ad0ec?{'editPageUrl':_0x3ad0ec}:{},'warnings':_0x4084a8?[]:[_0x1d5893(0x153)]},'message':_0x1d5893(0x165)+_0x2ad711[_0x1d5893(0x144)]+'.'};}};async function readInput(_0x1e4d9c){const _0x553e1d=a205_0x48ae09,_0x2dee15=readCustomPageId(_0x1e4d9c),_0x341890=_0x1e4d9c['str'](_0x553e1d(0x158))[_0x553e1d(0x166)]()||(await getCustomPageSource(_0x2dee15))[_0x553e1d(0x159)]?.[_0x553e1d(0x166)]();if(!_0x341890)throw CliErrors['validation'](_0x553e1d(0x15e)+_0x2dee15+'.');return{'appCode':_0x341890,'pageId':_0x2dee15,'pageContent':await readValidatedPageContent(_0x1e4d9c)};}async function readValidatedPageContent(_0x581bd6){const _0x5d701c=a205_0x48ae09,_0x2bf260=await readCustomPageDirectory(_0x581bd6[_0x5d701c(0x162)](_0x5d701c(0x15f)));return await validateCustomPageContent(_0x2bf260),_0x2bf260;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a206_0xa49ae9=a206_0xa856;(function(_0x9096d6,_0x307541){const _0x2e2803=a206_0xa856,_0x577d9d=_0x9096d6();while(!![]){try{const _0x172e41=-parseInt(_0x2e2803(0xbe))/0x1*(parseInt(_0x2e2803(0xca))/0x2)+-parseInt(_0x2e2803(0xc7))/0x3*(parseInt(_0x2e2803(0xce))/0x4)+-parseInt(_0x2e2803(0xba))/0x5*(parseInt(_0x2e2803(0xbc))/0x6)+parseInt(_0x2e2803(0xc1))/0x7*(-parseInt(_0x2e2803(0xbd))/0x8)+-parseInt(_0x2e2803(0xbb))/0x9+-parseInt(_0x2e2803(0xd4))/0xa*(parseInt(_0x2e2803(0xcf))/0xb)+parseInt(_0x2e2803(0xcb))/0xc;if(_0x172e41===_0x307541)break;else _0x577d9d['push'](_0x577d9d['shift']());}catch(_0x6960d8){_0x577d9d['push'](_0x577d9d['shift']());}}}(a206_0x31ea,0xc5cf8));function a206_0x31ea(){const _0x28cc69=['7JZOSzM','length','appCode','status','compress','string','114357bPBpIQ','/standard-page-status?appCode=','related-pages-fallback','30378PiPzEF','83052732zFWUoI','/smartapi/lovrabet/dataset/','query-data-list-status','164aqhMMV','253EHXucl','relatedPages','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','data-list-status','name','616430QOXHYQ','6851395BFYvUP','13434651uqQvoI','6enGDqs','1408072hQgOpd','6PFzqKb','code','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'];a206_0x31ea=function(){return _0x28cc69;};return a206_0x31ea();}function a206_0xa856(_0x4b93f9,_0x1a15f8){_0x4b93f9=_0x4b93f9-0xba;const _0x31ea29=a206_0x31ea();let _0xa85695=_0x31ea29[_0x4b93f9];return _0xa85695;}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':'page','command':a206_0xa49ae9(0xd2),'description':a206_0xa49ae9(0xd1),'risk':'read','defaultOutputFormat':a206_0xa49ae9(0xc5),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a206_0xa49ae9(0xc6),'description':a206_0xa49ae9(0xc0)}],async 'validate'(_0x4cfcbc){validateDatasetSelector(_0x4cfcbc);},async 'dryRun'(_0x33ceab){const _0x583da2=a206_0xa49ae9,_0x23bfba=await loadDatasetDetailForPage(_0x33ceab);return{'method':'GET','url':_0x583da2(0xcc)+_0x23bfba[_0x583da2(0xbf)]+_0x583da2(0xc8)+encodeURIComponent(_0x33ceab[_0x583da2(0xc3)]),'description':serializeDryRunDescription({'dataset':{'id':_0x23bfba['id'],'code':_0x23bfba[_0x583da2(0xbf)],'name':_0x23bfba[_0x583da2(0xd3)]},'action':_0x583da2(0xcd)})};},async 'execute'(_0x316b58){const _0x2b619f=a206_0xa49ae9,_0x5a4c55=await loadDatasetDetailForPage(_0x316b58),_0xb24260=await loadDataListPageStatusForGenerate(_0x316b58,_0x5a4c55[_0x2b619f(0xbf)]),_0x547b08=getUndeletedRelatedPages(_0x5a4c55),_0x21c253=assessDataListPageState(_0x5a4c55[_0x2b619f(0xbf)],_0xb24260,{'fallbackUndeletedPages':_0x547b08});return{'ok':!![],'data':{'datasetCode':_0x5a4c55['code'],'precheckSource':_0xb24260?.['source']??_0x2b619f(0xc9),'status':_0x21c253[_0x2b619f(0xc4)],'manualResolutionRequired':_0x21c253['manualResolutionRequired'],'nextAction':_0x21c253['nextAction'],'dataListPageStatus':_0xb24260,'relatedPages':{'total':_0x5a4c55[_0x2b619f(0xd0)]['length'],'undeletedCount':_0x547b08[_0x2b619f(0xc2)]}}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x38988c=a207_0xe334;(function(_0x1065e0,_0x5e4229){const _0x1d8cf9=a207_0xe334,_0xe9b46d=_0x1065e0();while(!![]){try{const _0x5a1ae2=-parseInt(_0x1d8cf9(0x1c2))/0x1*(-parseInt(_0x1d8cf9(0x1cc))/0x2)+parseInt(_0x1d8cf9(0x1d6))/0x3+parseInt(_0x1d8cf9(0x1cb))/0x4*(-parseInt(_0x1d8cf9(0x1bb))/0x5)+-parseInt(_0x1d8cf9(0x1b5))/0x6*(parseInt(_0x1d8cf9(0x1e3))/0x7)+-parseInt(_0x1d8cf9(0x1b6))/0x8+parseInt(_0x1d8cf9(0x1c7))/0x9+parseInt(_0x1d8cf9(0x1c1))/0xa*(parseInt(_0x1d8cf9(0x1ce))/0xb);if(_0x5a1ae2===_0x5e4229)break;else _0xe9b46d['push'](_0xe9b46d['shift']());}catch(_0x41ef){_0xe9b46d['push'](_0xe9b46d['shift']());}}}(a207_0x3107,0xb9387));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a207_0xe334(_0x5cb559,_0xd92634){_0x5cb559=_0x5cb559-0x1b5;const _0x3107d8=a207_0x3107();let _0xe33451=_0x3107d8[_0x5cb559];return _0xe33451;}import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';function a207_0x3107(){const _0x5a3667=['9663712GFeUBa','page','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','reused','clientOperationId','60QtrqUF','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','dataset','taskId','appCode','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','17563310trDDsQ','6602aUslKR','alias','number','manualResolutionRequired','message','2657628aQLfvD','Reusing\x20an\x20existing\x20generate\x20task','precheck','/smartapi/lovrabet/dataset/','72388oIiwpR','14pgoujR','/generate-standard-pages/start','11wUrYqS','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','fieldCount','status','name','POST','source','generate-start','4467198PLucdN','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','compress','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','DATA_LIST','operationId','allowGenerate','related-pages-fallback','apply','page-type','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','code','currentStep','2455446rvvPpX','Submitted\x20a\x20generate\x20task','PARTIAL_SUCCESS','bool','SUCCESS','dryRun','dataListPageStatus','nextAction','24pdrbVb'];a207_0x3107=function(){return _0x5a3667;};return a207_0x3107();}export const pageGenerateStart={'service':a207_0x38988c(0x1b7),'command':a207_0x38988c(0x1d5),'description':a207_0x38988c(0x1b8),'risk':'write','defaultOutputFormat':a207_0x38988c(0x1d8),'rejectedFlags':[{'name':a207_0x38988c(0x1df),'message':a207_0x38988c(0x1d7),'hint':a207_0x38988c(0x1e0)},{'name':'page-pattern','message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','hint':a207_0x38988c(0x1c0)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x38988c(0x1c3),'type':'string','description':a207_0x38988c(0x1cf)},{'name':a207_0x38988c(0x1de),'type':'boolean','description':a207_0x38988c(0x1bc)}],async 'validate'(_0x532a6d){validateDatasetSelector(_0x532a6d);},async 'dryRun'(_0x3ff842){const _0x989e45=a207_0x38988c,_0x21e583=await prepare(_0x3ff842);return{'method':_0x989e45(0x1d3),'url':_0x989e45(0x1ca)+_0x21e583[_0x989e45(0x1bd)][_0x989e45(0x1e1)]+_0x989e45(0x1cd),'body':{'appCode':_0x3ff842[_0x989e45(0x1bf)],'clientOperationId':_0x21e583[_0x989e45(0x1ba)]},'description':serializeDryRunDescription({'dataset':{'id':_0x21e583['dataset']['id'],'code':_0x21e583[_0x989e45(0x1bd)][_0x989e45(0x1e1)],'name':_0x21e583['dataset'][_0x989e45(0x1d2)],'fieldCount':_0x21e583[_0x989e45(0x1bd)][_0x989e45(0x1d0)]},'precheckSource':_0x21e583[_0x989e45(0x1e9)]?.[_0x989e45(0x1d4)]??_0x989e45(0x1dd),'action':_0x989e45(0x1d5),'clientOperationId':_0x21e583[_0x989e45(0x1ba)],'plannedStatus':_0x21e583[_0x989e45(0x1c9)][_0x989e45(0x1d1)],'reason':_0x21e583[_0x989e45(0x1c9)]['message']})};},async 'execute'(_0x1fb3f0){const _0xb95555=a207_0x38988c;if(!_0x1fb3f0[_0xb95555(0x1e6)](_0xb95555(0x1de))){const _0x250a47=await pageGenerateStart[_0xb95555(0x1e8)](_0x1fb3f0);return{'ok':!![],'message':_0xb95555(0x1d9),'data':_0x250a47};}const _0x3efb8b=await prepare(_0x1fb3f0);if(!_0x3efb8b[_0xb95555(0x1c9)][_0xb95555(0x1dc)])return{'ok':![],'message':_0x3efb8b[_0xb95555(0x1c9)][_0xb95555(0x1c6)],'data':{'datasetCode':_0x3efb8b[_0xb95555(0x1bd)][_0xb95555(0x1e1)],'pageType':_0xb95555(0x1da),'pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x3efb8b['clientOperationId'],'precheckSource':_0x3efb8b[_0xb95555(0x1e9)]?.[_0xb95555(0x1d4)]??'related-pages-fallback','status':_0x3efb8b[_0xb95555(0x1c9)][_0xb95555(0x1d1)],'manualResolutionRequired':_0x3efb8b[_0xb95555(0x1c9)][_0xb95555(0x1c5)],'nextAction':_0x3efb8b[_0xb95555(0x1c9)][_0xb95555(0x1ea)],'query':{'command':buildDataListPageStatusQueryCommand(_0x3efb8b['dataset'][_0xb95555(0x1e1)],_0x1fb3f0[_0xb95555(0x1bf)])},'dataListPageStatus':_0x3efb8b[_0xb95555(0x1e9)]}};const _0x56ff2e=await startGenerateDataListPages(_0x1fb3f0[_0xb95555(0x1bf)],_0x3efb8b[_0xb95555(0x1bd)][_0xb95555(0x1e1)],{'clientOperationId':_0x3efb8b[_0xb95555(0x1ba)]}),_0x4c793b=_0x56ff2e[_0xb95555(0x1d1)]===_0xb95555(0x1e7)||_0x56ff2e[_0xb95555(0x1d1)]===_0xb95555(0x1e5)?await loadDataListPageStatusForGenerate(_0x1fb3f0,_0x3efb8b[_0xb95555(0x1bd)][_0xb95555(0x1e1)]):null,_0x23a1e4=assessGenerateOperationState(_0x3efb8b['dataset'][_0xb95555(0x1e1)],_0x56ff2e['status'],_0x4c793b);return{'ok':!![],'message':_0x56ff2e[_0xb95555(0x1b9)]?_0xb95555(0x1c8):_0xb95555(0x1e4),'data':{'datasetCode':_0x3efb8b[_0xb95555(0x1bd)][_0xb95555(0x1e1)],'appCode':_0x1fb3f0[_0xb95555(0x1bf)],'pageType':_0xb95555(0x1da),'pagePattern':'CRUD_PAGE_SET','taskId':_0x56ff2e[_0xb95555(0x1be)]??null,'operationId':_0x56ff2e[_0xb95555(0x1db)]??null,'clientOperationId':_0x3efb8b['clientOperationId'],'jobStatus':_0x56ff2e[_0xb95555(0x1d1)]??null,'progressRate':typeof _0x56ff2e['progressRate']===_0xb95555(0x1c4)?_0x56ff2e['progressRate']:null,'currentStep':_0x56ff2e[_0xb95555(0x1e2)]??null,'reused':_0x56ff2e[_0xb95555(0x1b9)]===!![],'status':_0x23a1e4['status'],'manualResolutionRequired':_0x23a1e4[_0xb95555(0x1c5)],'nextAction':_0x23a1e4['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x3efb8b[_0xb95555(0x1bd)][_0xb95555(0x1e1)],{'appCode':_0x1fb3f0[_0xb95555(0x1bf)],'taskId':_0x56ff2e[_0xb95555(0x1be)],'operationId':_0x56ff2e[_0xb95555(0x1db)],'clientOperationId':_0x3efb8b[_0xb95555(0x1ba)]})},'dataListPageStatus':_0x4c793b}};}};async function prepare(_0x301c22){const _0x38cdeb=a207_0x38988c,_0x3400e3=await loadDatasetDetailForPage(_0x301c22),_0x21fd81=await loadDataListPageStatusForGenerate(_0x301c22,_0x3400e3[_0x38cdeb(0x1e1)]),_0x2afdc2=getUndeletedRelatedPages(_0x3400e3);return{'dataset':_0x3400e3,'dataListPageStatus':_0x21fd81,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x3400e3[_0x38cdeb(0x1e1)],_0x21fd81,{'fallbackUndeletedPages':_0x2afdc2})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a208_0x3202(_0x1f8612,_0x2cd690){_0x1f8612=_0x1f8612-0x1af;const _0x684799=a208_0x6847();let _0x320228=_0x684799[_0x1f8612];return _0x320228;}const a208_0x2c5a58=a208_0x3202;(function(_0x51b86a,_0x31e615){const _0x156352=a208_0x3202,_0x188889=_0x51b86a();while(!![]){try{const _0x1cd488=-parseInt(_0x156352(0x1d4))/0x1*(parseInt(_0x156352(0x1b3))/0x2)+parseInt(_0x156352(0x1c1))/0x3+-parseInt(_0x156352(0x1af))/0x4*(parseInt(_0x156352(0x1d3))/0x5)+parseInt(_0x156352(0x1c7))/0x6+-parseInt(_0x156352(0x1cd))/0x7*(-parseInt(_0x156352(0x1bc))/0x8)+parseInt(_0x156352(0x1b4))/0x9*(-parseInt(_0x156352(0x1c5))/0xa)+parseInt(_0x156352(0x1c0))/0xb*(parseInt(_0x156352(0x1c9))/0xc);if(_0x1cd488===_0x31e615)break;else _0x188889['push'](_0x188889['shift']());}catch(_0x422994){_0x188889['push'](_0x188889['shift']());}}}(a208_0x6847,0x3df3d));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a208_0x6847(){const _0x405ced=['clientOperationId','10eNLexn','/generate-standard-pages/status?','2323404sWZOcM','manualResolutionRequired','33564LKJCsn','message','compress','number','56YABocP','progressRate','task-id','GET','operation-id','SUCCESS','425ZtKgHO','71263FiLyNU','currentStep','str','operationId','set','query-generate-operation-status','result','11228fIxHnj','/smartapi/lovrabet/dataset/','alias','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','14rGxrrp','962802NkPRfg','client-operation-id','PARTIAL_SUCCESS','generate-status','taskId','appCode','string','code','87968tWGFos','errorMsg','page','read','1122bpqAqj','1013025jgdkuJ','name','status'];a208_0x6847=function(){return _0x405ced;};return a208_0x6847();}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_0x2c5a58(0x1be),'command':a208_0x2c5a58(0x1b7),'description':'Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','risk':a208_0x2c5a58(0x1bf),'defaultOutputFormat':a208_0x2c5a58(0x1cb),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x2c5a58(0x1b1),'type':a208_0x2c5a58(0x1ba),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a208_0x2c5a58(0x1cf),'type':'string','description':a208_0x2c5a58(0x1b2)},{'name':'operation-id','type':a208_0x2c5a58(0x1ba),'description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a208_0x2c5a58(0x1b5),'type':'string','description':'Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'}],async 'validate'(_0x4cae5a){validateDatasetSelector(_0x4cae5a),validateGenerateOperationSelector(_0x4cae5a);},async 'dryRun'(_0xeaaba6){const _0x4cc63a=a208_0x2c5a58,_0x1e7fb8=await loadDatasetDetailForPage(_0xeaaba6),_0x3cb118=_0xeaaba6[_0x4cc63a(0x1d6)](_0x4cc63a(0x1cf)),_0x4ad1c2=_0xeaaba6[_0x4cc63a(0x1d6)](_0x4cc63a(0x1d1)),_0x543b75=_0xeaaba6[_0x4cc63a(0x1d6)](_0x4cc63a(0x1b5)),_0x1fa7c1=new URLSearchParams({'appCode':_0xeaaba6[_0x4cc63a(0x1b9)]});return _0x3cb118&&_0x1fa7c1[_0x4cc63a(0x1d8)](_0x4cc63a(0x1b8),_0x3cb118),_0x4ad1c2&&_0x1fa7c1[_0x4cc63a(0x1d8)](_0x4cc63a(0x1d7),_0x4ad1c2),_0x543b75&&_0x1fa7c1[_0x4cc63a(0x1d8)](_0x4cc63a(0x1c4),_0x543b75),{'method':_0x4cc63a(0x1d0),'url':_0x4cc63a(0x1b0)+_0x1e7fb8['code']+_0x4cc63a(0x1c6)+_0x1fa7c1['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x1e7fb8['id'],'code':_0x1e7fb8[_0x4cc63a(0x1bb)],'name':_0x1e7fb8[_0x4cc63a(0x1c2)]},'action':_0x4cc63a(0x1d9),'taskId':_0x3cb118||undefined,'operationId':_0x4ad1c2||undefined,'clientOperationId':_0x543b75||undefined})};},async 'execute'(_0x593840){const _0x4c9bdc=a208_0x2c5a58,_0x37e17c=await loadDatasetDetailForPage(_0x593840),_0x499baa=_0x593840[_0x4c9bdc(0x1d6)](_0x4c9bdc(0x1cf)),_0x1edd20=_0x593840['str'](_0x4c9bdc(0x1d1)),_0x5e9dad=_0x593840[_0x4c9bdc(0x1d6)](_0x4c9bdc(0x1b5)),_0x56637e=await getGenerateDataListPagesStatus(_0x593840[_0x4c9bdc(0x1b9)],_0x37e17c[_0x4c9bdc(0x1bb)],{'taskId':_0x499baa||undefined,'operationId':_0x1edd20||undefined,'clientOperationId':_0x5e9dad||undefined}),_0x5b135d=_0x56637e[_0x4c9bdc(0x1c3)]===_0x4c9bdc(0x1d2)||_0x56637e[_0x4c9bdc(0x1c3)]===_0x4c9bdc(0x1b6),_0x3729d1=_0x5b135d?await loadDataListPageStatusForGenerate(_0x593840,_0x37e17c[_0x4c9bdc(0x1bb)]):null,_0x45e088=assessGenerateOperationState(_0x37e17c[_0x4c9bdc(0x1bb)],_0x56637e[_0x4c9bdc(0x1c3)],_0x3729d1),_0x4ba3ce=_0x56637e['taskId']??_0x499baa??undefined,_0x200535=_0x56637e[_0x4c9bdc(0x1d7)]??_0x1edd20??undefined,_0x15eb78=_0x56637e[_0x4c9bdc(0x1c4)]??_0x5e9dad??undefined;return{'ok':!![],'message':_0x45e088[_0x4c9bdc(0x1c3)]==='operation_failed'?_0x56637e[_0x4c9bdc(0x1bd)]||_0x45e088[_0x4c9bdc(0x1ca)]:_0x45e088['message'],'data':{'datasetCode':_0x37e17c['code'],'appCode':_0x593840[_0x4c9bdc(0x1b9)],'taskId':_0x4ba3ce,'operationId':_0x200535,'clientOperationId':_0x15eb78,'jobStatus':_0x56637e[_0x4c9bdc(0x1c3)]??null,'progressRate':typeof _0x56637e[_0x4c9bdc(0x1ce)]===_0x4c9bdc(0x1cc)?_0x56637e['progressRate']:null,'currentStep':_0x56637e[_0x4c9bdc(0x1d5)]??null,'errorMsg':_0x56637e[_0x4c9bdc(0x1bd)]??null,'status':_0x45e088['status'],'manualResolutionRequired':_0x45e088[_0x4c9bdc(0x1c8)],'nextAction':_0x45e088['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x37e17c[_0x4c9bdc(0x1bb)],{'appCode':_0x593840[_0x4c9bdc(0x1b9)],'taskId':_0x4ba3ce,'operationId':_0x200535,'clientOperationId':_0x15eb78})},'dataListPageStatus':_0x3729d1,'result':_0x56637e[_0x4c9bdc(0x1da)]??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x554b54,_0x230eb6){const _0x49d13a=a209_0x5375,_0x4e0b89=_0x554b54();while(!![]){try{const _0x4e474a=-parseInt(_0x49d13a(0x77))/0x1+-parseInt(_0x49d13a(0x7c))/0x2+-parseInt(_0x49d13a(0x7b))/0x3*(-parseInt(_0x49d13a(0x79))/0x4)+-parseInt(_0x49d13a(0x7e))/0x5*(-parseInt(_0x49d13a(0x7d))/0x6)+-parseInt(_0x49d13a(0x7f))/0x7*(parseInt(_0x49d13a(0x78))/0x8)+-parseInt(_0x49d13a(0x80))/0x9*(parseInt(_0x49d13a(0x81))/0xa)+parseInt(_0x49d13a(0x7a))/0xb;if(_0x4e474a===_0x230eb6)break;else _0x4e0b89['push'](_0x4e0b89['shift']());}catch(_0x6fe8f8){_0x4e0b89['push'](_0x4e0b89['shift']());}}}(a209_0x2751,0x466b3));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';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';function a209_0x2751(){const _0x54e3f0=['3914658RzpFpb','10ETiwLq','368395TMvDUz','40128IQmLFm','16EoKwVj','13650153ahFadT','86565vRbmlW','364746fQqgOq','6AdIzBr','1018670JhsnPX','399ZLLpQj'];a209_0x2751=function(){return _0x54e3f0;};return a209_0x2751();}function a209_0x5375(_0x139939,_0x311c76){_0x139939=_0x139939-0x77;const _0x275192=a209_0x2751();let _0x5375c2=_0x275192[_0x139939];return _0x5375c2;}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_0x3004ae=a210_0x559f;(function(_0x27b3be,_0x1f763d){const _0x46cf58=a210_0x559f,_0x4b7ef3=_0x27b3be();while(!![]){try{const _0x589145=-parseInt(_0x46cf58(0x11b))/0x1+-parseInt(_0x46cf58(0x126))/0x2+-parseInt(_0x46cf58(0x134))/0x3+parseInt(_0x46cf58(0x137))/0x4*(parseInt(_0x46cf58(0x125))/0x5)+parseInt(_0x46cf58(0x110))/0x6*(parseInt(_0x46cf58(0x130))/0x7)+parseInt(_0x46cf58(0x139))/0x8+parseInt(_0x46cf58(0x140))/0x9*(parseInt(_0x46cf58(0x11a))/0xa);if(_0x589145===_0x1f763d)break;else _0x4b7ef3['push'](_0x4b7ef3['shift']());}catch(_0xcb545b){_0x4b7ef3['push'](_0x4b7ef3['shift']());}}}(a210_0x2f28,0x34c92));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';function a210_0x2f28(){const _0x253a39=['Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','length','name','2175372OWPhGq','type','push','bool','mode','datasetCode','code','all','batch','status','1863474OFyfNI','filter','items','pages','reason','conflict','\x20skipped','single','validation','relatedPages','20bRMJLz','377934ZjxyKp','pageVersion','appCode','compress','alias','number','str','\x20pulled,\x20','Pull\x20page\x20schema\x20to\x20local\x20files','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','279820BkoPSe','767792GruSuO','pull','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','string','local\x20unsynced\x20changes','map','would_pull','versionTag','detail','utf8','7zUFBwN','pageId','version-tag','lockFilePath','470916QsAqUC','force','lastSync','24RsvDfP','localPath','41864IeobEv','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','datasetIds'];a210_0x2f28=function(){return _0x253a39;};return a210_0x2f28();}import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';function a210_0x559f(_0x2b0f62,_0x1a531b){_0x2b0f62=_0x2b0f62-0x10e;const _0x2f2844=a210_0x2f28();let _0x559f31=_0x2f2844[_0x2b0f62];return _0x559f31;}import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':a210_0x3004ae(0x127),'description':a210_0x3004ae(0x123),'risk':'read','defaultOutputFormat':a210_0x3004ae(0x11e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x3004ae(0x120),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a210_0x3004ae(0x11f),'type':a210_0x3004ae(0x129),'description':a210_0x3004ae(0x128)},{'name':a210_0x3004ae(0x132),'type':a210_0x3004ae(0x129),'description':a210_0x3004ae(0x13d)},{'name':a210_0x3004ae(0x135),'type':'boolean','description':a210_0x3004ae(0x13a)}],async 'validate'(_0x6d17cd){validatePageTargetSelector(_0x6d17cd);},async 'dryRun'(_0x2fe10d){const _0x4b8b71=a210_0x3004ae,_0x44eeac=await buildPullPlan(_0x2fe10d);return{'method':'GET','url':_0x44eeac['mode']===_0x4b8b71(0x117)?'/smartapi/lovrabet/detail?pageId='+(_0x44eeac[_0x4b8b71(0x112)][0x0]?.['detail'][_0x4b8b71(0x131)]??''):_0x4b8b71(0x124),'body':{'appCode':_0x2fe10d['appCode'],'mode':_0x44eeac[_0x4b8b71(0x144)],'targetDatasetCode':_0x44eeac[_0x4b8b71(0x145)]??null,'pages':_0x44eeac[_0x4b8b71(0x112)]['map'](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x44eeac['mode'],'datasetCode':_0x44eeac['datasetCode']??null,'totalCandidates':_0x44eeac[_0x4b8b71(0x112)][_0x4b8b71(0x13e)],'totalWouldPull':_0x44eeac[_0x4b8b71(0x112)][_0x4b8b71(0x111)](_0x11adf9=>_0x11adf9[_0x4b8b71(0x10f)]==='would_pull')[_0x4b8b71(0x13e)],'totalConflicts':_0x44eeac[_0x4b8b71(0x112)][_0x4b8b71(0x111)](_0x3582fd=>_0x3582fd[_0x4b8b71(0x10f)]===_0x4b8b71(0x115))[_0x4b8b71(0x13e)]})};},async 'execute'(_0x175a71){const _0x578ea1=a210_0x3004ae,_0x1db3e6=loadPageProjectConfig(_0x175a71['appCode']),_0x42019e=await readPageLockFile(_0x1db3e6[_0x578ea1(0x133)]),{lockData:_0x2d54f1,appLock:_0x5d18f3}=ensurePageLockScope(_0x42019e??createEmptyPageLock(),_0x175a71['appCode']),_0x5774a7=await buildPullPlan(_0x175a71),_0x53bd8b=_0x175a71[_0x578ea1(0x143)]('force');if(_0x5774a7[_0x578ea1(0x144)]===_0x578ea1(0x117)&&_0x5774a7[_0x578ea1(0x112)][0x0]?.['status']===_0x578ea1(0x115)&&!_0x53bd8b)throw CliErrors[_0x578ea1(0x118)](_0x578ea1(0x13b)+_0x5774a7['items'][0x0][_0x578ea1(0x138)],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x37e304=[],_0x280455=[];for(const _0x465850 of _0x5774a7[_0x578ea1(0x112)]){if(_0x465850['status']===_0x578ea1(0x115)&&!_0x53bd8b){_0x280455[_0x578ea1(0x142)]({'pageId':_0x465850[_0x578ea1(0x12e)][_0x578ea1(0x131)],'type':_0x465850[_0x578ea1(0x12e)][_0x578ea1(0x141)],'title':_0x465850['detail'][_0x578ea1(0x13f)],'localPath':_0x465850['localPath'],'reason':_0x465850[_0x578ea1(0x114)]??'local\x20unsynced\x20changes'});continue;}await ensureParentDirectory(_0x465850[_0x578ea1(0x138)]);const _0xe2ea5f=serializePageSchemaForFile(_0x465850['detail'][_0x578ea1(0x146)]);await writeFile(_0x465850[_0x578ea1(0x138)],_0xe2ea5f,_0x578ea1(0x12f)),_0x5d18f3[_0x578ea1(0x113)][String(_0x465850[_0x578ea1(0x12e)][_0x578ea1(0x131)])]=buildLockEntry(_0x465850['detail'],_0xe2ea5f),_0x37e304[_0x578ea1(0x142)]({'pageId':_0x465850[_0x578ea1(0x12e)][_0x578ea1(0x131)],'type':_0x465850[_0x578ea1(0x12e)][_0x578ea1(0x141)],'title':_0x465850[_0x578ea1(0x12e)]['name'],'localPath':_0x465850[_0x578ea1(0x138)]});}return _0x5d18f3[_0x578ea1(0x136)]=new Date()['toISOString'](),await writePageLockFile(_0x1db3e6[_0x578ea1(0x133)],_0x2d54f1),{'ok':!![],'message':'Pull\x20complete:\x20'+_0x37e304[_0x578ea1(0x13e)]+_0x578ea1(0x122)+_0x280455[_0x578ea1(0x13e)]+_0x578ea1(0x116),'data':{'appCode':_0x175a71[_0x578ea1(0x11d)],'pulledPages':_0x37e304,'skippedPages':_0x280455,'totalPulled':_0x37e304['length'],'totalSkipped':_0x280455['length']}};}};async function buildPullPlan(_0x38962d){const _0x7577c6=a210_0x3004ae,_0x1987ec=loadPageProjectConfig(_0x38962d[_0x7577c6(0x11d)]),_0x26e5cb=await readPageLockFile(_0x1987ec[_0x7577c6(0x133)]),{appLock:_0xc8ed20}=ensurePageLockScope(_0x26e5cb??createEmptyPageLock(),_0x38962d[_0x7577c6(0x11d)]),_0x37628f=getPageIdFlag(_0x38962d);if(_0x37628f!==undefined){const _0x2116a4=await loadPageDetailForPage(_0x38962d,_0x37628f);return{'mode':_0x7577c6(0x117),'items':[await inspectPullTarget(_0x1987ec,_0xc8ed20[_0x7577c6(0x113)][String(_0x2116a4[_0x7577c6(0x131)])],_0x2116a4)]};}const _0x332cfe=await loadDatasetDetailForPage(_0x38962d),_0x2751c2=_0x332cfe[_0x7577c6(0x119)][_0x7577c6(0x111)](_0x5ad320=>!_0x5ad320['deleted']);if(_0x2751c2[_0x7577c6(0x13e)]===0x0)throw CliErrors[_0x7577c6(0x118)]('Dataset\x20\x22'+_0x332cfe[_0x7577c6(0x146)]+'\x22\x20has\x20no\x20undeleted\x20related\x20pages.');const _0x315944=await Promise[_0x7577c6(0x147)](_0x2751c2[_0x7577c6(0x12b)](_0x4b5317=>loadPageDetailForPage(_0x38962d,_0x4b5317['id']))),_0x21cf04=selectVersionTagGroup(_0x315944,_0x47a9b1=>_0x47a9b1[_0x7577c6(0x12d)],_0x38962d[_0x7577c6(0x121)](_0x7577c6(0x132)));return{'mode':_0x7577c6(0x10e),'datasetCode':_0x332cfe[_0x7577c6(0x146)],'items':await Promise['all'](_0x21cf04['items'][_0x7577c6(0x12b)](_0x2e186a=>inspectPullTarget(_0x1987ec,_0xc8ed20[_0x7577c6(0x113)][String(_0x2e186a[_0x7577c6(0x131)])],_0x2e186a)))};}async function inspectPullTarget(_0x20fd9d,_0x877769,_0x10ee2){const _0x442dc7=a210_0x3004ae,_0x1989bc=resolvePageFilePath(_0x20fd9d,_0x10ee2['pageId'],_0x10ee2[_0x442dc7(0x141)]),_0x3c2dd4=await fileExists(_0x1989bc);if(!_0x3c2dd4){const _0x2be3e8=serializePageSchemaForFile(_0x10ee2[_0x442dc7(0x146)]);return{'detail':_0x10ee2,'localPath':_0x1989bc,'localHash':computePageContentHash(_0x2be3e8),'status':_0x442dc7(0x12c)};}const _0x2c4676=await computePageFileHash(_0x1989bc);if(!_0x877769||_0x2c4676!==_0x877769['hash'])return{'detail':_0x10ee2,'localPath':_0x1989bc,'localHash':_0x2c4676,'status':'conflict','reason':_0x442dc7(0x12a)};return{'detail':_0x10ee2,'localPath':_0x1989bc,'localHash':_0x2c4676,'status':_0x442dc7(0x12c)};}function buildLockEntry(_0xdfcdc2,_0x12c664){const _0x504ad9=a210_0x3004ae;return{'hash':computePageContentHash(_0x12c664),'pageId':_0xdfcdc2[_0x504ad9(0x131)],'pageVersion':_0xdfcdc2[_0x504ad9(0x11c)],'type':_0xdfcdc2['type'],'title':_0xdfcdc2[_0x504ad9(0x13f)],'datasetIds':_0xdfcdc2[_0x504ad9(0x13c)],'versionTag':_0xdfcdc2[_0x504ad9(0x12d)]};}function toPreviewItem(_0x890f39){const _0xdfd430=a210_0x3004ae;return{'pageId':_0x890f39[_0xdfd430(0x12e)][_0xdfd430(0x131)],'type':_0x890f39[_0xdfd430(0x12e)][_0xdfd430(0x141)],'title':_0x890f39['detail'][_0xdfd430(0x13f)],'localPath':_0x890f39[_0xdfd430(0x138)],'status':_0x890f39[_0xdfd430(0x10f)],..._0x890f39[_0xdfd430(0x114)]?{'reason':_0x890f39[_0xdfd430(0x114)]}:{}};}
|