@lovrabet/rabetbase-cli 2.3.16-beta.4 → 2.3.16-beta.6
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.d.ts +9 -0
- package/lib/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.d.ts +2 -0
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.d.ts +8 -0
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.d.ts +13 -0
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.d.ts +25 -0
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.d.ts +2 -0
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.d.ts +1 -0
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.d.ts +51 -0
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.d.ts +1 -0
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.d.ts +5 -0
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.d.ts +1 -0
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.d.ts +12 -0
- package/lib/cli-flags.js +1 -1
- package/lib/cli.d.ts +2 -0
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.d.ts +2 -0
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.d.ts +2 -0
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.d.ts +2 -0
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.d.ts +2 -0
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.d.ts +18 -0
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.d.ts +5 -0
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.d.ts +10 -0
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.d.ts +2 -0
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.d.ts +11 -0
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.d.ts +46 -0
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.d.ts +2 -0
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.d.ts +2 -0
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.d.ts +2 -0
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.d.ts +2 -0
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.d.ts +2 -0
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.d.ts +105 -0
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.d.ts +2 -0
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.d.ts +4 -0
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.d.ts +2 -0
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.d.ts +2 -0
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.d.ts +5 -0
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.d.ts +2 -0
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.d.ts +2 -0
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.d.ts +2 -0
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.d.ts +2 -0
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.d.ts +8 -0
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.d.ts +2 -0
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.d.ts +2 -0
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.d.ts +2 -0
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.d.ts +2 -0
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.d.ts +17 -0
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.d.ts +17 -0
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.d.ts +11 -0
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.d.ts +12 -0
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.d.ts +26 -0
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.d.ts +6 -0
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.d.ts +13 -0
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.d.ts +5 -0
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.d.ts +5 -0
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.d.ts +5 -0
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.d.ts +5 -0
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.d.ts +16 -0
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.d.ts +7 -0
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.d.ts +7 -0
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.d.ts +8 -0
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.d.ts +33 -0
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.d.ts +18 -0
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/capability.d.ts +11 -0
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.d.ts +2 -0
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.d.ts +2 -0
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.d.ts +26 -0
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.d.ts +27 -0
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.d.ts +3 -0
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.d.ts +2 -0
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.d.ts +2 -0
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.d.ts +2 -0
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.d.ts +2 -0
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.d.ts +2 -0
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.d.ts +2 -0
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.d.ts +128 -0
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.d.ts +2 -0
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.d.ts +53 -0
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.d.ts +17 -0
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.d.ts +2 -0
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.d.ts +30 -0
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.d.ts +2 -0
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.d.ts +2 -0
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.d.ts +2 -0
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.d.ts +2 -0
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.d.ts +2 -0
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.d.ts +2 -0
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.d.ts +2 -0
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.d.ts +2 -0
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.d.ts +5 -0
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.d.ts +2 -0
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.d.ts +15 -0
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.d.ts +2 -0
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.d.ts +2 -0
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.d.ts +2 -0
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.d.ts +2 -0
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.d.ts +2 -0
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.d.ts +11 -0
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.d.ts +2 -0
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.d.ts +23 -0
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.d.ts +2 -0
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.d.ts +32 -0
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.d.ts +2 -0
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.d.ts +2 -0
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.d.ts +2 -0
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.d.ts +2 -0
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.d.ts +2 -0
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.d.ts +33 -0
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.d.ts +2 -0
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.d.ts +5 -0
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.d.ts +2 -0
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.d.ts +2 -0
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.d.ts +3 -0
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.d.ts +2 -0
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.d.ts +2 -0
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.d.ts +2 -0
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.d.ts +17 -0
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.d.ts +2 -0
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.d.ts +2 -0
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.d.ts +2 -0
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.d.ts +2 -0
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.d.ts +27 -0
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.d.ts +51 -0
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.d.ts +12 -0
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.d.ts +12 -0
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.d.ts +10 -0
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.d.ts +12 -0
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.d.ts +28 -0
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.d.ts +69 -0
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.d.ts +17 -0
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.d.ts +7 -0
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/types.d.ts +162 -0
- package/lib/commands/menu/shared/update-core.d.ts +11 -0
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.d.ts +6 -0
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.d.ts +2 -0
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/notification/config-list.d.ts +2 -0
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/index.d.ts +2 -0
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/ocr/index.d.ts +2 -0
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/generate-start.d.ts +2 -0
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.d.ts +2 -0
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.d.ts +2 -0
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.d.ts +2 -0
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.d.ts +2 -0
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.d.ts +2 -0
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.d.ts +2 -0
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.d.ts +105 -0
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.d.ts +2 -0
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.d.ts +2 -0
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/permit/index.d.ts +2 -0
- package/lib/commands/permit/index.js +1 -1
- package/lib/commands/permit/page-get.d.ts +2 -0
- package/lib/commands/permit/page-get.js +1 -1
- package/lib/commands/permit/page-set.d.ts +2 -0
- package/lib/commands/permit/page-set.js +1 -1
- package/lib/commands/permit/role-apis-set.d.ts +2 -0
- package/lib/commands/permit/role-apis-set.js +1 -1
- package/lib/commands/permit/role-menus-set.d.ts +2 -0
- package/lib/commands/permit/role-menus-set.js +1 -1
- package/lib/commands/permit/role-menus.d.ts +2 -0
- package/lib/commands/permit/role-menus.js +1 -1
- package/lib/commands/permit/shared.d.ts +74 -0
- package/lib/commands/permit/shared.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.d.ts +7 -0
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.d.ts +1 -0
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.d.ts +6 -0
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.d.ts +9 -0
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.d.ts +4 -0
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.d.ts +1 -0
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.d.ts +1 -0
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.d.ts +1 -0
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.d.ts +2 -0
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.d.ts +1 -0
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.d.ts +66 -0
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/create.d.ts +2 -0
- package/lib/commands/role/create.js +1 -1
- package/lib/commands/role/delete.d.ts +2 -0
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.d.ts +2 -0
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.d.ts +2 -0
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.d.ts +2 -0
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.d.ts +107 -0
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.d.ts +2 -0
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.d.ts +2 -0
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.d.ts +2 -0
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.d.ts +2 -0
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.d.ts +2 -0
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.d.ts +5 -0
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.d.ts +10 -0
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.d.ts +5 -0
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.d.ts +2 -0
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.d.ts +2 -0
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.d.ts +5 -0
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.d.ts +2 -0
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.d.ts +5 -0
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.d.ts +5 -0
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.d.ts +23 -0
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.d.ts +5 -0
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.d.ts +2 -0
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.d.ts +2 -0
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.d.ts +2 -0
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.d.ts +2 -0
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.d.ts +2 -0
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.d.ts +10 -0
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/workspace/add.d.ts +6 -0
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.d.ts +11 -0
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.d.ts +6 -0
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.d.ts +50 -0
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.d.ts +1 -0
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.d.ts +34 -0
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.d.ts +10 -0
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.d.ts +14 -0
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.d.ts +11 -0
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.d.ts +1 -0
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.d.ts +5 -0
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.d.ts +1 -0
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.d.ts +36 -0
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.d.ts +5 -0
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.d.ts +61 -0
- package/lib/context/config-loader.js +1 -1
- package/lib/context.d.ts +102 -0
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.d.ts +31 -0
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.d.ts +1018 -0
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.d.ts +8 -0
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.d.ts +28 -0
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.d.ts +7 -0
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.d.ts +25 -0
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/types.d.ts +92 -0
- package/lib/core/bff/utils.d.ts +25 -0
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.d.ts +43 -0
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.d.ts +6 -0
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.d.ts +4 -0
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.d.ts +8 -0
- package/lib/core/page/lock.js +1 -1
- package/lib/core/page/types.d.ts +22 -0
- package/lib/core/sql-index-auditor.d.ts +33 -0
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.d.ts +7 -0
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.d.ts +7 -0
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.d.ts +5 -0
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.d.ts +14 -0
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/types.d.ts +43 -0
- package/lib/core/sql-sync/utils.d.ts +10 -0
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.d.ts +34 -0
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.d.ts +3 -0
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.d.ts +2 -0
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.d.ts +9 -0
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.d.ts +3 -0
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.d.ts +3 -0
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.d.ts +4 -0
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.d.ts +11 -0
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.d.ts +15 -0
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.d.ts +2 -0
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.d.ts +14 -0
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.d.ts +36 -0
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.d.ts +3 -0
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.d.ts +63 -0
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -0
- package/lib/generated/build-info.js +1 -1
- package/lib/help.d.ts +1 -0
- package/lib/help.js +1 -1
- package/lib/runtime/confirmation.d.ts +4 -0
- package/lib/runtime/confirmation.js +1 -0
- package/lib/runtime/event.d.ts +5 -0
- package/lib/runtime/event.js +1 -0
- package/lib/runtime/index.d.ts +7 -0
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/queue.d.ts +5 -0
- package/lib/runtime/queue.js +1 -0
- package/lib/runtime/resolve.d.ts +8 -0
- package/lib/runtime/resolve.js +1 -0
- package/lib/runtime/types.d.ts +50 -0
- package/lib/runtime/types.js +1 -0
- package/lib/skills/main.d.ts +41 -0
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.d.ts +99 -0
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.d.ts +44 -0
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.d.ts +12 -0
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.d.ts +8 -0
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.d.ts +6 -0
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.d.ts +3 -0
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.d.ts +17 -0
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.d.ts +26 -0
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/types/index.d.ts +93 -0
- package/lib/utils/ai_config.d.ts +47 -0
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.d.ts +1 -0
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.d.ts +42 -0
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.d.ts +23 -0
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.d.ts +37 -0
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.d.ts +9 -0
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.d.ts +42 -0
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.d.ts +1 -0
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.d.ts +30 -0
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.d.ts +25 -0
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.d.ts +80 -0
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.d.ts +30 -0
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.d.ts +7 -0
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.d.ts +62 -0
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.d.ts +15 -0
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.d.ts +21 -0
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.d.ts +38 -0
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.d.ts +1 -0
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.d.ts +55 -0
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.d.ts +10 -0
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.d.ts +1 -0
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.d.ts +1 -0
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.d.ts +6 -0
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +9 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a131_0x5e6587=a131_0x4d62;(function(_0x5a1982,_0xa60cea){const _0x5bdd32=a131_0x4d62,_0x4d0cac=_0x5a1982();while(!![]){try{const _0x4f7710=-parseInt(_0x5bdd32(0x100))/0x1*(-parseInt(_0x5bdd32(0x115))/0x2)+parseInt(_0x5bdd32(0x11c))/0x3*(parseInt(_0x5bdd32(0x116))/0x4)+-parseInt(_0x5bdd32(0x113))/0x5*(parseInt(_0x5bdd32(0xf4))/0x6)+parseInt(_0x5bdd32(0x125))/0x7*(parseInt(_0x5bdd32(0x120))/0x8)+-parseInt(_0x5bdd32(0x108))/0x9+-parseInt(_0x5bdd32(0x10f))/0xa*(-parseInt(_0x5bdd32(0x122))/0xb)+parseInt(_0x5bdd32(0x10c))/0xc*(-parseInt(_0x5bdd32(0x111))/0xd);if(_0x4f7710===_0xa60cea)break;else _0x4d0cac['push'](_0x4d0cac['shift']());}catch(_0x2e4d0b){_0x4d0cac['push'](_0x4d0cac['shift']());}}}(a131_0x856a,0x9458b));import a131_0x3e6b77 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';function a131_0x856a(){const _0x3f74d3=['3460008EVBXyF','Fetching\x20online\x20menu\x20list...','failed','690KkdvOG','cyan','13NfzkHX','\x20created.','24655bWicyH','filter','318tEJOcJ','4pnaSYw','/smartapi/menu/create','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}','\x20menu(s)\x20created','cookie','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','341796tFHfiK','sync','Menu\x20sync\x20skipped','Online\x20menu\x20list\x20fetched','34784RnnFlE','\x20local\x20microfrontend\x20menu(s).','19657MqbMKZ','localPages','menu','1386NwBxYb','map','yes','\x20failed.','\x20\x20Create\x20','Menu\x20sync\x20completed:\x20','Created\x20','length','✓\x20Menu\x20sync\x20completed:\x20','validation','No\x20local\x20microfrontend\x20menus\x20would\x20be\x20created.','created','Preview\x20with\x20--dry-run,\x20then\x20reuse\x20the\x20same\x20--paths\x20and\x20--params\x20with\x20--yes.','cssUrl','boolean','trim','string','Failed\x20to\x20fetch\x20online\x20menu\x20list','message','size','\x20and\x20CSS:\x20','flag','menu\x20sync\x20--paths\x20requires\x20--yes\x20for\x20execution.','yellow','\x20menu(s)\x20with\x20JS:\x20','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','6uuFRTf','jsUrl','gray','Creating\x20','appcode','Exact\x20comma-separated\x20local\x20page\x20paths\x20to\x20sync','rawFlags','str','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','skipped','\x20\x20Cancelled.','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','2633gpviII','\x20page(s)','onlinePaths','appCode','paths','\x20created,\x20','onlineMenuList','Pre-fill\x20JS/CSS\x20URLs.\x20','5543046iFVIxy','Menu\x20creation\x20failed','params','selectedAppName'];a131_0x856a=function(){return _0x3f74d3;};return a131_0x856a();}import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{parseMenuSyncParams,runMenuSyncCore}from'../../commands/menu/shared/sync-core.js';function a131_0x4d62(_0x5de721,_0x50cb4c){_0x5de721=_0x5de721-0xdd;const _0x856a43=a131_0x856a();let _0x4d6241=_0x856a43[_0x5de721];return _0x4d6241;}import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';export const menuSync={'service':a131_0x5e6587(0x124),'command':a131_0x5e6587(0x11d),'description':'Sync\x20local\x20pages\x20as\x20platform\x20menus','risk':'write','flags':[{'name':a131_0x5e6587(0x10a),'type':a131_0x5e6587(0xea),'description':a131_0x5e6587(0x107)+a131_0x5e6587(0x118)},{'name':a131_0x5e6587(0x104),'type':'string','description':a131_0x5e6587(0xf9)},{'name':a131_0x5e6587(0x127),'type':a131_0x5e6587(0xe8),'description':'Confirm\x20non-interactive\x20sync;\x20without\x20--paths,\x20create\x20all\x20missing\x20local\x20pages'}],async 'dryRun'(_0x1b2663){const _0x1dd860=a131_0x5e6587;ensureRunnableContext(_0x1b2663[_0x1dd860(0xfa)],_0x1b2663['selectedAppName']);const _0x1c58ab=await runMenuSyncCore(_0x1b2663[_0x1dd860(0x103)],_0x1b2663['cookie'],parsePaths(_0x1b2663['str'](_0x1dd860(0x104))),_0x1b2663[_0x1dd860(0xfb)](_0x1dd860(0x10a)),{'dryRun':!![]});return{'method':'POST','url':_0x1dd860(0x117),'body':_0x1c58ab,'description':_0x1c58ab[_0x1dd860(0xfd)]?_0x1dd860(0xe4):'Would\x20create\x20'+_0x1c58ab['targetPages'][_0x1dd860(0xe1)]+_0x1dd860(0x121)};},async 'execute'(_0x463333){const _0x2ac0b7=a131_0x5e6587;ensureRunnableContext(_0x463333[_0x2ac0b7(0xfa)],_0x463333[_0x2ac0b7(0x10b)]);const _0x25e3a2=_0x463333[_0x2ac0b7(0xef)]('yes'),_0x18ad14=_0x463333[_0x2ac0b7(0xfb)](_0x2ac0b7(0x10a)),_0x3f3c44=parsePaths(_0x463333[_0x2ac0b7(0xfb)](_0x2ac0b7(0x104))),_0x90fea9=parseMenuSyncParams(_0x18ad14);if(_0x25e3a2){const _0x32b0e5=await runMenuSyncCore(_0x463333['appCode'],_0x463333[_0x2ac0b7(0x11a)],_0x3f3c44,_0x18ad14);if(_0x32b0e5[_0x2ac0b7(0xfd)]){const _0x33e9b1=getLocalPages();_0x33e9b1[_0x2ac0b7(0xe1)]===0x0?writeCliSideChannelLine(_0x2ac0b7(0x11b)):writeCliSideChannelLine('✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform');}else writeCliSideChannelLine(_0x2ac0b7(0xe2)+_0x32b0e5[_0x2ac0b7(0xe5)]+_0x2ac0b7(0x119));return{'ok':!![],'data':_0x32b0e5,'message':_0x32b0e5[_0x2ac0b7(0xfd)]?_0x2ac0b7(0x11e):'Menu\x20sync\x20completed:\x20'+_0x32b0e5[_0x2ac0b7(0xe5)]+_0x2ac0b7(0x112)};}if(_0x3f3c44[_0x2ac0b7(0xe1)]>0x0)throw CliErrors[_0x2ac0b7(0xe3)](_0x2ac0b7(0xf0),_0x2ac0b7(0xe6));if(!isInteractive()&&_0x18ad14)throw CliErrors[_0x2ac0b7(0xe3)]('Non-interactive\x20menu\x20sync\x20requires\x20--yes.',_0x2ac0b7(0xe6));requireInteractive();const _0x49c773=startSpinner(_0x2ac0b7(0x10d));let _0x44394b,_0x34566f,_0x3fe48d;try{const _0x138095=await fetchMenuData(_0x463333[_0x2ac0b7(0x103)],_0x463333[_0x2ac0b7(0x11a)]);_0x44394b=_0x138095[_0x2ac0b7(0x123)],_0x34566f=_0x138095[_0x2ac0b7(0x102)],_0x3fe48d=_0x138095[_0x2ac0b7(0x106)],stopSpinner(_0x49c773,_0x2ac0b7(0x11f),!![]);}catch(_0x25c06e){stopSpinner(_0x49c773,'Failed\x20to\x20fetch\x20online\x20menu\x20list',![]);throw CliErrors[_0x2ac0b7(0xe3)](_0x25c06e instanceof Error?_0x25c06e['message']:_0x2ac0b7(0xeb));}if(_0x44394b[_0x2ac0b7(0xe1)]===0x0)return writeCliSideChannelLine(a131_0x3e6b77[_0x2ac0b7(0xf1)](_0x2ac0b7(0xff))),{'ok':!![]};const _0x557c74=buildCompareRows(_0x44394b,_0x34566f);writeCliSideChannelLine(renderCompareTable(_0x557c74)),writeCliSideChannelLine('');const _0x1f82ec=await selectPages(_0x44394b,_0x34566f);writeCliSideChannelLine(''),writeCliSideChannelLine(a131_0x3e6b77[_0x2ac0b7(0x110)]('\x20\x20✓\x20Selected:\x20'+_0x1f82ec['length']+_0x2ac0b7(0x101)));const _0x132ee3=_0x90fea9[_0x2ac0b7(0xf5)]&&_0x90fea9[_0x2ac0b7(0xe7)];if(!_0x132ee3){writeCliSideChannelLine(renderSyncSummary(_0x1f82ec,_0x34566f[_0x2ac0b7(0xed)]>0x0));const _0x422ba5=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x422ba5)return writeCliSideChannelLine(a131_0x3e6b77[_0x2ac0b7(0xf6)](_0x2ac0b7(0xfe))),{'ok':!![]};}let _0x1a0471=_0x90fea9[_0x2ac0b7(0xf5)],_0x576713=_0x90fea9['cssUrl'];!_0x1a0471&&(_0x1a0471=await askJsUrl());!_0x576713&&(_0x576713=await askCssUrl());const _0x2ae6f2=await askConfirm(_0x2ac0b7(0xde)+_0x1f82ec[_0x2ac0b7(0xe1)]+_0x2ac0b7(0xf2)+_0x1a0471+_0x2ac0b7(0xee)+_0x576713+'?');if(!_0x2ae6f2)return writeCliSideChannelLine(a131_0x3e6b77['gray'](_0x2ac0b7(0xfe))),{'ok':!![]};const _0x563821=[_0x1a0471,_0x576713],_0x58c38c=startSpinner(_0x2ac0b7(0xf7)+_0x1f82ec[_0x2ac0b7(0xe1)]+'\x20menu(s)...');try{const _0x49b08d=await doCreateMenus(_0x463333[_0x2ac0b7(0x103)],_0x463333[_0x2ac0b7(0x11a)],_0x1f82ec,_0x563821);return stopSpinner(_0x58c38c,_0x2ac0b7(0xe0)+_0x49b08d[_0x2ac0b7(0xe5)]+'\x20menu(s)',!![]),{'ok':!![],'data':_0x49b08d,'message':_0x2ac0b7(0xdf)+_0x49b08d['created']+_0x2ac0b7(0x105)+_0x49b08d[_0x2ac0b7(0x10e)]+_0x2ac0b7(0xdd)};}catch(_0x39fc4a){stopSpinner(_0x58c38c,_0x2ac0b7(0x109),![]);throw CliErrors[_0x2ac0b7(0xe3)](_0x39fc4a instanceof Error?_0x39fc4a[_0x2ac0b7(0xec)]:_0x2ac0b7(0x109));}}};function ensureRunnableContext(_0x1c3e47,_0x5c4b58){const _0x3a90fd=a131_0x5e6587,_0xbf5877=_0x1c3e47[_0x3a90fd(0xf8)]?String(_0x1c3e47['appcode'])[_0x3a90fd(0xe9)]():'';if(!isInProject()&&!_0x5c4b58&&!_0xbf5877)throw CliErrors[_0x3a90fd(0xe3)](_0x3a90fd(0xfc)+_0x3a90fd(0xf3));}function parsePaths(_0x34996c){const _0x5178c7=a131_0x5e6587;return[...new Set(_0x34996c['split'](',')[_0x5178c7(0x126)](_0x5c79f0=>_0x5c79f0[_0x5178c7(0xe9)]())[_0x5178c7(0x114)](Boolean))];}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a132_0xeee6c5=a132_0xfb56;(function(_0x2ce45f,_0x42f370){const _0x120e41=a132_0xfb56,_0x3845b6=_0x2ce45f();while(!![]){try{const _0x1e365d=-parseInt(_0x120e41(0x120))/0x1+-parseInt(_0x120e41(0x123))/0x2*(parseInt(_0x120e41(0x12a))/0x3)+parseInt(_0x120e41(0x131))/0x4+parseInt(_0x120e41(0x12e))/0x5+-parseInt(_0x120e41(0x127))/0x6+parseInt(_0x120e41(0x11e))/0x7*(parseInt(_0x120e41(0x13b))/0x8)+parseInt(_0x120e41(0x130))/0x9*(-parseInt(_0x120e41(0x12b))/0xa);if(_0x1e365d===_0x42f370)break;else _0x3845b6['push'](_0x3845b6['shift']());}catch(_0x5c5c56){_0x3845b6['push'](_0x3845b6['shift']());}}}(a132_0x7b6b,0x2f63c));import{APPCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{listNotificationChannelConfigs}from'../../core/api-client.js';import{CliErrors}from'../../errors.js';function a132_0xfb56(_0x4c7fac,_0xaf3154){_0x4c7fac=_0x4c7fac-0x11a;const _0x7b6ba7=a132_0x7b6b();let _0xfb5678=_0x7b6ba7[_0x4c7fac];return _0xfb5678;}const NOTIFICATION_CHANNEL_TYPES=[a132_0xeee6c5(0x125),a132_0xeee6c5(0x126),'DINGTALK',a132_0xeee6c5(0x11d),a132_0xeee6c5(0x12d)];function a132_0x7b6b(){const _0x300cce=['trim','notification','type','createTime','validation','updateTime','read','WECOM','709737NSpyNf','Item\x20','127495twzxgZ','map','appCode','4qjLqVt','length','EMAIL','FEISHU','17394NpsmLi','string','Notification\x20channel\x20type','411909KQjIbX','2870POjGbD','Invalid\x20--type:\x20','WEBHOOK','1038775NFfTIA','\x20is\x20missing\x20required\x20field\x20\x22','2718CaONOj','695416ncWpIc','number','Allowed\x20values:\x20','join','Found\x20','Invalid\x20notification\x20config\x20response.','List\x20app-level\x20notification\x20configs\x20and\x20their\x20configCode\x20values','channelType','configName','\x20notification\x20config(s)','24lSiNjh','includes'];a132_0x7b6b=function(){return _0x300cce;};return a132_0x7b6b();}export const notificationConfigList={'service':a132_0xeee6c5(0x13e),'command':'config-list','description':a132_0xeee6c5(0x137),'risk':a132_0xeee6c5(0x11c),'flags':[APPCODE_FLAG_OPTIONAL,{'name':a132_0xeee6c5(0x13f),'type':a132_0xeee6c5(0x128),'description':a132_0xeee6c5(0x129),'enum':NOTIFICATION_CHANNEL_TYPES,'default':a132_0xeee6c5(0x125)}],async 'validate'(_0xc26ecd){readChannelType(_0xc26ecd);},async 'execute'(_0x533a5e){const _0x5ee544=a132_0xeee6c5,_0x393e74=readChannelType(_0x533a5e),_0x3d1979=await listNotificationChannelConfigs(_0x533a5e['appCode'],_0x393e74),_0x4ae475=_0x3d1979[_0x5ee544(0x121)](projectNotificationConfig);return{'ok':!![],'data':{'appCode':_0x533a5e[_0x5ee544(0x122)],'channelType':_0x393e74,'count':_0x4ae475[_0x5ee544(0x124)],'configs':_0x4ae475},'message':_0x5ee544(0x135)+_0x4ae475['length']+'\x20'+_0x393e74+_0x5ee544(0x13a)};}};function readChannelType(_0x40ef5f){const _0x3144dd=a132_0xeee6c5,_0x4efc00=_0x40ef5f['str']('type')[_0x3144dd(0x13d)]()||_0x3144dd(0x125);if(!NOTIFICATION_CHANNEL_TYPES[_0x3144dd(0x13c)](_0x4efc00))throw CliErrors[_0x3144dd(0x11a)](_0x3144dd(0x12c)+_0x4efc00,_0x3144dd(0x133)+NOTIFICATION_CHANNEL_TYPES[_0x3144dd(0x134)](',\x20')+'.');return _0x4efc00;}function projectNotificationConfig(_0x1903af,_0x557c73){const _0xaf5638=a132_0xeee6c5;return{'id':typeof _0x1903af['id']===_0xaf5638(0x132)?_0x1903af['id']:null,'configCode':requireConfigString(_0x1903af,'configCode',_0x557c73),'configName':requireConfigString(_0x1903af,_0xaf5638(0x139),_0x557c73),'channelType':requireConfigString(_0x1903af,_0xaf5638(0x138),_0x557c73),'description':normalizeNullableString(_0x1903af['description']),'createTime':normalizeNullableString(_0x1903af[_0xaf5638(0x140)]),'updateTime':normalizeNullableString(_0x1903af[_0xaf5638(0x11b)])};}function requireConfigString(_0x291aa8,_0x36824b,_0x1e72b9){const _0x56f2ea=a132_0xeee6c5,_0x4dcd4f=_0x291aa8[_0x36824b];if(typeof _0x4dcd4f!==_0x56f2ea(0x128)||_0x4dcd4f[_0x56f2ea(0x13d)]()==='')throw CliErrors['apiError'](_0x56f2ea(0x136),_0x56f2ea(0x11f)+(_0x1e72b9+0x1)+_0x56f2ea(0x12f)+_0x36824b+'\x22.');return _0x4dcd4f[_0x56f2ea(0x13d)]();}function normalizeNullableString(_0x3feee2){const _0x5576b2=a132_0xeee6c5;return typeof _0x3feee2===_0x5576b2(0x128)?_0x3feee2:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xb71a18,_0x4aaefa){const _0x532bd3=a133_0x3c23,_0x7bf057=_0xb71a18();while(!![]){try{const _0x4282e6=-parseInt(_0x532bd3(0x12d))/0x1*(parseInt(_0x532bd3(0x125))/0x2)+-parseInt(_0x532bd3(0x12c))/0x3+-parseInt(_0x532bd3(0x127))/0x4+-parseInt(_0x532bd3(0x12e))/0x5+-parseInt(_0x532bd3(0x126))/0x6+parseInt(_0x532bd3(0x129))/0x7*(-parseInt(_0x532bd3(0x12a))/0x8)+parseInt(_0x532bd3(0x12b))/0x9*(parseInt(_0x532bd3(0x128))/0xa);if(_0x4282e6===_0x4aaefa)break;else _0x7bf057['push'](_0x7bf057['shift']());}catch(_0x1ee7f8){_0x7bf057['push'](_0x7bf057['shift']());}}}(a133_0x2274,0x62488));import{notificationConfigList}from'../../commands/notification/config-list.js';function a133_0x3c23(_0x3eabbc,_0x2ae0cd){_0x3eabbc=_0x3eabbc-0x125;const _0x227456=a133_0x2274();let _0x3c23b1=_0x227456[_0x3eabbc];return _0x3c23b1;}function a133_0x2274(){const _0x5a1051=['1553944EHhnow','16PHSzTY','54rqYOyO','147732AXOeBF','925LwNFia','2105070hRcVJw','898UCSobi','3322122HmVqaH','2013016DonJwH','4648460ijXhEm'];a133_0x2274=function(){return _0x5a1051;};return a133_0x2274();}export const notificationDefinitions=[notificationConfigList];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a134_0x2b3e(_0x4a9afe,_0xc6afed){_0x4a9afe=_0x4a9afe-0x98;const _0x4f137f=a134_0x4f13();let _0x2b3e74=_0x4f137f[_0x4a9afe];return _0x2b3e74;}const a134_0x2fc6c6=a134_0x2b3e;(function(_0x52b3c0,_0x76d2ff){const _0x1e00f6=a134_0x2b3e,_0x2d612a=_0x52b3c0();while(!![]){try{const _0xb385c=-parseInt(_0x1e00f6(0xc8))/0x1+parseInt(_0x1e00f6(0xa4))/0x2+-parseInt(_0x1e00f6(0xb7))/0x3+parseInt(_0x1e00f6(0xa3))/0x4+parseInt(_0x1e00f6(0xba))/0x5*(-parseInt(_0x1e00f6(0xa9))/0x6)+-parseInt(_0x1e00f6(0xb3))/0x7+parseInt(_0x1e00f6(0xbe))/0x8*(parseInt(_0x1e00f6(0xab))/0x9);if(_0xb385c===_0x76d2ff)break;else _0x2d612a['push'](_0x2d612a['shift']());}catch(_0x41e3df){_0x2d612a['push'](_0x2d612a['shift']());}}}(a134_0x4f13,0x4f13a));import{requireDevelopmentUploadFile}from'../../commands/common/local-file.js';import{queryDevelopmentFileUrl,recognizeDevelopmentOcr,uploadDevelopmentFile}from'../../core/api-client.js';function a134_0x4f13(){const _0x54654c=['Invoice','955tgJOvp','apiError','recognize','length','4020208AqYnvs','POST','File\x20URL\x20response\x20missing\x20fileUrl.','/smartapi/common/uploadFile','imageUrl','Preview:\x20upload\x20local\x20file,\x20query\x20temporary\x20URL,\x20then\x20recognize\x20','scene','.\x20Supported\x20scenes:\x20','File\x20upload\x20response\x20missing\x20filePath.','fileName','432807LESVxY','validation','IdCard','OCR\x20scene:\x20invoice,\x20general,\x20form,\x20or\x20idCard','idcard','使用研发态\x20OCR\x20服务识别\x20URL\x20或本地文件中的文字','string','str','image-url','imageFile','general','trim','\x20OCR\x20from\x20URL','toLowerCase','form','path','1742272NfRpOV','906652HKOnqD','/smartapi/common/queryFileUrl','GET','<fileUrl\x20returned\x20by\x20/smartapi/common/queryFileUrl>','Publicly\x20accessible\x20image\x20or\x20file\x20URL','60mUyAfI','invoice','9YjLIoD','Table','<filePath\x20returned\x20by\x20/smartapi/common/uploadFile>','idCard','image-file','filePath','fileUrl','appCode','1232630CURJxK','/smartapi/ocr/recognize-text?','ocr','Unsupported\x20OCR\x20scene:\x20','1370145FagAAQ','filter'];a134_0x4f13=function(){return _0x54654c;};return a134_0x4f13();}import{CliErrors}from'../../errors.js';const SUPPORTED_SCENES=['invoice','general',a134_0x2fc6c6(0xa1),a134_0x2fc6c6(0xae)],SCENE_TO_LEGACY_TYPE={'invoice':a134_0x2fc6c6(0xb9),'general':'General','form':a134_0x2fc6c6(0xac),'idCard':a134_0x2fc6c6(0xca)},SCENE_FLAG={'name':a134_0x2fc6c6(0xc4),'type':a134_0x2fc6c6(0x99),'required':!![],'enum':[...SUPPORTED_SCENES],'description':a134_0x2fc6c6(0xcb)},IMAGE_FILE_FLAG={'name':'image-file','type':a134_0x2fc6c6(0x99),'description':'Local\x20image\x20or\x20PDF\x20file;\x20uses\x20upload\x20->\x20query-url\x20->\x20OCR'},IMAGE_URL_FLAG={'name':'image-url','type':'string','description':a134_0x2fc6c6(0xa8)};function normalizeScene(_0x2c5575){const _0x2ea936=a134_0x2fc6c6,_0x3bacef=_0x2c5575['trim']()[_0x2ea936(0xa0)]();if(_0x3bacef===_0x2ea936(0xcc))return _0x2ea936(0xae);if(_0x3bacef===_0x2ea936(0xaa)||_0x3bacef===_0x2ea936(0x9d)||_0x3bacef==='form')return _0x3bacef;throw CliErrors['validation'](_0x2ea936(0xb6)+_0x2c5575+_0x2ea936(0xc5)+SUPPORTED_SCENES['join'](',\x20'));}function selectedInputs(_0x3700d2){const _0x3f0a23=a134_0x2fc6c6,_0x1ed93b=_0x3700d2['str'](_0x3f0a23(0xaf))['trim'](),_0x2f2ff9=_0x3700d2['str'](_0x3f0a23(0x9b))[_0x3f0a23(0x9e)]();return{'imageFile':_0x1ed93b,'imageUrl':_0x2f2ff9,'count':[_0x1ed93b,_0x2f2ff9][_0x3f0a23(0xb8)](Boolean)[_0x3f0a23(0xbd)]};}function validateInputSelection(_0x134ef6){const _0xfbeecd=a134_0x2fc6c6,_0x25fa1c=selectedInputs(_0x134ef6);if(_0x25fa1c['count']!==0x1)throw CliErrors[_0xfbeecd(0xc9)]('Choose\x20exactly\x20one\x20OCR\x20input:\x20--image-file\x20or\x20--image-url.');return _0x25fa1c;}function withScene(_0x22901d,_0x147473,_0xced3a0){const _0xd143a7=a134_0x2fc6c6;return{..._0x22901d,'scene':_0x147473,..._0xced3a0?{'sourceFile':{'fileName':_0xced3a0[_0xd143a7(0xc7)],'filePath':_0xced3a0[_0xd143a7(0xb0)]}}:{}};}const ocrRecognize={'service':a134_0x2fc6c6(0xb5),'command':a134_0x2fc6c6(0xbc),'description':a134_0x2fc6c6(0x98),'risk':'read','flags':[SCENE_FLAG,IMAGE_FILE_FLAG,IMAGE_URL_FLAG],async 'dryRun'(_0x5015e0){const _0x3ac106=a134_0x2fc6c6,_0x4a2502=normalizeScene(_0x5015e0[_0x3ac106(0x9a)](_0x3ac106(0xc4))),_0x258d99=SCENE_TO_LEGACY_TYPE[_0x4a2502],_0x50a17f=validateInputSelection(_0x5015e0);if(_0x50a17f[_0x3ac106(0xc2)]){const _0x242071=new URLSearchParams({'url':_0x50a17f['imageUrl'],'type':_0x258d99,'appCode':_0x5015e0[_0x3ac106(0xb2)]});return{'method':'GET','url':_0x3ac106(0xb4)+_0x242071['toString'](),'description':'Preview:\x20recognize\x20'+_0x4a2502+_0x3ac106(0x9f)};}const _0x26892f=requireDevelopmentUploadFile(_0x50a17f[_0x3ac106(0x9c)],_0x3ac106(0xaf));return{'method':_0x3ac106(0xbf),'url':_0x3ac106(0xc1),'body':{'steps':[{'method':_0x3ac106(0xbf),'url':_0x3ac106(0xc1),'body':{'appCode':_0x5015e0[_0x3ac106(0xb2)],'multipart':{'file':_0x26892f}}},{'method':_0x3ac106(0xbf),'url':_0x3ac106(0xa5),'body':{'filePath':_0x3ac106(0xad),'downloadFlag':![]}},{'method':_0x3ac106(0xa6),'url':'/smartapi/ocr/recognize-text','query':{'appCode':_0x5015e0[_0x3ac106(0xb2)],'url':_0x3ac106(0xa7),'type':_0x258d99}}]},'description':_0x3ac106(0xc3)+_0x4a2502+'\x20OCR'};},async 'execute'(_0x5e319c){const _0x22a128=a134_0x2fc6c6,_0x36aec4=normalizeScene(_0x5e319c['str'](_0x22a128(0xc4))),_0x23eae7=SCENE_TO_LEGACY_TYPE[_0x36aec4],_0x30feae=validateInputSelection(_0x5e319c);if(_0x30feae[_0x22a128(0xc2)]){const _0x555708=await recognizeDevelopmentOcr(_0x5e319c['appCode'],{'url':_0x30feae[_0x22a128(0xc2)],'type':_0x23eae7});return{'ok':!![],'data':withScene(_0x555708,_0x36aec4)};}const _0x5bbae9=requireDevelopmentUploadFile(_0x30feae[_0x22a128(0x9c)],_0x22a128(0xaf)),_0x479a82=await uploadDevelopmentFile(_0x5e319c[_0x22a128(0xb2)],_0x5bbae9[_0x22a128(0xa2)]);if(!_0x479a82['filePath'])throw CliErrors['apiError'](_0x22a128(0xc6));const _0x4b3276=await queryDevelopmentFileUrl(_0x479a82['filePath'],{'download':![]});if(!_0x4b3276['fileUrl'])throw CliErrors[_0x22a128(0xbb)](_0x22a128(0xc0));const _0x5adbe8=await recognizeDevelopmentOcr(_0x5e319c[_0x22a128(0xb2)],{'url':_0x4b3276[_0x22a128(0xb1)],'type':_0x23eae7});return{'ok':!![],'data':withScene(_0x5adbe8,_0x36aec4,_0x479a82)};}};export const ocrDefinitions=[ocrRecognize];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a135_0x373dc6=a135_0x5303;(function(_0x4e3aea,_0x360cf7){const _0x28c518=a135_0x5303,_0x4aac2c=_0x4e3aea();while(!![]){try{const _0x4778f6=-parseInt(_0x28c518(0x152))/0x1+-parseInt(_0x28c518(0x144))/0x2*(-parseInt(_0x28c518(0x141))/0x3)+-parseInt(_0x28c518(0x140))/0x4+parseInt(_0x28c518(0x136))/0x5+-parseInt(_0x28c518(0x13f))/0x6+-parseInt(_0x28c518(0x12c))/0x7+-parseInt(_0x28c518(0x130))/0x8*(-parseInt(_0x28c518(0x14b))/0x9);if(_0x4778f6===_0x360cf7)break;else _0x4aac2c['push'](_0x4aac2c['shift']());}catch(_0x1e122c){_0x4aac2c['push'](_0x4aac2c['shift']());}}}(a135_0x31c2,0x2ba75));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a135_0x5303(_0x5a9792,_0x26831c){_0x5a9792=_0x5a9792-0x127;const _0x31c2dc=a135_0x31c2();let _0x5303a4=_0x31c2dc[_0x5a9792];return _0x5303a4;}function a135_0x31c2(){const _0x52b76d=['2vkbppA','message','code','/generate-standard-pages/start','compress','currentStep','dataset','18ltfzly','boolean','page','generate-start','write','manualResolutionRequired','fieldCount','44963hteHak','复用已有生成任务','number','apply','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','precheck','nextAction','516026yfhgkn','已提交生成任务','operationId','alias','1340992gbSMGD','dryRun','appCode','POST','progressRate','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','809710DiYQfo','string','status','allowGenerate','standardPageStatus','related-pages-fallback','source','clientOperationId','reused','1083144xoFCgp','898764RsTvVz','616533sLiAHj','bool','name'];a135_0x31c2=function(){return _0x52b76d;};return a135_0x31c2();}import{assessGenerateOperationState,assessStandardPageState,buildPageGenerateOperationStatusQueryCommand,buildStandardPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateStandardPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a135_0x373dc6(0x14d),'command':a135_0x373dc6(0x14e),'description':'Start\x20async\x20Smart\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a135_0x373dc6(0x14f),'defaultOutputFormat':a135_0x373dc6(0x148),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a135_0x373dc6(0x12f),'type':a135_0x373dc6(0x137),'description':a135_0x373dc6(0x135)},{'name':a135_0x373dc6(0x128),'type':a135_0x373dc6(0x14c),'description':a135_0x373dc6(0x129)}],async 'validate'(_0x460cdf){validateDatasetSelector(_0x460cdf);},async 'dryRun'(_0x5f160c){const _0xf8bfe6=a135_0x373dc6,_0x4b8d81=await prepare(_0x5f160c);return{'method':_0xf8bfe6(0x133),'url':'/smartapi/lovrabet/dataset/'+_0x4b8d81[_0xf8bfe6(0x14a)]['code']+_0xf8bfe6(0x147),'body':{'appCode':_0x5f160c[_0xf8bfe6(0x132)],'clientOperationId':_0x4b8d81[_0xf8bfe6(0x13d)]},'description':serializeDryRunDescription({'dataset':{'id':_0x4b8d81[_0xf8bfe6(0x14a)]['id'],'code':_0x4b8d81['dataset']['code'],'name':_0x4b8d81[_0xf8bfe6(0x14a)][_0xf8bfe6(0x143)],'fieldCount':_0x4b8d81['dataset'][_0xf8bfe6(0x151)]},'precheckSource':_0x4b8d81[_0xf8bfe6(0x13a)]?.[_0xf8bfe6(0x13c)]??'related-pages-fallback','action':'generate-start','clientOperationId':_0x4b8d81[_0xf8bfe6(0x13d)],'plannedStatus':_0x4b8d81['precheck'][_0xf8bfe6(0x138)],'reason':_0x4b8d81['precheck'][_0xf8bfe6(0x145)]})};},async 'execute'(_0x1ae8b0){const _0x41e07d=a135_0x373dc6;if(!_0x1ae8b0[_0x41e07d(0x142)](_0x41e07d(0x128))){const _0x363314=await pageGenerateStart[_0x41e07d(0x131)](_0x1ae8b0);return{'ok':!![],'message':'Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','data':_0x363314};}const _0x41a68e=await prepare(_0x1ae8b0);if(!_0x41a68e[_0x41e07d(0x12a)][_0x41e07d(0x139)])return{'ok':![],'message':_0x41a68e[_0x41e07d(0x12a)][_0x41e07d(0x145)],'data':{'datasetCode':_0x41a68e[_0x41e07d(0x14a)][_0x41e07d(0x146)],'clientOperationId':_0x41a68e['clientOperationId'],'precheckSource':_0x41a68e[_0x41e07d(0x13a)]?.[_0x41e07d(0x13c)]??_0x41e07d(0x13b),'status':_0x41a68e[_0x41e07d(0x12a)][_0x41e07d(0x138)],'manualResolutionRequired':_0x41a68e[_0x41e07d(0x12a)][_0x41e07d(0x150)],'nextAction':_0x41a68e[_0x41e07d(0x12a)][_0x41e07d(0x12b)],'query':{'command':buildStandardPageStatusQueryCommand(_0x41a68e[_0x41e07d(0x14a)][_0x41e07d(0x146)],_0x1ae8b0[_0x41e07d(0x132)])},'standardPageStatus':_0x41a68e[_0x41e07d(0x13a)]}};const _0x22244a=await startGenerateStandardPages(_0x1ae8b0[_0x41e07d(0x132)],_0x41a68e[_0x41e07d(0x14a)]['code'],{'clientOperationId':_0x41a68e['clientOperationId']}),_0x734638=_0x22244a['status']==='SUCCESS'||_0x22244a[_0x41e07d(0x138)]==='PARTIAL_SUCCESS'?await loadStandardPageStatusForGenerate(_0x1ae8b0,_0x41a68e[_0x41e07d(0x14a)][_0x41e07d(0x146)]):null,_0xb37380=assessGenerateOperationState(_0x41a68e[_0x41e07d(0x14a)][_0x41e07d(0x146)],_0x22244a['status'],_0x734638);return{'ok':!![],'message':_0x22244a[_0x41e07d(0x13e)]?_0x41e07d(0x153):_0x41e07d(0x12d),'data':{'datasetCode':_0x41a68e['dataset'][_0x41e07d(0x146)],'appCode':_0x1ae8b0['appCode'],'operationId':_0x22244a['operationId']??null,'clientOperationId':_0x41a68e[_0x41e07d(0x13d)],'jobStatus':_0x22244a[_0x41e07d(0x138)]??null,'progressRate':typeof _0x22244a[_0x41e07d(0x134)]===_0x41e07d(0x127)?_0x22244a[_0x41e07d(0x134)]:null,'currentStep':_0x22244a[_0x41e07d(0x149)]??null,'reused':_0x22244a[_0x41e07d(0x13e)]===!![],'status':_0xb37380[_0x41e07d(0x138)],'manualResolutionRequired':_0xb37380[_0x41e07d(0x150)],'nextAction':_0xb37380[_0x41e07d(0x12b)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x41a68e[_0x41e07d(0x14a)][_0x41e07d(0x146)],{'appCode':_0x1ae8b0[_0x41e07d(0x132)],'operationId':_0x22244a[_0x41e07d(0x12e)],'clientOperationId':_0x41a68e['clientOperationId']})},'standardPageStatus':_0x734638}};}};async function prepare(_0x34f231){const _0x1df12e=await loadDatasetDetailForPage(_0x34f231),_0x554f4f=await loadStandardPageStatusForGenerate(_0x34f231,_0x1df12e['code']),_0x575156=getUndeletedRelatedPages(_0x1df12e);return{'dataset':_0x1df12e,'standardPageStatus':_0x554f4f,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessStandardPageState(_0x1df12e['code'],_0x554f4f,{'fallbackUndeletedPages':_0x575156})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a136_0x1ef3ef=a136_0x5f1b;(function(_0x319d6d,_0x37d78){const _0x5bf799=a136_0x5f1b,_0x5f38d9=_0x319d6d();while(!![]){try{const _0x40a506=parseInt(_0x5bf799(0xab))/0x1+parseInt(_0x5bf799(0xa4))/0x2*(parseInt(_0x5bf799(0xa6))/0x3)+-parseInt(_0x5bf799(0x99))/0x4*(-parseInt(_0x5bf799(0x90))/0x5)+parseInt(_0x5bf799(0x95))/0x6+parseInt(_0x5bf799(0xae))/0x7*(-parseInt(_0x5bf799(0x96))/0x8)+-parseInt(_0x5bf799(0xa5))/0x9*(parseInt(_0x5bf799(0x9d))/0xa)+-parseInt(_0x5bf799(0x9b))/0xb;if(_0x40a506===_0x37d78)break;else _0x5f38d9['push'](_0x5f38d9['shift']());}catch(_0x5252cf){_0x5f38d9['push'](_0x5f38d9['shift']());}}}(a136_0x1bb9,0xaed88));function a136_0x5f1b(_0x5749c2,_0x469963){_0x5749c2=_0x5749c2-0x8e;const _0x1bb978=a136_0x1bb9();let _0x5f1be5=_0x1bb978[_0x5749c2];return _0x5f1be5;}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateStandardPagesStatus}from'../../core/api-client.js';function a136_0x1bb9(){const _0x99bd78=['14llhRyX','query-generate-operation-status','alias','page','1915GjsMFP','clientOperationId','number','errorMsg','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','7210584thQwiN','4676704dOEzFn','code','string','10588CZwXnJ','SUCCESS','21875216gttugD','operation-id','10690ekdkbA','appCode','str','status','operationId','generate-status','manualResolutionRequired','122KVOXjA','5517EJgLnx','49461odyuGq','client-operation-id','operation_failed','toString','/smartapi/lovrabet/dataset/','1308025qgWqHd','message','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'];a136_0x1bb9=function(){return _0x99bd78;};return a136_0x1bb9();}export const pageGenerateStatus={'service':a136_0x1ef3ef(0x8f),'command':a136_0x1ef3ef(0xa2),'description':'Query\x20Smart\x20List\x20Page\x20generate\x20operation\x20status','risk':'read','defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a136_0x1ef3ef(0x8e),'type':'string','description':a136_0x1ef3ef(0x94)},{'name':a136_0x1ef3ef(0x9c),'type':a136_0x1ef3ef(0x98),'description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':'client-operation-id','type':a136_0x1ef3ef(0x98),'description':a136_0x1ef3ef(0xad)}],async 'validate'(_0x2d0248){validateDatasetSelector(_0x2d0248),validateGenerateOperationSelector(_0x2d0248);},async 'dryRun'(_0x2c13ac){const _0x571d04=a136_0x1ef3ef,_0x3cdad6=await loadDatasetDetailForPage(_0x2c13ac),_0xe3f631=_0x2c13ac['str'](_0x571d04(0x9c)),_0x5f065d=_0x2c13ac[_0x571d04(0x9f)](_0x571d04(0xa7)),_0x3eaec0=new URLSearchParams({'appCode':_0x2c13ac['appCode']});return _0xe3f631&&_0x3eaec0['set'](_0x571d04(0xa1),_0xe3f631),_0x5f065d&&_0x3eaec0['set'](_0x571d04(0x91),_0x5f065d),{'method':'GET','url':_0x571d04(0xaa)+_0x3cdad6[_0x571d04(0x97)]+'/generate-standard-pages/status?'+_0x3eaec0[_0x571d04(0xa9)](),'description':serializeDryRunDescription({'dataset':{'id':_0x3cdad6['id'],'code':_0x3cdad6['code'],'name':_0x3cdad6['name']},'action':_0x571d04(0xaf),'operationId':_0xe3f631||undefined,'clientOperationId':_0x5f065d||undefined})};},async 'execute'(_0x37acbe){const _0x118ebd=a136_0x1ef3ef,_0x234345=await loadDatasetDetailForPage(_0x37acbe),_0x36982e=_0x37acbe['str'](_0x118ebd(0x9c)),_0x4f3146=_0x37acbe['str'](_0x118ebd(0xa7)),_0x59f2b1=await getGenerateStandardPagesStatus(_0x37acbe[_0x118ebd(0x9e)],_0x234345[_0x118ebd(0x97)],{'operationId':_0x36982e||undefined,'clientOperationId':_0x4f3146||undefined}),_0x2a4eb2=_0x59f2b1[_0x118ebd(0xa0)]===_0x118ebd(0x9a)||_0x59f2b1[_0x118ebd(0xa0)]==='PARTIAL_SUCCESS',_0x54ec14=_0x2a4eb2?await loadStandardPageStatusForGenerate(_0x37acbe,_0x234345[_0x118ebd(0x97)]):null,_0x1d339c=assessGenerateOperationState(_0x234345['code'],_0x59f2b1[_0x118ebd(0xa0)],_0x54ec14),_0x1e2bc6=_0x59f2b1[_0x118ebd(0xa1)]??_0x36982e??undefined,_0x3cd5f3=_0x59f2b1[_0x118ebd(0x91)]??_0x4f3146??undefined;return{'ok':!![],'message':_0x1d339c[_0x118ebd(0xa0)]===_0x118ebd(0xa8)?_0x59f2b1[_0x118ebd(0x93)]||_0x1d339c[_0x118ebd(0xac)]:_0x1d339c[_0x118ebd(0xac)],'data':{'datasetCode':_0x234345[_0x118ebd(0x97)],'appCode':_0x37acbe[_0x118ebd(0x9e)],'operationId':_0x1e2bc6,'clientOperationId':_0x3cd5f3,'jobStatus':_0x59f2b1[_0x118ebd(0xa0)]??null,'progressRate':typeof _0x59f2b1['progressRate']===_0x118ebd(0x92)?_0x59f2b1['progressRate']:null,'currentStep':_0x59f2b1['currentStep']??null,'errorMsg':_0x59f2b1[_0x118ebd(0x93)]??null,'status':_0x1d339c[_0x118ebd(0xa0)],'manualResolutionRequired':_0x1d339c[_0x118ebd(0xa3)],'nextAction':_0x1d339c['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x234345[_0x118ebd(0x97)],{'appCode':_0x37acbe[_0x118ebd(0x9e)],'operationId':_0x1e2bc6,'clientOperationId':_0x3cd5f3})},'standardPageStatus':_0x54ec14,'result':_0x59f2b1['result']??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x136367,_0x222084){const _0x3d526f=a137_0x1303,_0xf65acb=_0x136367();while(!![]){try{const _0x4f7bc2=-parseInt(_0x3d526f(0x1e0))/0x1+parseInt(_0x3d526f(0x1db))/0x2+parseInt(_0x3d526f(0x1dd))/0x3+-parseInt(_0x3d526f(0x1dc))/0x4*(-parseInt(_0x3d526f(0x1df))/0x5)+-parseInt(_0x3d526f(0x1e3))/0x6*(-parseInt(_0x3d526f(0x1e2))/0x7)+-parseInt(_0x3d526f(0x1da))/0x8+parseInt(_0x3d526f(0x1e1))/0x9*(-parseInt(_0x3d526f(0x1de))/0xa);if(_0x4f7bc2===_0x222084)break;else _0xf65acb['push'](_0xf65acb['shift']());}catch(_0x168070){_0xf65acb['push'](_0xf65acb['shift']());}}}(a137_0x4773,0xd9101));function a137_0x4773(){const _0x4cce8e=['72EuZEzf','10917088EPxTFD','3012190DSBgXz','306188fIiqPu','5058315UWEkfC','2640duNoIy','85NtZPML','387874NltUah','113814aOnqKA','867209nkALON'];a137_0x4773=function(){return _0x4cce8e;};return a137_0x4773();}import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageStandardPageStatus}from'../../commands/page/standard-page-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';function a137_0x1303(_0x1cd8e1,_0x4c976f){_0x1cd8e1=_0x1cd8e1-0x1da;const _0x477319=a137_0x4773();let _0x13037e=_0x477319[_0x1cd8e1];return _0x13037e;}import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageStandardPageStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a138_0x463b4b=a138_0x62fb;function a138_0x62fb(_0x536519,_0x58afc7){_0x536519=_0x536519-0x18f;const _0x38892f=a138_0x3889();let _0x62fb6d=_0x38892f[_0x536519];return _0x62fb6d;}(function(_0x2d7a68,_0x62e6d9){const _0x2cc01b=a138_0x62fb,_0x26dae2=_0x2d7a68();while(!![]){try{const _0xfa1331=parseInt(_0x2cc01b(0x19b))/0x1*(-parseInt(_0x2cc01b(0x195))/0x2)+-parseInt(_0x2cc01b(0x1a3))/0x3*(-parseInt(_0x2cc01b(0x1b4))/0x4)+parseInt(_0x2cc01b(0x1b9))/0x5+-parseInt(_0x2cc01b(0x1be))/0x6*(parseInt(_0x2cc01b(0x1b1))/0x7)+-parseInt(_0x2cc01b(0x1c6))/0x8*(-parseInt(_0x2cc01b(0x1b3))/0x9)+-parseInt(_0x2cc01b(0x1a5))/0xa+parseInt(_0x2cc01b(0x1aa))/0xb;if(_0xfa1331===_0x62e6d9)break;else _0x26dae2['push'](_0x26dae2['shift']());}catch(_0x1afac0){_0x26dae2['push'](_0x26dae2['shift']());}}}(a138_0x3889,0xd627a));import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':'pull','description':a138_0x463b4b(0x1c4),'risk':a138_0x463b4b(0x1ca),'defaultOutputFormat':a138_0x463b4b(0x1c5),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':a138_0x463b4b(0x190)},DATASETCODE_FLAG_OPTIONAL,{'name':a138_0x463b4b(0x1c9),'type':a138_0x463b4b(0x18f),'description':a138_0x463b4b(0x1ac)},{'name':a138_0x463b4b(0x1c3),'type':'string','description':'Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)'},{'name':a138_0x463b4b(0x19f),'type':'boolean','description':'Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist'}],async 'validate'(_0x4845cb){validatePageTargetSelector(_0x4845cb);},async 'dryRun'(_0x21237e){const _0x39ddca=a138_0x463b4b,_0x4e78c9=await buildPullPlan(_0x21237e);return{'method':_0x39ddca(0x1a7),'url':_0x4e78c9[_0x39ddca(0x1ad)]==='single'?_0x39ddca(0x1ba)+(_0x4e78c9[_0x39ddca(0x1c8)][0x0]?.['detail'][_0x39ddca(0x19d)]??''):_0x39ddca(0x19c),'body':{'appCode':_0x21237e[_0x39ddca(0x1bb)],'mode':_0x4e78c9['mode'],'targetDatasetCode':_0x4e78c9[_0x39ddca(0x1a8)]??null,'pages':_0x4e78c9[_0x39ddca(0x1c8)][_0x39ddca(0x193)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x4e78c9[_0x39ddca(0x1ad)],'datasetCode':_0x4e78c9[_0x39ddca(0x1a8)]??null,'totalCandidates':_0x4e78c9[_0x39ddca(0x1c8)][_0x39ddca(0x192)],'totalWouldPull':_0x4e78c9[_0x39ddca(0x1c8)]['filter'](_0x516e02=>_0x516e02[_0x39ddca(0x1bd)]==='would_pull')[_0x39ddca(0x192)],'totalConflicts':_0x4e78c9['items'][_0x39ddca(0x1a0)](_0x481cda=>_0x481cda[_0x39ddca(0x1bd)]==='conflict')[_0x39ddca(0x192)]})};},async 'execute'(_0x23c3d6){const _0x20c867=a138_0x463b4b,_0x9d4733=loadPageProjectConfig(_0x23c3d6[_0x20c867(0x1bb)]),_0x13a5ae=await readPageLockFile(_0x9d4733[_0x20c867(0x1b0)]),{lockData:_0x26d4a0,appLock:_0x2c56a9}=ensurePageLockScope(_0x13a5ae??createEmptyPageLock(),_0x23c3d6[_0x20c867(0x1bb)]),_0x535bc8=await buildPullPlan(_0x23c3d6),_0x5ea659=_0x23c3d6[_0x20c867(0x1ae)](_0x20c867(0x19f));if(_0x535bc8[_0x20c867(0x1ad)]===_0x20c867(0x1bf)&&_0x535bc8[_0x20c867(0x1c8)][0x0]?.['status']==='conflict'&&!_0x5ea659)throw CliErrors[_0x20c867(0x1bc)](_0x20c867(0x1b2)+_0x535bc8[_0x20c867(0x1c8)][0x0]['localPath'],_0x20c867(0x198));const _0x17bcd2=[],_0x128a3f=[];for(const _0x4d3536 of _0x535bc8[_0x20c867(0x1c8)]){if(_0x4d3536[_0x20c867(0x1bd)]===_0x20c867(0x1af)&&!_0x5ea659){_0x128a3f[_0x20c867(0x1a6)]({'pageId':_0x4d3536[_0x20c867(0x1b5)][_0x20c867(0x19d)],'type':_0x4d3536[_0x20c867(0x1b5)][_0x20c867(0x19e)],'title':_0x4d3536[_0x20c867(0x1b5)][_0x20c867(0x199)],'localPath':_0x4d3536[_0x20c867(0x1b8)],'reason':_0x4d3536[_0x20c867(0x197)]??'local\x20unsynced\x20changes'});continue;}await ensureParentDirectory(_0x4d3536[_0x20c867(0x1b8)]);const _0x2e5732=serializePageSchemaForFile(_0x4d3536[_0x20c867(0x1b5)][_0x20c867(0x1c1)]);await writeFile(_0x4d3536[_0x20c867(0x1b8)],_0x2e5732,'utf8'),_0x2c56a9[_0x20c867(0x1a2)][String(_0x4d3536['detail'][_0x20c867(0x19d)])]=buildLockEntry(_0x4d3536[_0x20c867(0x1b5)],_0x2e5732),_0x17bcd2[_0x20c867(0x1a6)]({'pageId':_0x4d3536['detail']['pageId'],'type':_0x4d3536['detail'][_0x20c867(0x19e)],'title':_0x4d3536['detail']['name'],'localPath':_0x4d3536[_0x20c867(0x1b8)]});}return _0x2c56a9[_0x20c867(0x1ab)]=new Date()[_0x20c867(0x1c0)](),await writePageLockFile(_0x9d4733['lockFilePath'],_0x26d4a0),{'ok':!![],'message':'拉取完成:\x20'+_0x17bcd2[_0x20c867(0x192)]+_0x20c867(0x196)+_0x128a3f[_0x20c867(0x192)]+'\x20skipped','data':{'appCode':_0x23c3d6[_0x20c867(0x1bb)],'pulledPages':_0x17bcd2,'skippedPages':_0x128a3f,'totalPulled':_0x17bcd2[_0x20c867(0x192)],'totalSkipped':_0x128a3f[_0x20c867(0x192)]}};}};async function buildPullPlan(_0x492ef5){const _0x47b7c9=a138_0x463b4b,_0x12c598=loadPageProjectConfig(_0x492ef5[_0x47b7c9(0x1bb)]),_0x3c5d3a=await readPageLockFile(_0x12c598[_0x47b7c9(0x1b0)]),{appLock:_0x33f830}=ensurePageLockScope(_0x3c5d3a??createEmptyPageLock(),_0x492ef5[_0x47b7c9(0x1bb)]),_0x37bccc=getPageIdFlag(_0x492ef5);if(_0x37bccc!==undefined){const _0x46f89d=await loadPageDetailForPage(_0x492ef5,_0x37bccc);return{'mode':_0x47b7c9(0x1bf),'items':[await inspectPullTarget(_0x12c598,_0x33f830[_0x47b7c9(0x1a2)][String(_0x46f89d[_0x47b7c9(0x19d)])],_0x46f89d)]};}const _0x1a48b7=await loadDatasetDetailForPage(_0x492ef5),_0x20a5e9=_0x1a48b7[_0x47b7c9(0x194)][_0x47b7c9(0x1a0)](_0x27370d=>!_0x27370d['deleted']);if(_0x20a5e9[_0x47b7c9(0x192)]===0x0)throw CliErrors['validation']('Dataset\x20\x22'+_0x1a48b7[_0x47b7c9(0x1c1)]+_0x47b7c9(0x1a1));const _0x4e911b=await Promise[_0x47b7c9(0x19a)](_0x20a5e9[_0x47b7c9(0x193)](_0x11fcde=>loadPageDetailForPage(_0x492ef5,_0x11fcde['id']))),_0x44c78d=selectVersionTagGroup(_0x4e911b,_0x21d0ef=>_0x21d0ef['versionTag'],_0x492ef5['str'](_0x47b7c9(0x1c3)));return{'mode':_0x47b7c9(0x1c7),'datasetCode':_0x1a48b7[_0x47b7c9(0x1c1)],'items':await Promise[_0x47b7c9(0x19a)](_0x44c78d[_0x47b7c9(0x1c8)][_0x47b7c9(0x193)](_0x11d38d=>inspectPullTarget(_0x12c598,_0x33f830[_0x47b7c9(0x1a2)][String(_0x11d38d[_0x47b7c9(0x19d)])],_0x11d38d)))};}function a138_0x3889(){const _0x30edf3=['local\x20unsynced\x20changes','25510518skYBKh','lastSync','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','mode','bool','conflict','lockFilePath','6055539SCcPUj','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','2763VIOWFy','95660Ahsehl','detail','datasetIds','would_pull','localPath','3388855LNAUZz','/smartapi/lovrabet/detail?pageId=','appCode','validation','status','6ekEvSy','single','toISOString','code','versionTag','version-tag','Pull\x20page\x20schema\x20to\x20local\x20files','compress','24576KrBOVP','batch','items','alias','read','string','Page\x20ID','pageVersion','length','map','relatedPages','2xmgDct','\x20pulled,\x20','reason','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','name','all','1328867faYjFK','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','pageId','type','force','filter','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','pages','84NqSSJO','hash','15385110TIaLlc','push','GET','datasetCode'];a138_0x3889=function(){return _0x30edf3;};return a138_0x3889();}async function inspectPullTarget(_0x49afb2,_0x4f4d66,_0x128c10){const _0x58d1e1=a138_0x463b4b,_0x24c9cd=resolvePageFilePath(_0x49afb2,_0x128c10[_0x58d1e1(0x19d)],_0x128c10[_0x58d1e1(0x19e)]),_0x382388=await fileExists(_0x24c9cd);if(!_0x382388){const _0x311740=serializePageSchemaForFile(_0x128c10[_0x58d1e1(0x1c1)]);return{'detail':_0x128c10,'localPath':_0x24c9cd,'localHash':computePageContentHash(_0x311740),'status':_0x58d1e1(0x1b7)};}const _0x27f6e9=await computePageFileHash(_0x24c9cd);if(!_0x4f4d66||_0x27f6e9!==_0x4f4d66[_0x58d1e1(0x1a4)])return{'detail':_0x128c10,'localPath':_0x24c9cd,'localHash':_0x27f6e9,'status':_0x58d1e1(0x1af),'reason':_0x58d1e1(0x1a9)};return{'detail':_0x128c10,'localPath':_0x24c9cd,'localHash':_0x27f6e9,'status':_0x58d1e1(0x1b7)};}function buildLockEntry(_0x500bcd,_0x1eba76){const _0x29c261=a138_0x463b4b;return{'hash':computePageContentHash(_0x1eba76),'pageId':_0x500bcd[_0x29c261(0x19d)],'pageVersion':_0x500bcd[_0x29c261(0x191)],'type':_0x500bcd['type'],'title':_0x500bcd['name'],'datasetIds':_0x500bcd[_0x29c261(0x1b6)],'versionTag':_0x500bcd[_0x29c261(0x1c2)]};}function toPreviewItem(_0x1e0504){const _0x326f2f=a138_0x463b4b;return{'pageId':_0x1e0504[_0x326f2f(0x1b5)]['pageId'],'type':_0x1e0504[_0x326f2f(0x1b5)][_0x326f2f(0x19e)],'title':_0x1e0504[_0x326f2f(0x1b5)]['name'],'localPath':_0x1e0504[_0x326f2f(0x1b8)],'status':_0x1e0504[_0x326f2f(0x1bd)],..._0x1e0504[_0x326f2f(0x197)]?{'reason':_0x1e0504[_0x326f2f(0x197)]}:{}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a139_0x4c4699=a139_0x1321;(function(_0x1b3347,_0x433427){const _0x26811f=a139_0x1321,_0x3e806b=_0x1b3347();while(!![]){try{const _0x11a1b6=parseInt(_0x26811f(0xc3))/0x1*(parseInt(_0x26811f(0xa5))/0x2)+parseInt(_0x26811f(0xcd))/0x3+parseInt(_0x26811f(0xd9))/0x4+-parseInt(_0x26811f(0xd2))/0x5+parseInt(_0x26811f(0x94))/0x6+parseInt(_0x26811f(0x91))/0x7*(parseInt(_0x26811f(0xd1))/0x8)+parseInt(_0x26811f(0xc2))/0x9*(-parseInt(_0x26811f(0xb0))/0xa);if(_0x11a1b6===_0x433427)break;else _0x3e806b['push'](_0x3e806b['shift']());}catch(_0x3341e6){_0x3e806b['push'](_0x3e806b['shift']());}}}(a139_0x2096,0xd6a17));import{readFile,writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{updatePage}from'../../core/api-client.js';import{computePageContentHash,computePageFileHash,computeSerializedSchemaHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';function a139_0x1321(_0x129f7f,_0x3eb8e7){_0x129f7f=_0x129f7f-0x8c;const _0x20968b=a139_0x2096();let _0x1321ed=_0x20968b[_0x129f7f];return _0x1321ed;}export const pagePush={'service':'page','command':a139_0x4c4699(0x95),'description':'Push\x20local\x20page\x20schema\x20back\x20to\x20remote','risk':a139_0x4c4699(0x97),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a139_0x4c4699(0xca),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a139_0x4c4699(0x92),'type':a139_0x4c4699(0xbc),'description':a139_0x4c4699(0xa0)},{'name':'version-tag','type':a139_0x4c4699(0xbc),'description':a139_0x4c4699(0x96)}],async 'validate'(_0xf17c83){validatePageTargetSelector(_0xf17c83);},async 'dryRun'(_0x1bbac2){const _0x3a33ba=a139_0x4c4699,_0x477293=await buildPushPreview(_0x1bbac2);return{'method':_0x3a33ba(0xb3),'url':'/smartapi/lovrabet/update-page','body':{'appCode':_0x1bbac2[_0x3a33ba(0xab)],'mode':_0x477293[_0x3a33ba(0xc8)],'datasetCode':_0x477293[_0x3a33ba(0x9e)]??null,'pages':_0x477293[_0x3a33ba(0x8c)]},'description':serializeDryRunDescription({'mode':_0x477293[_0x3a33ba(0xc8)],'datasetCode':_0x477293[_0x3a33ba(0x9e)]??null,'totalWouldPush':_0x477293[_0x3a33ba(0x8c)][_0x3a33ba(0xdb)](_0x3122a8=>_0x3122a8[_0x3a33ba(0xae)]===_0x3a33ba(0xbd))['length'],'totalUnchanged':_0x477293['items'][_0x3a33ba(0xdb)](_0x345489=>_0x345489['status']===_0x3a33ba(0x9c))[_0x3a33ba(0xd0)],'totalConflicts':_0x477293[_0x3a33ba(0x8c)]['filter'](_0x3f605a=>_0x3f605a[_0x3a33ba(0xae)]==='conflict'||_0x3f605a[_0x3a33ba(0xae)]===_0x3a33ba(0x93))['length']})};},async 'execute'(_0x254ac0){const _0x3054e0=a139_0x4c4699,_0x46b3a1=loadPageProjectConfig(_0x254ac0[_0x3054e0(0xab)]),_0x4b382c=await readPageLockFile(_0x46b3a1[_0x3054e0(0xa7)]),{lockData:_0x4f6fd1,appLock:_0x5447bd}=ensurePageLockScope(_0x4b382c??createEmptyPageLock(),_0x254ac0[_0x3054e0(0xab)]),_0xb1635d=getPageIdFlag(_0x254ac0);if(_0xb1635d!==undefined){const _0xce9712=await prepareSinglePush(_0x254ac0,_0x46b3a1,_0x5447bd[_0x3054e0(0xb5)][String(_0xb1635d)],_0xb1635d),_0x2adc87=await pushPreparedPage(_0x254ac0,_0xce9712);return _0x5447bd[_0x3054e0(0xb5)][String(_0x2adc87['pageId'])]=_0x2adc87[_0x3054e0(0xa3)],_0x5447bd[_0x3054e0(0xc5)]=new Date()[_0x3054e0(0xc6)](),await writePageLockFile(_0x46b3a1[_0x3054e0(0xa7)],_0x4f6fd1),{'ok':!![],'message':_0x2adc87[_0x3054e0(0xce)]?'推送成功,服务端已规范化\x20schema':_0x3054e0(0xa9),'data':{'appCode':_0x254ac0[_0x3054e0(0xab)],'pushedPages':[{'pageId':_0x2adc87[_0x3054e0(0xdf)],'type':_0x2adc87['type'],'title':_0x2adc87[_0x3054e0(0xa6)],'normalized':_0x2adc87[_0x3054e0(0xce)]}],'skippedPages':[],'failedPages':[],'totalPushed':0x1,'totalSkipped':0x0,'totalFailed':0x0}};}const _0x344113=await buildBatchPushPlan(_0x254ac0,_0x5447bd['pages']),_0x2db771=[],_0xabf1db=[],_0x210e04=[];for(const _0x16bafc of _0x344113[_0x3054e0(0x9c)]){_0xabf1db[_0x3054e0(0x95)](_0x16bafc);}for(const _0x9c5ef7 of _0x344113[_0x3054e0(0x9b)]){try{const _0x2e226f=await prepareSinglePush(_0x254ac0,_0x46b3a1,_0x5447bd[_0x3054e0(0xb5)][String(_0x9c5ef7[_0x3054e0(0xdf)])],_0x9c5ef7[_0x3054e0(0xdf)],_0x344113[_0x3054e0(0x99)]),_0xbaf6b0=await pushPreparedPage(_0x254ac0,_0x2e226f);_0x5447bd['pages'][String(_0xbaf6b0[_0x3054e0(0xdf)])]=_0xbaf6b0[_0x3054e0(0xa3)],_0x2db771[_0x3054e0(0x95)]({'pageId':_0xbaf6b0['pageId'],'type':_0xbaf6b0[_0x3054e0(0xa8)],'title':_0xbaf6b0[_0x3054e0(0xa6)],'normalized':_0xbaf6b0['normalized']});}catch(_0x459123){_0x210e04['push']({'pageId':_0x9c5ef7[_0x3054e0(0xdf)],'type':_0x9c5ef7['type'],'title':_0x9c5ef7[_0x3054e0(0xa6)],'reason':_0x459123 instanceof Error?_0x459123[_0x3054e0(0xc1)]:String(_0x459123)});}}return _0x5447bd[_0x3054e0(0xc5)]=new Date()[_0x3054e0(0xc6)](),await writePageLockFile(_0x46b3a1[_0x3054e0(0xa7)],_0x4f6fd1),{'ok':_0x210e04[_0x3054e0(0xd0)]===0x0||_0x2db771['length']>0x0||_0xabf1db['length']>0x0,'message':_0x210e04[_0x3054e0(0xd0)]>0x0&&_0x2db771[_0x3054e0(0xd0)]>0x0?_0x3054e0(0xda):_0x2db771[_0x3054e0(0xd0)]>0x0?'推送成功':_0xabf1db['length']>0x0&&_0x210e04[_0x3054e0(0xd0)]===0x0?_0x3054e0(0xc4):_0x210e04[0x0]?.[_0x3054e0(0xb6)]||_0x3054e0(0xa2),'data':{'appCode':_0x254ac0[_0x3054e0(0xab)],'pushedPages':_0x2db771,'skippedPages':_0xabf1db,'failedPages':_0x210e04,'totalPushed':_0x2db771[_0x3054e0(0xd0)],'totalSkipped':_0xabf1db[_0x3054e0(0xd0)],'totalFailed':_0x210e04[_0x3054e0(0xd0)]}};}};function a139_0x2096(){const _0x9399bf=['normalized','remoteDetail','length','7112ImhYnW','7349350xApVWE','remote\x20pageVersion\x20changed','utf8','UNKNOWN','deleted','\x20no\x20longer\x20belongs\x20to\x20the\x20selected\x20dataset.','`\x20first.','6283504GEKxuL','部分页面推送失败','filter','validation','single','version-tag','pageId','code','items','\x20page\x20pull\x20--id\x20','No\x20lock\x20record\x20found\x20for\x20page\x20','map','relatedPages','13783CkiRhc','alias','blocked','2148456MZnfVw','push','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','write','hash','datasetId','localContent','candidates','unchanged','Page\x20','datasetCode','localPath','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','batch','推送失败','nextLockEntry','str','2dBcmQr','title','lockFilePath','type','推送成功','no\x20changes','appCode','includes','values','status','pageVersion','10PgMEJu','\x20page\x20pull\x20--datasetcode\x20','parse','POST','apiError','pages','reason','`\x20first','versionTag','name','page-','datasetIds','string','would_push','Invalid\x20JSON\x20in\x20local\x20page\x20file:\x20','Remote\x20page\x20','all','message','23853411FmtIla','778669BgnaGu','无变更需要推送','lastSync','toISOString','has','mode','conflict','number','No\x20local\x20pages\x20found\x20for\x20dataset\x20\x22','Run\x20`','1623942gdakIX'];a139_0x2096=function(){return _0x9399bf;};return a139_0x2096();}async function buildPushPreview(_0x330553){const _0x4f4467=a139_0x4c4699,_0x179cf1=loadPageProjectConfig(_0x330553['appCode']),_0x4b2a16=await readPageLockFile(_0x179cf1[_0x4f4467(0xa7)]),{appLock:_0x2db706}=ensurePageLockScope(_0x4b2a16??createEmptyPageLock(),_0x330553['appCode']),_0x2accfb=getPageIdFlag(_0x330553);if(_0x2accfb!==undefined)return{'mode':_0x4f4467(0xdd),'items':[await inspectPushPage(_0x330553,_0x179cf1,_0x2db706[_0x4f4467(0xb5)][String(_0x2accfb)],_0x2accfb)]};const _0x879a72=await buildBatchPushPlan(_0x330553,_0x2db706['pages']);return{'mode':_0x4f4467(0xa1),'datasetCode':_0x879a72['datasetCode'],'items':[..._0x879a72['unchanged'][_0x4f4467(0x8f)](_0x5e63ce=>({'pageId':_0x5e63ce[_0x4f4467(0xdf)],'type':_0x5e63ce[_0x4f4467(0xa8)],'title':_0x5e63ce[_0x4f4467(0xa6)],'localPath':_0x5e63ce[_0x4f4467(0x9f)],'status':_0x4f4467(0x9c),'reason':_0x5e63ce[_0x4f4467(0xb6)]})),...await Promise[_0x4f4467(0xc0)](_0x879a72[_0x4f4467(0x9b)]['map'](_0x58eeec=>inspectPushPage(_0x330553,_0x179cf1,_0x2db706[_0x4f4467(0xb5)][String(_0x58eeec[_0x4f4467(0xdf)])],_0x58eeec[_0x4f4467(0xdf)],_0x879a72[_0x4f4467(0x99)])))]};}async function buildBatchPushPlan(_0x4221fe,_0x1acb56){const _0x481f93=a139_0x4c4699,_0x5a1acb=loadPageProjectConfig(_0x4221fe[_0x481f93(0xab)]),_0xeff904=await loadDatasetDetailForPage(_0x4221fe),_0x33e911=_0xeff904['id'],_0xee59b2=new Set(_0xeff904[_0x481f93(0x90)][_0x481f93(0xdb)](_0x33e040=>!_0x33e040[_0x481f93(0xd6)])['map'](_0x2d24e3=>_0x2d24e3['id'])),_0x582676=Object[_0x481f93(0xad)](_0x1acb56)[_0x481f93(0xdb)](_0x37914c=>_0x37914c[_0x481f93(0xbb)]['includes'](_0x33e911)&&_0xee59b2[_0x481f93(0xc7)](_0x37914c[_0x481f93(0xdf)]));if(_0x582676['length']===0x0)throw CliErrors[_0x481f93(0xdc)](_0x481f93(0xcb)+_0xeff904[_0x481f93(0xe0)]+'\x22.',_0x481f93(0xcc)+CLI_BIN_NAME+_0x481f93(0xb1)+_0xeff904['code']+_0x481f93(0xd8));const _0x33c439=selectVersionTagGroup(_0x582676,_0x5347fb=>_0x5347fb['versionTag']??null,_0x4221fe[_0x481f93(0xa4)](_0x481f93(0xde))),_0x15d557=[],_0x1ea49b=[];for(const _0x90c94f of _0x33c439[_0x481f93(0x8c)]){const _0x3d9889=resolvePageFilePath(_0x5a1acb,_0x90c94f[_0x481f93(0xdf)],_0x90c94f['type']);if(!await fileExists(_0x3d9889)){_0x15d557[_0x481f93(0x95)]({'pageId':_0x90c94f['pageId'],'type':_0x90c94f['type'],'title':_0x90c94f[_0x481f93(0xa6)]});continue;}const _0x1835a0=await computePageFileHash(_0x3d9889);if(_0x1835a0===_0x90c94f[_0x481f93(0x98)]){_0x1ea49b[_0x481f93(0x95)]({'pageId':_0x90c94f[_0x481f93(0xdf)],'type':_0x90c94f[_0x481f93(0xa8)],'title':_0x90c94f[_0x481f93(0xa6)],'localPath':_0x3d9889,'reason':_0x481f93(0xaa)});continue;}_0x15d557['push']({'pageId':_0x90c94f['pageId'],'type':_0x90c94f[_0x481f93(0xa8)],'title':_0x90c94f[_0x481f93(0xa6)]});}return{'datasetCode':_0xeff904['code'],'datasetId':_0x33e911,'candidates':_0x15d557,'unchanged':_0x1ea49b};}async function inspectPushPage(_0x1fa1e1,_0x29f728,_0x8a2ce,_0x4de28e,_0x581a96){const _0x5cefc5=a139_0x4c4699;if(!_0x8a2ce)return{'pageId':_0x4de28e,'type':_0x5cefc5(0xd5),'title':_0x5cefc5(0xba)+_0x4de28e,'localPath':resolvePageFilePath(_0x29f728,_0x4de28e,_0x5cefc5(0xd5)),'status':_0x5cefc5(0x93),'reason':_0x5cefc5(0xcc)+CLI_BIN_NAME+_0x5cefc5(0x8d)+_0x4de28e+_0x5cefc5(0xb7)};const _0x37a9a5=resolvePageFilePath(_0x29f728,_0x4de28e,_0x8a2ce[_0x5cefc5(0xa8)]);if(!await fileExists(_0x37a9a5))return{'pageId':_0x4de28e,'type':_0x8a2ce[_0x5cefc5(0xa8)],'title':_0x8a2ce['title'],'localPath':_0x37a9a5,'status':_0x5cefc5(0x93),'reason':'Local\x20file\x20not\x20found:\x20'+_0x37a9a5};const _0x18c0b7=await readFile(_0x37a9a5,'utf8');try{JSON[_0x5cefc5(0xb2)](_0x18c0b7);}catch{return{'pageId':_0x4de28e,'type':_0x8a2ce[_0x5cefc5(0xa8)],'title':_0x8a2ce[_0x5cefc5(0xa6)],'localPath':_0x37a9a5,'status':_0x5cefc5(0x93),'reason':'local\x20JSON\x20is\x20invalid'};}const _0x9cc253=computePageContentHash(_0x18c0b7);if(_0x9cc253===_0x8a2ce[_0x5cefc5(0x98)])return{'pageId':_0x4de28e,'type':_0x8a2ce[_0x5cefc5(0xa8)],'title':_0x8a2ce[_0x5cefc5(0xa6)],'localPath':_0x37a9a5,'status':_0x5cefc5(0x9c),'reason':_0x5cefc5(0xaa)};try{const _0x3a469d=await loadPageDetailForPage(_0x1fa1e1,_0x4de28e);if(_0x581a96!=null&&!_0x3a469d[_0x5cefc5(0xbb)][_0x5cefc5(0xac)](_0x581a96))return{'pageId':_0x4de28e,'type':_0x8a2ce[_0x5cefc5(0xa8)],'title':_0x8a2ce['title'],'localPath':_0x37a9a5,'status':_0x5cefc5(0xc9),'reason':_0x5cefc5(0x9d)+_0x4de28e+'\x20no\x20longer\x20belongs\x20to\x20the\x20target\x20dataset'};const _0xc10bb0=_0x8a2ce[_0x5cefc5(0xaf)]!=null&&_0x3a469d[_0x5cefc5(0xaf)]!=null;if(_0xc10bb0&&_0x8a2ce[_0x5cefc5(0xaf)]!==_0x3a469d[_0x5cefc5(0xaf)])return{'pageId':_0x4de28e,'type':_0x8a2ce[_0x5cefc5(0xa8)],'title':_0x8a2ce['title'],'localPath':_0x37a9a5,'status':'conflict','reason':_0x5cefc5(0xd3)};if(!_0xc10bb0&&computeSerializedSchemaHash(_0x3a469d['code'])!==_0x8a2ce['hash'])return{'pageId':_0x4de28e,'type':_0x8a2ce[_0x5cefc5(0xa8)],'title':_0x8a2ce['title'],'localPath':_0x37a9a5,'status':_0x5cefc5(0xc9),'reason':'remote\x20schema\x20changed'};}catch(_0xb983b0){return{'pageId':_0x4de28e,'type':_0x8a2ce[_0x5cefc5(0xa8)],'title':_0x8a2ce[_0x5cefc5(0xa6)],'localPath':_0x37a9a5,'status':_0x5cefc5(0x93),'reason':_0xb983b0 instanceof Error?_0xb983b0[_0x5cefc5(0xc1)]:String(_0xb983b0)};}return{'pageId':_0x4de28e,'type':_0x8a2ce[_0x5cefc5(0xa8)],'title':_0x8a2ce['title'],'localPath':_0x37a9a5,'status':_0x5cefc5(0xbd)};}async function prepareSinglePush(_0x58cb94,_0x182ec7,_0x38a5d7,_0x156ff8,_0xa435be){const _0x5d90af=a139_0x4c4699;if(!_0x38a5d7)throw CliErrors['validation'](_0x5d90af(0x8e)+_0x156ff8+'.',_0x5d90af(0xcc)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x156ff8+_0x5d90af(0xd8));const _0x903e38=resolvePageFilePath(_0x182ec7,_0x156ff8,_0x38a5d7[_0x5d90af(0xa8)]);if(!await fileExists(_0x903e38))throw CliErrors[_0x5d90af(0xdc)]('Local\x20file\x20not\x20found:\x20'+_0x903e38,'Run\x20`'+CLI_BIN_NAME+_0x5d90af(0x8d)+_0x156ff8+_0x5d90af(0xd8));const _0x4cab30=await readFile(_0x903e38,_0x5d90af(0xd4));try{JSON[_0x5d90af(0xb2)](_0x4cab30);}catch{throw CliErrors[_0x5d90af(0xdc)](_0x5d90af(0xbe)+_0x903e38);}const _0x3b9042=await loadPageDetailForPage(_0x58cb94,_0x156ff8);if(_0xa435be!=null&&!_0x3b9042['datasetIds'][_0x5d90af(0xac)](_0xa435be))throw CliErrors[_0x5d90af(0xdc)](_0x5d90af(0x9d)+_0x156ff8+_0x5d90af(0xd7));const _0x54f2d9=_0x38a5d7[_0x5d90af(0xaf)]!=null&&_0x3b9042['pageVersion']!=null;if(_0x54f2d9){if(_0x38a5d7[_0x5d90af(0xaf)]!==_0x3b9042[_0x5d90af(0xaf)])throw CliErrors[_0x5d90af(0xdc)](_0x5d90af(0xbf)+_0x156ff8+'\x20has\x20changed\x20since\x20last\x20pull.',_0x5d90af(0xcc)+CLI_BIN_NAME+_0x5d90af(0x8d)+_0x156ff8+_0x5d90af(0xd8));}else{const _0x1d54bd=computeSerializedSchemaHash(_0x3b9042['code']);if(_0x1d54bd!==_0x38a5d7[_0x5d90af(0x98)])throw CliErrors[_0x5d90af(0xdc)](_0x5d90af(0xbf)+_0x156ff8+'\x20has\x20changed\x20since\x20last\x20pull.',_0x5d90af(0xcc)+CLI_BIN_NAME+_0x5d90af(0x8d)+_0x156ff8+_0x5d90af(0xd8));}return{'lockEntry':_0x38a5d7,'localPath':_0x903e38,'localContent':_0x4cab30,'localHash':computePageContentHash(_0x4cab30),'remoteDetail':_0x3b9042};}async function pushPreparedPage(_0x3399ed,_0x43d26a){const _0x2dc4c7=a139_0x4c4699,_0x233754=await updatePage(_0x3399ed[_0x2dc4c7(0xab)],_0x43d26a[_0x2dc4c7(0xcf)]['pageId'],_0x43d26a[_0x2dc4c7(0x9a)],_0x43d26a[_0x2dc4c7(0xcf)][_0x2dc4c7(0xbb)]);if(!_0x233754)throw CliErrors[_0x2dc4c7(0xb4)]('Page\x20update\x20failed:\x20'+_0x43d26a[_0x2dc4c7(0xcf)][_0x2dc4c7(0xdf)]);const _0x29c022=await loadPageDetailForPage(_0x3399ed,_0x43d26a[_0x2dc4c7(0xcf)][_0x2dc4c7(0xdf)]),_0x12ed49=serializePageSchemaForFile(_0x29c022[_0x2dc4c7(0xe0)]);return await writeFile(_0x43d26a[_0x2dc4c7(0x9f)],_0x12ed49,_0x2dc4c7(0xd4)),{'pageId':_0x29c022[_0x2dc4c7(0xdf)],'type':_0x29c022[_0x2dc4c7(0xa8)],'title':_0x29c022['name'],'normalized':_0x12ed49!==serializePageSchemaForFile(_0x43d26a[_0x2dc4c7(0x9a)]),'nextLockEntry':{'hash':computePageContentHash(_0x12ed49),'pageId':_0x29c022[_0x2dc4c7(0xdf)],'pageVersion':_0x29c022[_0x2dc4c7(0xaf)],'type':_0x29c022[_0x2dc4c7(0xa8)],'title':_0x29c022[_0x2dc4c7(0xb9)],'datasetIds':_0x29c022[_0x2dc4c7(0xbb)],'versionTag':_0x29c022[_0x2dc4c7(0xb8)]}};}
|
|
1
|
+
const a139_0x14c924=a139_0x4dc5;function a139_0x4dc5(_0x539ed9,_0x423293){_0x539ed9=_0x539ed9-0x89;const _0x76aef9=a139_0x76ae();let _0x4dc5fd=_0x76aef9[_0x539ed9];return _0x4dc5fd;}function a139_0x76ae(){const _0x53c79b=['\x20page\x20pull\x20--datasetcode\x20','2427804Tviszl','localContent','remoteDetail','推送成功,服务端已规范化\x20schema','Local\x20file\x20not\x20found:\x20','nextLockEntry','parse','UNKNOWN','single','str','batch','推送成功','\x20page\x20pull\x20--id\x20','push','mode','toISOString','utf8','pageId','lockFilePath','values','pageVersion','No\x20local\x20pages\x20found\x20for\x20dataset\x20\x22','996496qvRrHR','145tUoVec','`\x20first','pages','relatedPages','hash','normalized','\x20has\x20changed\x20since\x20last\x20pull.','3286703WCtiFe','11448NRqqrd','13227220WJOcZS','Run\x20`','Push\x20local\x20page\x20schema\x20back\x20to\x20remote','page','无变更需要推送','Remote\x20page\x20','includes','candidates','type','470427PBpNqd','status','reason','compress','message','9dRFPqA','datasetId','\x20no\x20longer\x20belongs\x20to\x20the\x20selected\x20dataset.','blocked','`\x20first.','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','localPath','unchanged','number','page-','name','title','versionTag','datasetIds','Page\x20','no\x20changes','items','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','conflict','202UbOmVf','alias','string','local\x20JSON\x20is\x20invalid','validation','datasetCode','推送失败','lastSync','would_push','map','code','length','version-tag','remote\x20schema\x20changed','/smartapi/lovrabet/update-page','all','86820jMMuMi','Page\x20ID','No\x20lock\x20record\x20found\x20for\x20page\x20','filter','appCode'];a139_0x76ae=function(){return _0x53c79b;};return a139_0x76ae();}(function(_0x277c67,_0x521c14){const _0x423bc6=a139_0x4dc5,_0x382b64=_0x277c67();while(!![]){try{const _0x269b21=parseInt(_0x423bc6(0x95))/0x1+parseInt(_0x423bc6(0xad))/0x2*(-parseInt(_0x423bc6(0x8b))/0x3)+parseInt(_0x423bc6(0xbd))/0x4*(parseInt(_0x423bc6(0xda))/0x5)+parseInt(_0x423bc6(0xc3))/0x6+parseInt(_0x423bc6(0x8a))/0x7+parseInt(_0x423bc6(0xd9))/0x8+parseInt(_0x423bc6(0x9a))/0x9*(-parseInt(_0x423bc6(0x8c))/0xa);if(_0x269b21===_0x521c14)break;else _0x382b64['push'](_0x382b64['shift']());}catch(_0xb07f44){_0x382b64['push'](_0x382b64['shift']());}}}(a139_0x76ae,0x5f53b));import{readFile,writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{updatePage}from'../../core/api-client.js';import{computePageContentHash,computePageFileHash,computeSerializedSchemaHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePush={'service':a139_0x14c924(0x8f),'command':a139_0x14c924(0xd0),'description':a139_0x14c924(0x8e),'risk':'write','defaultOutputFormat':a139_0x14c924(0x98),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a139_0x14c924(0xa2),'description':a139_0x14c924(0xbe)},DATASETCODE_FLAG_OPTIONAL,{'name':a139_0x14c924(0xae),'type':'string','description':a139_0x14c924(0xab)},{'name':a139_0x14c924(0xb9),'type':a139_0x14c924(0xaf),'description':a139_0x14c924(0x9f)}],async 'validate'(_0x2821d8){validatePageTargetSelector(_0x2821d8);},async 'dryRun'(_0x325752){const _0x4e38f7=a139_0x14c924,_0x279792=await buildPushPreview(_0x325752);return{'method':'POST','url':_0x4e38f7(0xbb),'body':{'appCode':_0x325752[_0x4e38f7(0xc1)],'mode':_0x279792[_0x4e38f7(0xd1)],'datasetCode':_0x279792[_0x4e38f7(0xb2)]??null,'pages':_0x279792[_0x4e38f7(0xaa)]},'description':serializeDryRunDescription({'mode':_0x279792['mode'],'datasetCode':_0x279792[_0x4e38f7(0xb2)]??null,'totalWouldPush':_0x279792['items'][_0x4e38f7(0xc0)](_0x5f34f6=>_0x5f34f6[_0x4e38f7(0x96)]===_0x4e38f7(0xb5))[_0x4e38f7(0xb8)],'totalUnchanged':_0x279792[_0x4e38f7(0xaa)][_0x4e38f7(0xc0)](_0x566f96=>_0x566f96[_0x4e38f7(0x96)]===_0x4e38f7(0xa1))['length'],'totalConflicts':_0x279792['items']['filter'](_0x57b413=>_0x57b413[_0x4e38f7(0x96)]==='conflict'||_0x57b413[_0x4e38f7(0x96)]===_0x4e38f7(0x9d))[_0x4e38f7(0xb8)]})};},async 'execute'(_0x7836e1){const _0x3e953a=a139_0x14c924,_0x7a0dff=loadPageProjectConfig(_0x7836e1[_0x3e953a(0xc1)]),_0x4dfc3a=await readPageLockFile(_0x7a0dff[_0x3e953a(0xd5)]),{lockData:_0x2bb959,appLock:_0x5bcf32}=ensurePageLockScope(_0x4dfc3a??createEmptyPageLock(),_0x7836e1['appCode']),_0x2b082a=getPageIdFlag(_0x7836e1);if(_0x2b082a!==undefined){const _0x47bf15=await prepareSinglePush(_0x7836e1,_0x7a0dff,_0x5bcf32[_0x3e953a(0xdc)][String(_0x2b082a)],_0x2b082a),_0x580602=await pushPreparedPage(_0x7836e1,_0x47bf15);return _0x5bcf32[_0x3e953a(0xdc)][String(_0x580602['pageId'])]=_0x580602[_0x3e953a(0xc8)],_0x5bcf32[_0x3e953a(0xb4)]=new Date()['toISOString'](),await writePageLockFile(_0x7a0dff['lockFilePath'],_0x2bb959),{'ok':!![],'message':_0x580602[_0x3e953a(0xdf)]?_0x3e953a(0xc6):_0x3e953a(0xce),'data':{'appCode':_0x7836e1[_0x3e953a(0xc1)],'pushedPages':[{'pageId':_0x580602[_0x3e953a(0xd4)],'type':_0x580602[_0x3e953a(0x94)],'title':_0x580602[_0x3e953a(0xa5)],'normalized':_0x580602[_0x3e953a(0xdf)]}],'skippedPages':[],'failedPages':[],'totalPushed':0x1,'totalSkipped':0x0,'totalFailed':0x0}};}const _0x47914f=await buildBatchPushPlan(_0x7836e1,_0x5bcf32[_0x3e953a(0xdc)]),_0x5d6026=[],_0x538ae3=[],_0x5cfbff=[];for(const _0x5345a9 of _0x47914f['unchanged']){_0x538ae3['push'](_0x5345a9);}for(const _0x31bf23 of _0x47914f[_0x3e953a(0x93)]){try{const _0x583e2d=await prepareSinglePush(_0x7836e1,_0x7a0dff,_0x5bcf32[_0x3e953a(0xdc)][String(_0x31bf23[_0x3e953a(0xd4)])],_0x31bf23['pageId'],_0x47914f[_0x3e953a(0x9b)]),_0x5ce989=await pushPreparedPage(_0x7836e1,_0x583e2d);_0x5bcf32[_0x3e953a(0xdc)][String(_0x5ce989[_0x3e953a(0xd4)])]=_0x5ce989['nextLockEntry'],_0x5d6026['push']({'pageId':_0x5ce989[_0x3e953a(0xd4)],'type':_0x5ce989['type'],'title':_0x5ce989[_0x3e953a(0xa5)],'normalized':_0x5ce989['normalized']});}catch(_0x4bc45d){_0x5cfbff[_0x3e953a(0xd0)]({'pageId':_0x31bf23['pageId'],'type':_0x31bf23['type'],'title':_0x31bf23[_0x3e953a(0xa5)],'reason':_0x4bc45d instanceof Error?_0x4bc45d[_0x3e953a(0x99)]:String(_0x4bc45d)});}}return _0x5bcf32[_0x3e953a(0xb4)]=new Date()[_0x3e953a(0xd2)](),await writePageLockFile(_0x7a0dff[_0x3e953a(0xd5)],_0x2bb959),{'ok':_0x5cfbff['length']===0x0||_0x5d6026[_0x3e953a(0xb8)]>0x0||_0x538ae3['length']>0x0,'message':_0x5cfbff[_0x3e953a(0xb8)]>0x0&&_0x5d6026[_0x3e953a(0xb8)]>0x0?'部分页面推送失败':_0x5d6026[_0x3e953a(0xb8)]>0x0?_0x3e953a(0xce):_0x538ae3[_0x3e953a(0xb8)]>0x0&&_0x5cfbff[_0x3e953a(0xb8)]===0x0?_0x3e953a(0x90):_0x5cfbff[0x0]?.[_0x3e953a(0x97)]||_0x3e953a(0xb3),'data':{'appCode':_0x7836e1[_0x3e953a(0xc1)],'pushedPages':_0x5d6026,'skippedPages':_0x538ae3,'failedPages':_0x5cfbff,'totalPushed':_0x5d6026['length'],'totalSkipped':_0x538ae3['length'],'totalFailed':_0x5cfbff['length']}};}};async function buildPushPreview(_0x29127e){const _0x13342=a139_0x14c924,_0x420082=loadPageProjectConfig(_0x29127e[_0x13342(0xc1)]),_0x132727=await readPageLockFile(_0x420082[_0x13342(0xd5)]),{appLock:_0x74f890}=ensurePageLockScope(_0x132727??createEmptyPageLock(),_0x29127e[_0x13342(0xc1)]),_0xf78850=getPageIdFlag(_0x29127e);if(_0xf78850!==undefined)return{'mode':_0x13342(0xcb),'items':[await inspectPushPage(_0x29127e,_0x420082,_0x74f890['pages'][String(_0xf78850)],_0xf78850)]};const _0xcb0ee0=await buildBatchPushPlan(_0x29127e,_0x74f890['pages']);return{'mode':_0x13342(0xcd),'datasetCode':_0xcb0ee0[_0x13342(0xb2)],'items':[..._0xcb0ee0[_0x13342(0xa1)][_0x13342(0xb6)](_0x5bc9b5=>({'pageId':_0x5bc9b5[_0x13342(0xd4)],'type':_0x5bc9b5[_0x13342(0x94)],'title':_0x5bc9b5['title'],'localPath':_0x5bc9b5[_0x13342(0xa0)],'status':_0x13342(0xa1),'reason':_0x5bc9b5[_0x13342(0x97)]})),...await Promise[_0x13342(0xbc)](_0xcb0ee0[_0x13342(0x93)][_0x13342(0xb6)](_0x3b8afc=>inspectPushPage(_0x29127e,_0x420082,_0x74f890[_0x13342(0xdc)][String(_0x3b8afc['pageId'])],_0x3b8afc[_0x13342(0xd4)],_0xcb0ee0[_0x13342(0x9b)])))]};}async function buildBatchPushPlan(_0x5b149a,_0x49ff16){const _0x36b991=a139_0x14c924,_0x214d06=loadPageProjectConfig(_0x5b149a[_0x36b991(0xc1)]),_0x4fb8b6=await loadDatasetDetailForPage(_0x5b149a),_0x47f8cb=_0x4fb8b6['id'],_0x4a0af1=new Set(_0x4fb8b6[_0x36b991(0xdd)][_0x36b991(0xc0)](_0x15de2b=>!_0x15de2b['deleted'])[_0x36b991(0xb6)](_0x2e1530=>_0x2e1530['id'])),_0x3173e2=Object[_0x36b991(0xd6)](_0x49ff16)[_0x36b991(0xc0)](_0x13f71c=>_0x13f71c['datasetIds']['includes'](_0x47f8cb)&&_0x4a0af1['has'](_0x13f71c[_0x36b991(0xd4)]));if(_0x3173e2['length']===0x0)throw CliErrors[_0x36b991(0xb1)](_0x36b991(0xd8)+_0x4fb8b6[_0x36b991(0xb7)]+'\x22.',_0x36b991(0x8d)+CLI_BIN_NAME+_0x36b991(0xc2)+_0x4fb8b6[_0x36b991(0xb7)]+_0x36b991(0x9e));const _0x223b57=selectVersionTagGroup(_0x3173e2,_0x2da697=>_0x2da697[_0x36b991(0xa6)]??null,_0x5b149a[_0x36b991(0xcc)](_0x36b991(0xb9))),_0x2e3bf2=[],_0x213a9c=[];for(const _0x2e5b8a of _0x223b57[_0x36b991(0xaa)]){const _0x30549b=resolvePageFilePath(_0x214d06,_0x2e5b8a[_0x36b991(0xd4)],_0x2e5b8a[_0x36b991(0x94)]);if(!await fileExists(_0x30549b)){_0x2e3bf2[_0x36b991(0xd0)]({'pageId':_0x2e5b8a[_0x36b991(0xd4)],'type':_0x2e5b8a[_0x36b991(0x94)],'title':_0x2e5b8a['title']});continue;}const _0x3c7d0a=await computePageFileHash(_0x30549b);if(_0x3c7d0a===_0x2e5b8a['hash']){_0x213a9c[_0x36b991(0xd0)]({'pageId':_0x2e5b8a[_0x36b991(0xd4)],'type':_0x2e5b8a[_0x36b991(0x94)],'title':_0x2e5b8a[_0x36b991(0xa5)],'localPath':_0x30549b,'reason':'no\x20changes'});continue;}_0x2e3bf2[_0x36b991(0xd0)]({'pageId':_0x2e5b8a[_0x36b991(0xd4)],'type':_0x2e5b8a['type'],'title':_0x2e5b8a[_0x36b991(0xa5)]});}return{'datasetCode':_0x4fb8b6[_0x36b991(0xb7)],'datasetId':_0x47f8cb,'candidates':_0x2e3bf2,'unchanged':_0x213a9c};}async function inspectPushPage(_0x3711d1,_0x3381bc,_0x27388f,_0x9b26bc,_0x3a9555){const _0x43304c=a139_0x14c924;if(!_0x27388f)return{'pageId':_0x9b26bc,'type':_0x43304c(0xca),'title':_0x43304c(0xa3)+_0x9b26bc,'localPath':resolvePageFilePath(_0x3381bc,_0x9b26bc,_0x43304c(0xca)),'status':'blocked','reason':_0x43304c(0x8d)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x9b26bc+_0x43304c(0xdb)};const _0x381065=resolvePageFilePath(_0x3381bc,_0x9b26bc,_0x27388f['type']);if(!await fileExists(_0x381065))return{'pageId':_0x9b26bc,'type':_0x27388f[_0x43304c(0x94)],'title':_0x27388f[_0x43304c(0xa5)],'localPath':_0x381065,'status':_0x43304c(0x9d),'reason':_0x43304c(0xc7)+_0x381065};const _0x3132ea=await readFile(_0x381065,_0x43304c(0xd3));try{JSON['parse'](_0x3132ea);}catch{return{'pageId':_0x9b26bc,'type':_0x27388f[_0x43304c(0x94)],'title':_0x27388f[_0x43304c(0xa5)],'localPath':_0x381065,'status':_0x43304c(0x9d),'reason':_0x43304c(0xb0)};}const _0x1e23dc=computePageContentHash(_0x3132ea);if(_0x1e23dc===_0x27388f['hash'])return{'pageId':_0x9b26bc,'type':_0x27388f['type'],'title':_0x27388f[_0x43304c(0xa5)],'localPath':_0x381065,'status':_0x43304c(0xa1),'reason':_0x43304c(0xa9)};try{const _0x52e19b=await loadPageDetailForPage(_0x3711d1,_0x9b26bc);if(_0x3a9555!=null&&!_0x52e19b[_0x43304c(0xa7)][_0x43304c(0x92)](_0x3a9555))return{'pageId':_0x9b26bc,'type':_0x27388f[_0x43304c(0x94)],'title':_0x27388f[_0x43304c(0xa5)],'localPath':_0x381065,'status':_0x43304c(0xac),'reason':'Page\x20'+_0x9b26bc+'\x20no\x20longer\x20belongs\x20to\x20the\x20target\x20dataset'};const _0x2a7532=_0x27388f[_0x43304c(0xd7)]!=null&&_0x52e19b['pageVersion']!=null;if(_0x2a7532&&_0x27388f[_0x43304c(0xd7)]!==_0x52e19b['pageVersion'])return{'pageId':_0x9b26bc,'type':_0x27388f[_0x43304c(0x94)],'title':_0x27388f[_0x43304c(0xa5)],'localPath':_0x381065,'status':_0x43304c(0xac),'reason':'remote\x20pageVersion\x20changed'};if(!_0x2a7532&&computeSerializedSchemaHash(_0x52e19b[_0x43304c(0xb7)])!==_0x27388f[_0x43304c(0xde)])return{'pageId':_0x9b26bc,'type':_0x27388f[_0x43304c(0x94)],'title':_0x27388f[_0x43304c(0xa5)],'localPath':_0x381065,'status':_0x43304c(0xac),'reason':_0x43304c(0xba)};}catch(_0x1bce55){return{'pageId':_0x9b26bc,'type':_0x27388f[_0x43304c(0x94)],'title':_0x27388f[_0x43304c(0xa5)],'localPath':_0x381065,'status':'blocked','reason':_0x1bce55 instanceof Error?_0x1bce55[_0x43304c(0x99)]:String(_0x1bce55)};}return{'pageId':_0x9b26bc,'type':_0x27388f['type'],'title':_0x27388f[_0x43304c(0xa5)],'localPath':_0x381065,'status':_0x43304c(0xb5)};}async function prepareSinglePush(_0x2623b6,_0x335306,_0x423a97,_0x234ef0,_0x40653f){const _0x62398=a139_0x14c924;if(!_0x423a97)throw CliErrors[_0x62398(0xb1)](_0x62398(0xbf)+_0x234ef0+'.',_0x62398(0x8d)+CLI_BIN_NAME+_0x62398(0xcf)+_0x234ef0+'`\x20first.');const _0x3c3b43=resolvePageFilePath(_0x335306,_0x234ef0,_0x423a97[_0x62398(0x94)]);if(!await fileExists(_0x3c3b43))throw CliErrors[_0x62398(0xb1)](_0x62398(0xc7)+_0x3c3b43,'Run\x20`'+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x234ef0+_0x62398(0x9e));const _0x47aa81=await readFile(_0x3c3b43,_0x62398(0xd3));try{JSON[_0x62398(0xc9)](_0x47aa81);}catch{throw CliErrors[_0x62398(0xb1)]('Invalid\x20JSON\x20in\x20local\x20page\x20file:\x20'+_0x3c3b43);}const _0x2f3d06=await loadPageDetailForPage(_0x2623b6,_0x234ef0);if(_0x40653f!=null&&!_0x2f3d06[_0x62398(0xa7)][_0x62398(0x92)](_0x40653f))throw CliErrors[_0x62398(0xb1)](_0x62398(0xa8)+_0x234ef0+_0x62398(0x9c));const _0x17037f=_0x423a97[_0x62398(0xd7)]!=null&&_0x2f3d06[_0x62398(0xd7)]!=null;if(_0x17037f){if(_0x423a97[_0x62398(0xd7)]!==_0x2f3d06['pageVersion'])throw CliErrors['validation'](_0x62398(0x91)+_0x234ef0+_0x62398(0x89),_0x62398(0x8d)+CLI_BIN_NAME+_0x62398(0xcf)+_0x234ef0+'`\x20first.');}else{const _0x2a5ddc=computeSerializedSchemaHash(_0x2f3d06[_0x62398(0xb7)]);if(_0x2a5ddc!==_0x423a97[_0x62398(0xde)])throw CliErrors['validation']('Remote\x20page\x20'+_0x234ef0+'\x20has\x20changed\x20since\x20last\x20pull.','Run\x20`'+CLI_BIN_NAME+_0x62398(0xcf)+_0x234ef0+_0x62398(0x9e));}return{'lockEntry':_0x423a97,'localPath':_0x3c3b43,'localContent':_0x47aa81,'localHash':computePageContentHash(_0x47aa81),'remoteDetail':_0x2f3d06};}async function pushPreparedPage(_0x117f8e,_0x1fc557){const _0x375f7a=a139_0x14c924,_0x2c533d=await updatePage(_0x117f8e['appCode'],_0x1fc557['remoteDetail'][_0x375f7a(0xd4)],_0x1fc557[_0x375f7a(0xc4)],_0x1fc557[_0x375f7a(0xc5)]['datasetIds']);if(!_0x2c533d)throw CliErrors['apiError']('Page\x20update\x20failed:\x20'+_0x1fc557[_0x375f7a(0xc5)][_0x375f7a(0xd4)]);const _0x417b05=await loadPageDetailForPage(_0x117f8e,_0x1fc557[_0x375f7a(0xc5)][_0x375f7a(0xd4)]),_0x4ea05d=serializePageSchemaForFile(_0x417b05[_0x375f7a(0xb7)]);return await writeFile(_0x1fc557[_0x375f7a(0xa0)],_0x4ea05d,_0x375f7a(0xd3)),{'pageId':_0x417b05[_0x375f7a(0xd4)],'type':_0x417b05[_0x375f7a(0x94)],'title':_0x417b05[_0x375f7a(0xa4)],'normalized':_0x4ea05d!==serializePageSchemaForFile(_0x1fc557['localContent']),'nextLockEntry':{'hash':computePageContentHash(_0x4ea05d),'pageId':_0x417b05[_0x375f7a(0xd4)],'pageVersion':_0x417b05[_0x375f7a(0xd7)],'type':_0x417b05[_0x375f7a(0x94)],'title':_0x417b05[_0x375f7a(0xa4)],'datasetIds':_0x417b05[_0x375f7a(0xa7)],'versionTag':_0x417b05[_0x375f7a(0xa6)]}};}
|