@lovrabet/rabetbase-cli 2.4.6-beta.3 → 2.4.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.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/members-list.js +1 -1
- package/lib/commands/app/remote-directory.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app-config/delete.js +1 -1
- package/lib/commands/app-config/get.js +1 -1
- package/lib/commands/app-config/index.js +1 -1
- package/lib/commands/app-config/list.js +1 -1
- package/lib/commands/app-config/set.js +1 -1
- package/lib/commands/app-config/shared.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-skill/index.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-registry.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/async-task.js +1 -1
- package/lib/commands/common/dry-run.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/local-file.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/business-group-update.js +1 -1
- package/lib/commands/dataset/business-groups.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/generate.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-audit.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/dataset/restore.js +1 -1
- package/lib/commands/db/analysis-batching.js +1 -1
- package/lib/commands/db/analyze-batch-plan.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff-refresh-start.js +1 -1
- package/lib/commands/db/diff-refresh-status.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/file/index.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/kb/create.js +1 -1
- package/lib/commands/kb/delete.js +1 -1
- package/lib/commands/kb/detail.js +1 -1
- package/lib/commands/kb/index.js +1 -1
- package/lib/commands/kb/list.js +1 -1
- package/lib/commands/kb/shared.js +1 -1
- package/lib/commands/kb/update.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/asset-update.js +1 -1
- package/lib/commands/menu/delete.js +1 -1
- package/lib/commands/menu/external-link-create.js +1 -1
- package/lib/commands/menu/external-link-update.js +1 -1
- package/lib/commands/menu/group-create.js +1 -1
- package/lib/commands/menu/group-update.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/move.js +1 -1
- package/lib/commands/menu/regroup-start.js +1 -1
- package/lib/commands/menu/rename.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/delete-plan.js +1 -1
- package/lib/commands/menu/shared/facts.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/mutations.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/visibility-update.js +1 -1
- package/lib/commands/notification/config-create.js +1 -1
- package/lib/commands/notification/config-delete.js +1 -1
- package/lib/commands/notification/config-list.js +1 -1
- package/lib/commands/notification/config-update.js +1 -1
- package/lib/commands/notification/index.js +1 -1
- package/lib/commands/notification/shared.js +1 -1
- package/lib/commands/ocr/index.js +1 -1
- package/lib/commands/page/create.js +1 -1
- package/lib/commands/page/custom/detail.js +1 -1
- package/lib/commands/page/custom/list.js +1 -1
- package/lib/commands/page/custom/publish.js +1 -1
- package/lib/commands/page/custom/shared.js +1 -1
- package/lib/commands/page/custom/syntax.js +1 -1
- package/lib/commands/page/custom/template.js +1 -1
- package/lib/commands/page/custom/update.js +1 -1
- package/lib/commands/page/data-list-status.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/restore.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/materialize-project-template.js +1 -1
- package/lib/commands/project/create/project-name.js +1 -1
- package/lib/commands/project/create/project-template-archive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/role/delete.js +1 -1
- package/lib/commands/role/detail.js +1 -1
- package/lib/commands/role/index.js +1 -1
- package/lib/commands/role/list.js +1 -1
- package/lib/commands/role/shared.js +1 -1
- package/lib/commands/role/update.js +1 -1
- package/lib/commands/role/user-add.js +1 -1
- package/lib/commands/role/user-remove.js +1 -1
- package/lib/commands/role/user-resolve.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/task/index.js +1 -1
- package/lib/commands/task/status.js +1 -1
- package/lib/commands/tenant/index.js +1 -1
- package/lib/commands/tenant/members-list.js +1 -1
- package/lib/commands/tenant/shared.js +1 -1
- package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
- package/lib/commands/user-account/index.js +1 -1
- package/lib/commands/workspace/add.js +1 -1
- package/lib/commands/workspace/index.js +1 -1
- package/lib/commands/workspace/remove.js +1 -1
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-index-auditor.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/error-output.js +1 -1
- package/lib/framework/explicit-yes.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.d.ts +4 -4
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/postinstall.js +1 -1
- package/lib/runtime/confirmation.js +1 -1
- package/lib/runtime/event.js +1 -1
- package/lib/runtime/index.js +1 -1
- package/lib/runtime/queue.js +1 -1
- package/lib/runtime/resolve.js +1 -1
- package/lib/skills/builtin-skill.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/skills/skill-presence.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
- package/skills/rabetbase/SKILL.md +1 -1
- package/skills/rabetbase.manifest.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a143_0xa6ab26=a143_0x1ec2;(function(_0x3b3250,_0x470d93){const _0x3abf67=a143_0x1ec2,_0x13295b=_0x3b3250();while(!![]){try{const _0xf0473a=parseInt(_0x3abf67(0xf3))/0x1+-parseInt(_0x3abf67(0xeb))/0x2*(parseInt(_0x3abf67(0xf6))/0x3)+parseInt(_0x3abf67(0x11a))/0x4+-parseInt(_0x3abf67(0xf1))/0x5*(-parseInt(_0x3abf67(0xfd))/0x6)+-parseInt(_0x3abf67(0x119))/0x7*(parseInt(_0x3abf67(0xf9))/0x8)+parseInt(_0x3abf67(0xe8))/0x9*(-parseInt(_0x3abf67(0x101))/0xa)+-parseInt(_0x3abf67(0x11f))/0xb*(-parseInt(_0x3abf67(0x10a))/0xc);if(_0xf0473a===_0x470d93)break;else _0x13295b['push'](_0x13295b['shift']());}catch(_0x1f3a79){_0x13295b['push'](_0x13295b['shift']());}}}(a143_0x20b1,0xe18fa));function a143_0x1ec2(_0x306f0c,_0x57d62d){_0x306f0c=_0x306f0c-0xe8;const _0x20b190=a143_0x20b1();let _0x1ec231=_0x20b190[_0x306f0c];return _0x1ec231;}import{APPCODE_FLAG}from'../../commands/common/flags.js';import{buildInitialFiles}from'../../commands/page/custom/template.js';import{createCustomPage,getI18nInfo}from'../../core/api-client.js';function a143_0x20b1(){const _0x25b7a1=['parentMenuId','18eGgKeR','Optional\x20parent\x20menu\x20id\x20when\x20creating\x20a\x20menu\x20entry','page-content','num','60QQtHhi','now','Custom\x20Page\x20pattern\x20(currently\x20BLANK;\x20conflicts\x20with\x20--page-content)','page-pattern','Create\x20a\x20JSX\x20Custom\x20Page\x20from\x20a\x20released\x20pattern\x20or\x20complete\x20files','keys','stringify','trim','page.create','16899936MPgKAA','files','/smartapi/webcode/page/create','pageId','validation','Application\x20language\x20settings\x20could\x20not\x20be\x20read;\x20default\x20Chinese\x20and\x20English\x20language\x20files\x20were\x20generated.','--parent-menu-id\x20must\x20be\x20a\x20positive\x20integer.','--page-pattern\x20and\x20--page-content\x20cannot\x20be\x20used\x20together.','menuPath','warnings','length','menuId','pageName','Complete\x20page\x20files\x20as\x20JSON\x20(conflicts\x20with\x20--page-pattern)','input','6874OeufMS','4120832FCIKlc','str','\x20and\x20its\x20menu\x20entry.','version','BLANK','11JIeFVJ','CUSTOM','isInteger','POST','langs','createMenu','enableI18n','This\x20command\x20always\x20creates\x20a\x20CUSTOM\x20JSX\x20page;\x20use\x20--page-pattern\x20BLANK\x20or\x20--page-content.','write','2232873HQMzId','en-US','Optional\x20Custom\x20Page\x20name\x20(1-100\x20characters)','4VVfwCo','appCode','Created\x20Custom\x20Page\x20','name','compress','Custom\x20Page\x20was\x20created,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','818850fqRHnG','pageName\x20cannot\x20exceed\x20100\x20characters.','1206266DkEvPB','number','page','1859259NIrPTT','Provide\x20--page-pattern\x20BLANK\x20or\x20--page-content.','string','3944DGtoWY','Would\x20create\x20Custom\x20Page\x20','--page-pattern\x20currently\x20supports\x20only\x20BLANK.'];a143_0x20b1=function(){return _0x25b7a1;};return a143_0x20b1();}import{CliErrors}from'../../errors.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,parseCustomPageContent,validateCustomPageContent}from'./custom/shared.js';const DEFAULT_CUSTOM_PAGE_LANGUAGES=['zh-CN',a143_0xa6ab26(0xe9)];export const pageCreate={'service':a143_0xa6ab26(0xf5),'command':'create','description':a143_0xa6ab26(0x105),'risk':a143_0xa6ab26(0x127),'defaultOutputFormat':a143_0xa6ab26(0xef),'structuredErrors':!![],'rejectedFlags':[{'name':'page-type','message':'page\x20create\x20does\x20not\x20accept\x20--page-type.','hint':a143_0xa6ab26(0x126)}],'flags':[{'name':a143_0xa6ab26(0xee),'type':a143_0xa6ab26(0xf8),'description':a143_0xa6ab26(0xea)},{'name':'parent-menu-id','type':a143_0xa6ab26(0xf4),'description':a143_0xa6ab26(0xfe)},{'name':a143_0xa6ab26(0x104),'type':a143_0xa6ab26(0xf8),'description':a143_0xa6ab26(0x103),'enum':[a143_0xa6ab26(0x11e)]},{'name':a143_0xa6ab26(0xff),'type':a143_0xa6ab26(0xf8),'description':a143_0xa6ab26(0x117)},APPCODE_FLAG],async 'validate'(_0x15c562){const _0x3ed67a=a143_0xa6ab26,_0x52c8c4=readPagePattern(_0x15c562);await validateCustomPageContent(readInput(_0x15c562,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x52c8c4)[_0x3ed67a(0x10b)]);},async 'dryRun'(_0x462639){const _0x2f4df2=a143_0xa6ab26,{input:_0xcf9684}=await prepare(_0x462639);return{'method':_0x2f4df2(0x122),'url':_0x2f4df2(0x10c),'body':{'appCode':_0xcf9684[_0x2f4df2(0xec)],'pageName':_0xcf9684['pageName'],..._0xcf9684[_0x2f4df2(0xfc)]!=null?{'parentMenuId':_0xcf9684['parentMenuId']}:{},'createMenu':_0xcf9684[_0x2f4df2(0x124)],'codeContent':_0xcf9684[_0x2f4df2(0x10b)]},'description':_0x2f4df2(0xfa)+JSON[_0x2f4df2(0x107)](_0xcf9684[_0x2f4df2(0x116)])+_0x2f4df2(0x11c)};},async 'execute'(_0x28fc4b){const _0x3da0e4=a143_0xa6ab26,_0x378fe1=await prepare(_0x28fc4b),_0x15aa11=await createCustomPage(_0x378fe1[_0x3da0e4(0x118)]);if(!Number[_0x3da0e4(0x121)](_0x15aa11[_0x3da0e4(0x10d)])||_0x15aa11[_0x3da0e4(0x10d)]<=0x0)throw CliErrors['apiError']('Custom\x20Page\x20creation\x20did\x20not\x20return\x20a\x20valid\x20pageId.');return{'ok':!![],'data':buildMutationData(_0x378fe1,_0x15aa11),'message':_0x3da0e4(0xed)+_0x15aa11['pageId']+'.'};}};async function prepare(_0xe9100f){const _0x4a1edf=a143_0xa6ab26,_0x3752c2=readPagePattern(_0xe9100f);if(_0x3752c2===null)return{'input':readInput(_0xe9100f,DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x3752c2),'warnings':[],'pagePattern':_0x3752c2};let _0x5498dc=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x146e6f=[];try{const _0x2403ba=await getI18nInfo(_0xe9100f[_0x4a1edf(0xec)]);_0x2403ba[_0x4a1edf(0x125)]&&_0x2403ba[_0x4a1edf(0x123)]?.[_0x4a1edf(0x114)]&&(_0x5498dc=_0x2403ba['langs']);}catch{_0x146e6f=[_0x4a1edf(0x10f)];}return{'input':readInput(_0xe9100f,_0x5498dc,_0x3752c2),'warnings':_0x146e6f,'pagePattern':_0x3752c2};}function readPagePattern(_0x4b8ef9){const _0x439d98=a143_0xa6ab26,_0x3f75e9=_0x4b8ef9[_0x439d98(0x11b)](_0x439d98(0x104))[_0x439d98(0x108)](),_0x3df209=_0x4b8ef9[_0x439d98(0x11b)](_0x439d98(0xff))[_0x439d98(0x108)]()[_0x439d98(0x114)]>0x0;if(_0x3f75e9&&_0x3df209)throw CliErrors[_0x439d98(0x10e)](_0x439d98(0x111));if(_0x3df209)return null;if(!_0x3f75e9)throw CliErrors[_0x439d98(0x10e)](_0x439d98(0xf7));if(_0x3f75e9!==_0x439d98(0x11e))throw CliErrors[_0x439d98(0x10e)](_0x439d98(0xfb));return _0x3f75e9;}function readInput(_0x11c661,_0x5d489f=DEFAULT_CUSTOM_PAGE_LANGUAGES,_0x2372e8=readPagePattern(_0x11c661)){const _0x3fe2ea=a143_0xa6ab26,_0x2b9890=_0x11c661[_0x3fe2ea(0x11b)](_0x3fe2ea(0xee))['trim']()||'自定义页面_'+Date[_0x3fe2ea(0x102)]();if(_0x2b9890[_0x3fe2ea(0x114)]>0x64)throw CliErrors[_0x3fe2ea(0x10e)](_0x3fe2ea(0xf2));const _0x5ce41f=_0x11c661[_0x3fe2ea(0x100)]('parent-menu-id',NaN),_0xd0ef41=!Number['isNaN'](_0x5ce41f);if(_0xd0ef41&&(!Number[_0x3fe2ea(0x121)](_0x5ce41f)||_0x5ce41f<=0x0))throw CliErrors[_0x3fe2ea(0x10e)](_0x3fe2ea(0x110));return{'appCode':_0x11c661[_0x3fe2ea(0xec)],'pageName':_0x2b9890,..._0xd0ef41?{'parentMenuId':_0x5ce41f}:{},'createMenu':!![],'files':_0x2372e8===null?parseCustomPageContent(_0x11c661[_0x3fe2ea(0x11b)]('page-content')):buildInitialFiles(_0x2b9890,_0x5d489f)};}function buildMutationData(_0x1bd9f4,_0x3c4986){const _0x21e7a0=a143_0xa6ab26,{input:_0x3e136c}=_0x1bd9f4,_0x39cfe8=_0x3c4986&&buildCustomPageDevelopmentUrl(_0x3e136c[_0x21e7a0(0xec)],_0x3c4986[_0x21e7a0(0x112)]),_0x140bdc=_0x3c4986&&buildCustomPageEditUrl(_0x3e136c[_0x21e7a0(0xec)],_0x3c4986['pageId']);return{'operation':_0x21e7a0(0x109),'pageType':_0x21e7a0(0x120),'pagePattern':_0x1bd9f4['pagePattern'],'selector':{'appCode':_0x3e136c[_0x21e7a0(0xec)],'pageName':_0x3e136c[_0x21e7a0(0x116)]},'before':null,'after':{'pageId':_0x3c4986?.[_0x21e7a0(0x10d)]??null,'pageName':_0x3c4986?.['pageName']??_0x3e136c[_0x21e7a0(0x116)],'appCode':_0x3c4986?.[_0x21e7a0(0xec)]??_0x3e136c[_0x21e7a0(0xec)],'version':_0x3c4986?.[_0x21e7a0(0x11d)]??null,'menuId':_0x3c4986?.[_0x21e7a0(0x115)]??null,'menuPath':_0x3c4986?.[_0x21e7a0(0x112)]??null,'files':_0x3c4986?.[_0x21e7a0(0x10b)]??Object[_0x21e7a0(0x106)](_0x3e136c[_0x21e7a0(0x10b)])},'dryRun':_0x3c4986===undefined,'request':_0x3e136c,..._0x39cfe8?{'pageUrl':_0x39cfe8}:{},..._0x140bdc?{'editPageUrl':_0x140bdc}:{},'warnings':[..._0x1bd9f4[_0x21e7a0(0x113)],..._0x3c4986&&!_0x39cfe8?[_0x21e7a0(0xf0)]:[]]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a144_0x30a451=a144_0xf668;(function(_0x20f77d,_0x404284){const _0x298154=a144_0xf668,_0x34f85f=_0x20f77d();while(!![]){try{const _0x1c573b=parseInt(_0x298154(0x193))/0x1+parseInt(_0x298154(0x18d))/0x2*(parseInt(_0x298154(0x18a))/0x3)+-parseInt(_0x298154(0x18b))/0x4*(parseInt(_0x298154(0x19c))/0x5)+parseInt(_0x298154(0x190))/0x6*(parseInt(_0x298154(0x182))/0x7)+parseInt(_0x298154(0x184))/0x8+-parseInt(_0x298154(0x194))/0x9+-parseInt(_0x298154(0x181))/0xa*(-parseInt(_0x298154(0x188))/0xb);if(_0x1c573b===_0x404284)break;else _0x34f85f['push'](_0x34f85f['shift']());}catch(_0x2d9b3e){_0x34f85f['push'](_0x34f85f['shift']());}}}(a144_0x3bc6,0x679c5));import{getCustomPageSource}from'../../../core/api-client.js';function a144_0xf668(_0x24b243,_0xd0564d){_0x24b243=_0x24b243-0x181;const _0x3bc61f=a144_0x3bc6();let _0xf66891=_0x3bc61f[_0x24b243];return _0xf66891;}function a144_0x3bc6(){const _0x2b95e3=['getFullYear','padStart','getMinutes','460DufrKF','read','getDate','1230CoEOzN','568638uQzDxS','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','2697792vEFHgH','trim','getTime','page','35651cUaTye','custom-detail','3CRQOJZ','21424LDTcjf','join','459526PzHqYD','number','cookie','36xRoNKZ','Retrieved\x20Custom\x20Page\x20','getHours','26928gsVhiH','5065389kFHJxK','compress','pageCode','getSeconds','isNaN'];a144_0x3bc6=function(){return _0x2b95e3;};return a144_0x3bc6();}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a144_0x30a451(0x187),'command':a144_0x30a451(0x189),'description':a144_0x30a451(0x183),'risk':a144_0x30a451(0x19d),'defaultOutputFormat':a144_0x30a451(0x195),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a144_0x30a451(0x18e),'required':!![],'description':'Custom\x20Page\x20ID'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x2506ad){readCustomPageId(_0x2506ad);},async 'execute'(_0x9d3b2c){const _0x322b42=a144_0x30a451,_0x122aa6=readCustomPageId(_0x9d3b2c),_0x24cf75=await getCustomPageSource(_0x122aa6),{bundle:_0x25008e,createTime:_0x549fea,updateTime:_0x2266d4,..._0x5ddf90}=_0x24cf75,_0x57d515=_0x24cf75['id']??_0x122aa6,_0x1e3129=_0x24cf75['appCode']?.[_0x322b42(0x185)]()||_0x9d3b2c['str']('appcode')[_0x322b42(0x185)](),_0x4637be=buildCustomPageRuntimeUrl(_0x1e3129,_0x24cf75[_0x322b42(0x196)]),_0x23ada2=buildCustomPageEditUrl(_0x1e3129,_0x57d515),_0x1e92e6=await resolveCustomPageDevelopmentUrl(_0x1e3129,_0x57d515,_0x9d3b2c[_0x322b42(0x18f)]);return{'ok':!![],'data':{..._0x5ddf90,..._0x4637be?{'runtimePageUrl':_0x4637be}:{},..._0x1e92e6?{'pageUrl':_0x1e92e6}:{},..._0x23ada2?{'editPageUrl':_0x23ada2}:{},..._0x549fea==null?{}:{'createTime':formatTime(_0x549fea)},..._0x2266d4==null?{}:{'updateTime':formatTime(_0x2266d4)}},'message':_0x322b42(0x191)+_0x122aa6+'.'};}};function formatTime(_0x211ed6){const _0x1d4039=a144_0x30a451,_0x128ec4=new Date(_0x211ed6);if(Number[_0x1d4039(0x198)](_0x128ec4[_0x1d4039(0x186)]()))return String(_0x211ed6);const _0x55b52a=[_0x128ec4[_0x1d4039(0x199)](),String(_0x128ec4['getMonth']()+0x1)[_0x1d4039(0x19a)](0x2,'0'),String(_0x128ec4[_0x1d4039(0x19e)]())[_0x1d4039(0x19a)](0x2,'0')][_0x1d4039(0x18c)]('-'),_0x23f11d=[String(_0x128ec4[_0x1d4039(0x192)]())[_0x1d4039(0x19a)](0x2,'0'),String(_0x128ec4[_0x1d4039(0x19b)]())[_0x1d4039(0x19a)](0x2,'0'),String(_0x128ec4[_0x1d4039(0x197)]())['padStart'](0x2,'0')][_0x1d4039(0x18c)](':');return _0x55b52a+'\x20'+_0x23f11d;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a145_0x35dc9a=a145_0x1a2e;(function(_0x6b448c,_0x44158c){const _0x4a6cf4=a145_0x1a2e,_0x4c9bf2=_0x6b448c();while(!![]){try{const _0x4f1631=-parseInt(_0x4a6cf4(0xce))/0x1+parseInt(_0x4a6cf4(0xdd))/0x2+parseInt(_0x4a6cf4(0xd0))/0x3*(-parseInt(_0x4a6cf4(0xda))/0x4)+-parseInt(_0x4a6cf4(0xcf))/0x5*(-parseInt(_0x4a6cf4(0xcd))/0x6)+-parseInt(_0x4a6cf4(0xd5))/0x7*(parseInt(_0x4a6cf4(0xe4))/0x8)+parseInt(_0x4a6cf4(0xd1))/0x9*(parseInt(_0x4a6cf4(0xe0))/0xa)+-parseInt(_0x4a6cf4(0xd4))/0xb*(parseInt(_0x4a6cf4(0xe1))/0xc);if(_0x4f1631===_0x44158c)break;else _0x4c9bf2['push'](_0x4c9bf2['shift']());}catch(_0x2a172c){_0x4c9bf2['push'](_0x4c9bf2['shift']());}}}(a145_0x2a74,0xb04b7));import{APPCODE_FLAG}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl}from'./shared.js';function a145_0x1a2e(_0x156812,_0x4507a3){_0x156812=_0x156812-0xcd;const _0x2a740a=a145_0x2a74();let _0x1a2edf=_0x2a740a[_0x156812];return _0x1a2edf;}function a145_0x2a74(){const _0x207caf=['118540FGwPbm','compress','No\x20Custom\x20Pages\x20found.','2221884hZRbte','length','pageId','9360ZxOiPJ','138036QPfiyj','flatMap','cookie','3240ulNEjp','appCode','6UgZwFk','1197218yCqYgC','2396855azgujN','63cbzWSC','13446YDbmOt','page','path','22kzfTKV','7329XUGHvp','menus','read','label','custom-list'];a145_0x2a74=function(){return _0x207caf;};return a145_0x2a74();}export const pageCustomList={'service':a145_0x35dc9a(0xd2),'command':a145_0x35dc9a(0xd9),'description':'List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','risk':a145_0x35dc9a(0xd7),'defaultOutputFormat':a145_0x35dc9a(0xdb),'structuredErrors':!![],'flags':[APPCODE_FLAG],async 'execute'(_0x2527a4){const _0x453ccb=a145_0x35dc9a,_0x1fb1cd=(await fetchMenuSnapshot(_0x2527a4['appCode'],_0x2527a4[_0x453ccb(0xe3)]))[_0x453ccb(0xd6)][_0x453ccb(0xe2)](_0x189b00=>{const _0xc6d9b6=_0x453ccb;if(_0x189b00['type']!=='react'||_0x189b00[_0xc6d9b6(0xdf)]==null)return[];const _0x5d53f9=buildCustomPageDevelopmentUrl(_0x2527a4[_0xc6d9b6(0xe5)],_0x189b00[_0xc6d9b6(0xd3)]),_0x541b54=buildCustomPageEditUrl(_0x2527a4[_0xc6d9b6(0xe5)],_0x189b00[_0xc6d9b6(0xdf)]);return[{'pageId':_0x189b00['pageId'],'label':_0x189b00[_0xc6d9b6(0xd8)],..._0x5d53f9?{'pageUrl':_0x5d53f9}:{},..._0x541b54?{'editPageUrl':_0x541b54}:{}}];});return{'ok':!![],'data':{'pages':_0x1fb1cd},'message':_0x1fb1cd[_0x453ccb(0xde)]===0x0?_0x453ccb(0xdc):'Found\x20'+_0x1fb1cd[_0x453ccb(0xde)]+'\x20Custom\x20Page(s).'};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a146_0x274c57=a146_0x3d38;(function(_0xb09a5e,_0x386eae){const _0x4c5387=a146_0x3d38,_0x1ff5e3=_0xb09a5e();while(!![]){try{const _0x4edfa8=-parseInt(_0x4c5387(0x1c2))/0x1+-parseInt(_0x4c5387(0x1b7))/0x2*(parseInt(_0x4c5387(0x1a5))/0x3)+-parseInt(_0x4c5387(0x1a6))/0x4+-parseInt(_0x4c5387(0x1ba))/0x5+parseInt(_0x4c5387(0x1bb))/0x6*(parseInt(_0x4c5387(0x1a8))/0x7)+-parseInt(_0x4c5387(0x1b6))/0x8+parseInt(_0x4c5387(0x1ad))/0x9;if(_0x4edfa8===_0x386eae)break;else _0x1ff5e3['push'](_0x1ff5e3['shift']());}catch(_0xcd82cc){_0x1ff5e3['push'](_0x1ff5e3['shift']());}}}(a146_0x375e,0x62838));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a146_0x375e(){const _0x28848a=['POST','399720pSYbRD','1572666gSzeEV','pageId','remark','/smartapi/webcode/file/publish','write','page.custom-publish','pageCode','539688sJMSjF','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','warnings','132LxhAwn','3054716ILAUok','string','21KJpuzj','appCode','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','FORMAL','isInteger','14852493prOpBf','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','compress','Published\x20Custom\x20Page\x20','cookie','status','push','number','page','3477720zZxxyi','9776KhCMSf','runtimePageUrl'];a146_0x375e=function(){return _0x28848a;};return a146_0x375e();}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a146_0x274c57(0x1b5),'command':'custom-publish','description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':a146_0x274c57(0x1bf),'defaultOutputFormat':a146_0x274c57(0x1af),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a146_0x274c57(0x1b4),'required':!![],'description':'Custom\x20Page\x20ID'},{'name':a146_0x274c57(0x1bd),'type':a146_0x274c57(0x1a7),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x3150a5){readCustomPageId(_0x3150a5);},async 'dryRun'(_0x28b91b){const _0x4857e4=a146_0x274c57,_0x43daa1=readInput(_0x28b91b);return{'method':_0x4857e4(0x1b9),'url':_0x4857e4(0x1be),'body':{'id':_0x43daa1[_0x4857e4(0x1bc)],..._0x43daa1[_0x4857e4(0x1bd)]?{'remark':_0x43daa1[_0x4857e4(0x1bd)]}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x43daa1['pageId']+'.'};},async 'execute'(_0x542f60){const _0x40b0aa=a146_0x274c57,_0x31871b=readInput(_0x542f60);await getCustomPageSource(_0x31871b[_0x40b0aa(0x1bc)]);const _0x2c43bf=await publishCustomPage(_0x31871b);if(!Number[_0x40b0aa(0x1ac)](_0x2c43bf)||_0x2c43bf!==_0x31871b[_0x40b0aa(0x1bc)])throw CliErrors['apiError'](_0x40b0aa(0x1ae));const _0x15f9bb=await getCustomPageSource(_0x31871b[_0x40b0aa(0x1bc)]);if(_0x15f9bb[_0x40b0aa(0x1b2)]!==_0x40b0aa(0x1ab))throw CliErrors['apiError'](_0x40b0aa(0x1c3)+(_0x15f9bb[_0x40b0aa(0x1b2)]??'unknown')+'.');const _0x12f0f4=_0x15f9bb[_0x40b0aa(0x1a9)]?.['trim'](),_0x139640=buildCustomPageEditUrl(_0x12f0f4,_0x31871b['pageId']),_0x50afae=await resolveCustomPageDevelopmentUrl(_0x12f0f4,_0x31871b[_0x40b0aa(0x1bc)],_0x542f60[_0x40b0aa(0x1b1)]),_0x39f4a8=buildMutationData(_0x31871b,!![],_0x50afae,_0x139640);_0x12f0f4&&!_0x50afae&&_0x39f4a8[_0x40b0aa(0x1a4)]['push'](_0x40b0aa(0x1aa));const _0x500633=buildCustomPageRuntimeUrl(_0x15f9bb[_0x40b0aa(0x1a9)],_0x15f9bb[_0x40b0aa(0x1c1)]);return _0x500633?_0x39f4a8[_0x40b0aa(0x1b8)]=_0x500633:_0x39f4a8[_0x40b0aa(0x1a4)][_0x40b0aa(0x1b3)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0x39f4a8,'message':_0x40b0aa(0x1b0)+_0x31871b[_0x40b0aa(0x1bc)]+'.'};}};function a146_0x3d38(_0x307874,_0x5209cd){_0x307874=_0x307874-0x1a4;const _0x375e89=a146_0x375e();let _0x3d38dc=_0x375e89[_0x307874];return _0x3d38dc;}function readInput(_0x34a442){const _0x20be51=readCustomPageId(_0x34a442),_0x3ef8c4=_0x34a442['str']('remark')['trim']();return{'pageId':_0x20be51,..._0x3ef8c4?{'remark':_0x3ef8c4}:{}};}function buildMutationData(_0x178ee8,_0x855b43=![],_0x455664,_0x332cd5){const _0x27567f=a146_0x274c57;return{'operation':_0x27567f(0x1c0),'selector':{'pageId':_0x178ee8['pageId']},'before':null,'after':{'pageId':_0x178ee8[_0x27567f(0x1bc)],'status':'FORMAL'},'dryRun':!_0x855b43,'request':_0x178ee8,..._0x455664?{'pageUrl':_0x455664}:{},..._0x332cd5?{'editPageUrl':_0x332cd5}:{},'warnings':[]};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x573459,_0x1120b8){const _0x48dfff=a147_0x3eaf,_0x15b686=_0x573459();while(!![]){try{const _0x27c2a3=parseInt(_0x48dfff(0xed))/0x1+-parseInt(_0x48dfff(0xe6))/0x2*(parseInt(_0x48dfff(0xe7))/0x3)+-parseInt(_0x48dfff(0xeb))/0x4+parseInt(_0x48dfff(0xde))/0x5+parseInt(_0x48dfff(0xf4))/0x6*(-parseInt(_0x48dfff(0xe4))/0x7)+-parseInt(_0x48dfff(0xe0))/0x8+parseInt(_0x48dfff(0xf2))/0x9*(parseInt(_0x48dfff(0xd9))/0xa);if(_0x27c2a3===_0x1120b8)break;else _0x15b686['push'](_0x15b686['shift']());}catch(_0x2791b1){_0x15b686['push'](_0x15b686['shift']());}}}(a147_0x54d3,0xd0afb));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getEnv,isProduction}from'../../../constant/env.js';import{getAppBaseUrl}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x53cbdb){const _0x3df94c=a147_0x3eaf;return _0x53cbdb?.[_0x3df94c(0xef)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x4e3d6a,_0x4be1bb){const _0x46603d=a147_0x3eaf,_0x1d4f87=trimOptional(_0x4e3d6a),_0x1da18e=trimOptional(_0x4be1bb);if(!_0x1d4f87||!_0x1da18e)return undefined;const _0x5809ea=isProduction(getEnv())?_0x1d4f87+_0x46603d(0xdb):_0x1d4f87+_0x46603d(0xd3);return'https://'+_0x5809ea+'/'+encodeURIComponent(_0x1da18e);}export function buildCustomPageDevelopmentUrl(_0x3c23da,_0x2f2b0c){const _0xb639e5=trimOptional(_0x3c23da),_0x53f322=trimOptional(_0x2f2b0c);if(!_0xb639e5||!_0x53f322)return undefined;return getAppBaseUrl(_0xb639e5)+'/pages/'+encodeURIComponent(_0x53f322);}export async function resolveCustomPageDevelopmentUrl(_0x2493fe,_0x13a6a7,_0x1d41d7){const _0x55903f=a147_0x3eaf,_0x339b5a=trimOptional(_0x2493fe);if(!_0x339b5a)return undefined;try{const _0x5bcdd3=(await fetchMenuSnapshot(_0x339b5a,_0x1d41d7))['menus'][_0x55903f(0xe2)](_0x2a934b=>_0x2a934b['type']===_0x55903f(0xec)&&_0x2a934b[_0x55903f(0xe1)]===_0x13a6a7);return buildCustomPageDevelopmentUrl(_0x339b5a,_0x5bcdd3?.['path']);}catch{return undefined;}}function a147_0x54d3(){const _0x3d48c7=['3374060zjtnol','react','979939IvdtBE','/app','trim','parse','message','687681XSVXPG','https://app.lovrabet.com','4493118TITWKU','some','isArray','join','.daily.lovrabet.com','validation','string','isInteger','flagMissing','--page-content\x20must\x20be\x20a\x20JSON\x20object\x20whose\x20values\x20are\x20file\x20content\x20strings.','150hgajVi','num','.app.lovrabet.com','page-content','values','8103620KqVnNb','map','519824AnIiZM','pageId','find','/ide/','14LplUJM','--id\x20must\x20be\x20a\x20positive\x20integer.','24EdlHOp','121455CMPAME','object','file','/web-app/app'];a147_0x54d3=function(){return _0x3d48c7;};return a147_0x54d3();}export function buildCustomPageEditUrl(_0x56e712,_0xd2cd54){const _0x59a794=a147_0x3eaf,_0x2b8542=trimOptional(_0x56e712);if(!_0x2b8542)return;const _0xf6eda4=trimOptional(_0xd2cd54==null?undefined:String(_0xd2cd54));if(!_0xf6eda4)return;const _0x2b4b3f=isProduction(getEnv())?_0x59a794(0xee):_0x59a794(0xea),_0x3cb10c=isProduction(getEnv())?_0x59a794(0xf3):'https://daily.lovrabet.com';return''+_0x3cb10c+_0x2b4b3f+'/'+encodeURIComponent(_0x2b8542)+_0x59a794(0xe3)+encodeURIComponent(_0xf6eda4);}function a147_0x3eaf(_0x44d545,_0x2143d1){_0x44d545=_0x44d545-0xd1;const _0x54d3c7=a147_0x54d3();let _0x3eafef=_0x54d3c7[_0x44d545];return _0x3eafef;}export function parseCustomPageContent(_0x590fce){const _0x2f26c5=a147_0x3eaf;if(!_0x590fce[_0x2f26c5(0xef)]())throw CliErrors[_0x2f26c5(0xd7)](_0x2f26c5(0xdc));let _0x5ab0fb;try{_0x5ab0fb=JSON[_0x2f26c5(0xf0)](_0x590fce);}catch{throw CliErrors['validation']('--page-content\x20must\x20be\x20valid\x20JSON.');}if(typeof _0x5ab0fb!==_0x2f26c5(0xe8)||_0x5ab0fb===null||Array[_0x2f26c5(0xd1)](_0x5ab0fb)||Object[_0x2f26c5(0xdd)](_0x5ab0fb)[_0x2f26c5(0xf5)](_0x1d9ba1=>typeof _0x1d9ba1!==_0x2f26c5(0xd5)))throw CliErrors['validation'](_0x2f26c5(0xd8));return _0x5ab0fb;}export async function validateCustomPageContent(_0x245a8e){const _0xa0ee1f=a147_0x3eaf,_0x5f0eb0=await validateCustomPageSourceFiles(_0x245a8e);if(_0x5f0eb0['length']>0x0)throw CliErrors[_0xa0ee1f(0xd4)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x5f0eb0[_0xa0ee1f(0xdf)](_0x5d7eb5=>_0x5d7eb5[_0xa0ee1f(0xe9)]+':\x20'+_0x5d7eb5[_0xa0ee1f(0xf1)])[_0xa0ee1f(0xd2)](';\x20'));}export function readCustomPageId(_0x355f89){const _0x3af066=a147_0x3eaf,_0x2b60ef=_0x355f89[_0x3af066(0xda)]('id');if(!Number[_0x3af066(0xd6)](_0x2b60ef)||_0x2b60ef<=0x0)throw CliErrors[_0x3af066(0xd4)](_0x3af066(0xe5));return _0x2b60ef;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a148_0x10fb(_0x17f091,_0x44e736){_0x17f091=_0x17f091-0x12f;const _0x440bf4=a148_0x440b();let _0x10fbdd=_0x440bf4[_0x17f091];return _0x10fbdd;}function a148_0x440b(){const _0x5065a2=['babel','map','3454194snhUma','3457380sDWcrZ','message','filter','9237459TfZUOh','2355060rYLFUS','endsWith','find','819459LKHprr','typescript','all','6052095tENvsC','toLowerCase','some','entries','.tsx','415968RbNVBV','page-content','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','192CuAqht','4CIJnVt'];a148_0x440b=function(){return _0x5065a2;};return a148_0x440b();}const a148_0x13248b=a148_0x10fb;(function(_0x7ab7bb,_0x560f92){const _0x4fbe1a=a148_0x10fb,_0x4b5e09=_0x7ab7bb();while(!![]){try{const _0x4a9cf7=parseInt(_0x4fbe1a(0x139))/0x1*(parseInt(_0x4fbe1a(0x13d))/0x2)+-parseInt(_0x4fbe1a(0x145))/0x3+parseInt(_0x4fbe1a(0x141))/0x4+parseInt(_0x4fbe1a(0x134))/0x5+-parseInt(_0x4fbe1a(0x140))/0x6+parseInt(_0x4fbe1a(0x144))/0x7+-parseInt(_0x4fbe1a(0x13c))/0x8*(parseInt(_0x4fbe1a(0x131))/0x9);if(_0x4a9cf7===_0x560f92)break;else _0x4b5e09['push'](_0x4b5e09['shift']());}catch(_0x4b2cc2){_0x4b5e09['push'](_0x4b5e09['shift']());}}}(a148_0x440b,0xa61ca));import{format}from'prettier';const SOURCE_PARSERS={'.js':a148_0x13248b(0x13e),'.jsx':a148_0x13248b(0x13e),'.ts':a148_0x13248b(0x132),'.tsx':a148_0x13248b(0x132)},CUSTOM_PAGE_EXTENSIONS=['.jsx',a148_0x13248b(0x138)];export async function validateCustomPageSourceFiles(_0x499bca){const _0x31378c=a148_0x13248b,_0x3a7867=Object[_0x31378c(0x137)](_0x499bca)['filter'](([_0xee3e83])=>getParser(_0xee3e83));if(!_0x3a7867[_0x31378c(0x136)](([_0x8757ee])=>isReactSourceFile(_0x8757ee)))return[{'file':_0x31378c(0x13a),'message':_0x31378c(0x13b)}];const _0x44bf88=await Promise[_0x31378c(0x133)](_0x3a7867[_0x31378c(0x13f)](async([_0x2cedb2,_0x2a60fe])=>{const _0x2f3e89=_0x31378c;try{return await format(_0x2a60fe,{'parser':getParser(_0x2cedb2)}),undefined;}catch(_0x111c99){return{'file':_0x2cedb2,'message':_0x111c99 instanceof Error?_0x111c99[_0x2f3e89(0x142)]:String(_0x111c99)};}}));return _0x44bf88[_0x31378c(0x143)](_0x544114=>_0x544114!==undefined);}function getParser(_0x46f73a){const _0x56cec1=a148_0x13248b,_0x580309=_0x46f73a['trim']()['toLowerCase']();return Object['entries'](SOURCE_PARSERS)[_0x56cec1(0x130)](([_0xb99b4f])=>_0x580309['endsWith'](_0xb99b4f))?.[0x1];}function isReactSourceFile(_0x1d8797){const _0x1e8ad7=a148_0x13248b,_0x1d1c4d=_0x1d8797['trim']()[_0x1e8ad7(0x135)]();return CUSTOM_PAGE_EXTENSIONS['some'](_0x55a4f0=>_0x1d1c4d[_0x1e8ad7(0x12f)](_0x55a4f0));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a149_0x53c6(_0x200326,_0x53ed8f){_0x200326=_0x200326-0x174;const _0x292f03=a149_0x292f();let _0x53c614=_0x292f03[_0x200326];return _0x53c614;}function a149_0x292f(){const _0x538079=['6489966QytJCH','en-US','tr-TR','ja-JP',':\x20{\x0a\x20\x20\x20\x20','Ini\x20adalah\x20sebuah\x20halaman\x20dasar.\x20Anda\x20dapat\x20mengembangkan\x20ini.','zh-CN','19758790rAezyL','Bu\x20bir\x20temel\x20sayfa\x20şablonudur.\x20Bu\x20temaplana\x20dayanarak\x20geliştirilebilir.','8VKJLZX','8eLaJOc','1880SWlBpk','11GvwpMJ','This\x20is\x20a\x20basic\x20page\x20template,\x20you\x20can\x20develop\x20based\x20on\x20it.','88633ZqcGao','1780671vPYhlh','join','id-ID','stringify','import\x20React\x20from\x20\x27react\x27;\x0aimport\x20{\x20Card,\x20Typography\x20}\x20from\x20\x27antd\x27;\x0aimport\x20{\x20useSdkClient,\x20useI18n,\x20useNavigate,\x20useLocation\x20}\x20from\x20\x22@/context/app-context\x22;\x0aimport\x20{\x20locales\x20}\x20from\x20\x27../locales\x27;\x0aimport\x20\x27./index.css\x27;\x0a\x0aconst\x20App\x20=\x20()\x20=>\x20{\x0a\x20\x20const\x20client\x20=\x20useSdkClient();\x20//\x20client\x20可以用于获取其他数据集的数据\x0a\x20\x20const\x20$i18n\x20=\x20useI18n();\x20//\x20国际化多语言\x20i18n\x20实例\x0a\x20\x20const\x20navigate\x20=\x20useNavigate();\x20//\x20react-router\x20navigate\x20导航实例\x0a\x20\x20const\x20location\x20=\x20useLocation();\x20//\x20浏览器\x20location\x20实例\x0a\x0a\x20\x20$i18n.addLocale(locales);\x20//\x20添加多语言词包\x0a\x0a\x20\x20return\x20(\x0a\x20\x20\x20\x20<div\x20className=\x22page-container\x22>\x0a\x20\x20\x20\x20\x20\x20<Card>\x0a\x20\x20\x20\x20\x20\x20\x20\x20<Typography>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Title\x20level={2}>{','.page-container\x20{\x0a\x20\x20padding:\x2024px;\x0a\x20\x20background:\x20#f0f2f5;\x0a\x20\x20min-height:\x20100vh;\x0a}\x0a','pageDescription','\x0a};\x0a','96WPIZrC','1695537ccyWwl','export\x20const\x20locales\x20=\x20{\x0a','map','2089444hJKSUB'];a149_0x292f=function(){return _0x538079;};return a149_0x292f();}(function(_0x3f777e,_0x58558c){const _0x4f4e64=a149_0x53c6,_0x3e5640=_0x3f777e();while(!![]){try{const _0x1408ba=parseInt(_0x4f4e64(0x17b))/0x1*(parseInt(_0x4f4e64(0x177))/0x2)+parseInt(_0x4f4e64(0x17c))/0x3+parseInt(_0x4f4e64(0x188))/0x4+parseInt(_0x4f4e64(0x178))/0x5*(parseInt(_0x4f4e64(0x184))/0x6)+parseInt(_0x4f4e64(0x189))/0x7+-parseInt(_0x4f4e64(0x176))/0x8*(-parseInt(_0x4f4e64(0x185))/0x9)+parseInt(_0x4f4e64(0x174))/0xa*(-parseInt(_0x4f4e64(0x179))/0xb);if(_0x1408ba===_0x58558c)break;else _0x3e5640['push'](_0x3e5640['shift']());}catch(_0x2cba87){_0x3e5640['push'](_0x3e5640['shift']());}}}(a149_0x292f,0x966b6));function buildIndexFile(_0x3482b6){const _0x529733=a149_0x53c6;return _0x529733(0x180)+JSON[_0x529733(0x17f)](_0x3482b6)+'}</Typography.Title>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20<Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20{$i18n.t(\x27pageDescription\x27,\x20\x27这是一个基础页面模板,你可以在此基础上进行开发。\x27)}\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20</Typography.Paragraph>\x0a\x20\x20\x20\x20\x20\x20\x20\x20</Typography>\x0a\x20\x20\x20\x20\x20\x20</Card>\x0a\x20\x20\x20\x20</div>\x0a\x20\x20);\x0a};\x0a\x0aexport\x20default\x20App;\x0a';}function buildStyleFile(){const _0xa025b9=a149_0x53c6;return _0xa025b9(0x181);}function buildLocalesFile(_0xa19c19){const _0x36a21c=a149_0x53c6,_0x3036e7=_0xa19c19[_0x36a21c(0x187)](_0x1e0c45=>{const _0x2c5ee8=_0x36a21c;let _0x179254='';switch(_0x1e0c45){case _0x2c5ee8(0x18f):_0x179254='这是一个基础页面模板,你可以在此基础上进行开发。';break;case _0x2c5ee8(0x18a):_0x179254=_0x2c5ee8(0x17a);break;case _0x2c5ee8(0x18c):_0x179254='これは基本ページテンプレートです。あなたは、これに基づいて開発できます。';break;case _0x2c5ee8(0x18b):_0x179254=_0x2c5ee8(0x175);break;case _0x2c5ee8(0x17e):_0x179254=_0x2c5ee8(0x18e);break;default:_0x179254=_0x2c5ee8(0x17a);}return'\x20\x20'+JSON['stringify'](_0x1e0c45)+_0x2c5ee8(0x18d)+JSON[_0x2c5ee8(0x17f)](_0x2c5ee8(0x182))+':\x20'+JSON['stringify'](_0x179254)+',\x0a\x20\x20}';})[_0x36a21c(0x17d)](',\x0a');return _0x36a21c(0x186)+_0x3036e7+_0x36a21c(0x183);}export function buildInitialFiles(_0x2cb667,_0xab9248){return{'src/app/index.jsx':buildIndexFile(_0x2cb667),'src/app/index.css':buildStyleFile(),'src/locales/index.js':buildLocalesFile(_0xab9248)};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a150_0x4d76ea=a150_0xd824;(function(_0x56ef1d,_0x5de199){const _0x2f3da2=a150_0xd824,_0x269839=_0x56ef1d();while(!![]){try{const _0xeed212=parseInt(_0x2f3da2(0x11d))/0x1*(-parseInt(_0x2f3da2(0x11b))/0x2)+-parseInt(_0x2f3da2(0x124))/0x3+parseInt(_0x2f3da2(0x12b))/0x4+-parseInt(_0x2f3da2(0x129))/0x5+parseInt(_0x2f3da2(0x121))/0x6*(parseInt(_0x2f3da2(0x133))/0x7)+-parseInt(_0x2f3da2(0x135))/0x8+parseInt(_0x2f3da2(0x123))/0x9;if(_0xeed212===_0x5de199)break;else _0x269839['push'](_0x269839['shift']());}catch(_0x2c5cfb){_0x269839['push'](_0x269839['shift']());}}}(a150_0x35ce,0x52ee8));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,parseCustomPageContent,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a150_0xd824(_0x3604be,_0x41e90d){_0x3604be=_0x3604be-0x118;const _0x35ce3c=a150_0x35ce();let _0xd82468=_0x35ce3c[_0x3604be];return _0xd82468;}function a150_0x35ce(){const _0x3e4d68=['page','864704ybqZts','page.custom-update','string','POST','2aIrDJZ','Updated\x20Custom\x20Page\x20','528373VEtcid','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','isInteger','page-content','755670XFrZAs','custom-update','4640724TJitFK','491439nHyGcd','pageId','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','str','newVersion','2539175bJuZGE','pageContent','2009744EefbAM','appcode','appCode','write','trim','compress','cookie','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','35mzvBeb'];a150_0x35ce=function(){return _0x3e4d68;};return a150_0x35ce();}export const pageCustomUpdate={'service':a150_0x4d76ea(0x134),'command':a150_0x4d76ea(0x122),'description':'Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','risk':a150_0x4d76ea(0x12e),'defaultOutputFormat':a150_0x4d76ea(0x130),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':'Custom\x20Page\x20ID'},{'name':'page-content','type':a150_0x4d76ea(0x119),'required':!![],'description':'Complete\x20page\x20files\x20as\x20JSON'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x464a1d){const _0x21a6df=a150_0x4d76ea;readCustomPageId(_0x464a1d),await validateCustomPageContent(parseCustomPageContent(_0x464a1d[_0x21a6df(0x127)](_0x21a6df(0x120))));},async 'dryRun'(_0x3a780c){const _0x5d76ec=a150_0x4d76ea,_0x2b636a=await readInput(_0x3a780c);return{'method':_0x5d76ec(0x11a),'url':'/smartapi/webcode/page/update/content','body':{'id':_0x2b636a['pageId'],'codeContent':_0x2b636a[_0x5d76ec(0x12a)]},'description':_0x5d76ec(0x132)+_0x2b636a[_0x5d76ec(0x125)]+'.'};},async 'execute'(_0x152c55){const _0x452f8c=a150_0x4d76ea,_0x4bfb2f=await readInput(_0x152c55),_0x119aff=await updateCustomPageContent({'pageId':_0x4bfb2f[_0x452f8c(0x125)],'pageContent':_0x4bfb2f[_0x452f8c(0x12a)]});if(!Number[_0x452f8c(0x11f)](_0x119aff['newVersion'])||_0x119aff[_0x452f8c(0x128)]<=0x0)throw CliErrors['apiError']('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x34a1fe=buildCustomPageEditUrl(_0x4bfb2f[_0x452f8c(0x12d)],_0x4bfb2f[_0x452f8c(0x125)]),_0x587af7=await resolveCustomPageDevelopmentUrl(_0x4bfb2f['appCode'],_0x4bfb2f['pageId'],_0x152c55[_0x452f8c(0x131)]);return{'ok':!![],'data':buildMutationData(_0x4bfb2f,_0x119aff,_0x587af7,_0x34a1fe,_0x587af7?[]:[_0x452f8c(0x126)]),'message':_0x452f8c(0x11c)+_0x4bfb2f[_0x452f8c(0x125)]+'.'};}};async function readInput(_0x27e716){const _0x5c5d00=a150_0x4d76ea,_0x386dfa=readCustomPageId(_0x27e716),_0x5a27f6=_0x27e716[_0x5c5d00(0x127)](_0x5c5d00(0x12c))[_0x5c5d00(0x12f)]()||(await getCustomPageSource(_0x386dfa))[_0x5c5d00(0x12d)]?.[_0x5c5d00(0x12f)]();if(!_0x5a27f6)throw CliErrors['validation'](_0x5c5d00(0x11e)+_0x386dfa+'.');return{'appCode':_0x5a27f6,'pageId':_0x386dfa,'pageContent':parseCustomPageContent(_0x27e716[_0x5c5d00(0x127)](_0x5c5d00(0x120)))};}function buildMutationData(_0x59d0dd,_0x93132c,_0x4c67b5,_0x41eeb4,_0x3a81ac=[]){const _0x36d89b=a150_0x4d76ea;return{'operation':_0x36d89b(0x118),'selector':{'appCode':_0x59d0dd[_0x36d89b(0x12d)],'pageId':_0x59d0dd['pageId']},'before':null,'after':{'pageId':_0x93132c?.['pageId']??_0x59d0dd[_0x36d89b(0x125)],'version':_0x93132c?.['newVersion']??null,'pageContent':_0x59d0dd[_0x36d89b(0x12a)]},'dryRun':_0x93132c===undefined,'request':_0x59d0dd,..._0x4c67b5?{'pageUrl':_0x4c67b5}:{},..._0x41eeb4?{'editPageUrl':_0x41eeb4}:{},'warnings':_0x3a81ac};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a151_0x214b6f=a151_0x2ede;(function(_0x2e9d1f,_0x1e9331){const _0x5e35a9=a151_0x2ede,_0x5eff7b=_0x2e9d1f();while(!![]){try{const _0x6e4e03=-parseInt(_0x5e35a9(0x1c2))/0x1+parseInt(_0x5e35a9(0x1d3))/0x2*(parseInt(_0x5e35a9(0x1c9))/0x3)+-parseInt(_0x5e35a9(0x1b8))/0x4+-parseInt(_0x5e35a9(0x1bd))/0x5+-parseInt(_0x5e35a9(0x1c4))/0x6+-parseInt(_0x5e35a9(0x1c6))/0x7*(-parseInt(_0x5e35a9(0x1bc))/0x8)+-parseInt(_0x5e35a9(0x1c8))/0x9*(-parseInt(_0x5e35a9(0x1d0))/0xa);if(_0x6e4e03===_0x1e9331)break;else _0x5eff7b['push'](_0x5eff7b['shift']());}catch(_0x5a1088){_0x5eff7b['push'](_0x5eff7b['shift']());}}}(a151_0x490e,0x1cab1));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a151_0x2ede(_0x44342f,_0x5c149f){_0x44342f=_0x44342f-0x1b8;const _0x490eef=a151_0x490e();let _0x2ede83=_0x490eef[_0x44342f];return _0x2ede83;}export const pageDataListStatus={'service':a151_0x214b6f(0x1ba),'command':a151_0x214b6f(0x1c0),'description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a151_0x214b6f(0x1bf),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a151_0x214b6f(0x1c5),'type':a151_0x214b6f(0x1ce),'description':a151_0x214b6f(0x1bb)}],async 'validate'(_0x4d48e1){validateDatasetSelector(_0x4d48e1);},async 'dryRun'(_0x3540d9){const _0x38e715=a151_0x214b6f,_0x39d220=await loadDatasetDetailForPage(_0x3540d9);return{'method':_0x38e715(0x1cd),'url':_0x38e715(0x1cf)+_0x39d220[_0x38e715(0x1cc)]+_0x38e715(0x1d1)+encodeURIComponent(_0x3540d9[_0x38e715(0x1d2)]),'description':serializeDryRunDescription({'dataset':{'id':_0x39d220['id'],'code':_0x39d220[_0x38e715(0x1cc)],'name':_0x39d220[_0x38e715(0x1cb)]},'action':_0x38e715(0x1c3)})};},async 'execute'(_0x57ee75){const _0x2063f3=a151_0x214b6f,_0x662107=await loadDatasetDetailForPage(_0x57ee75),_0x9ef92d=await loadDataListPageStatusForGenerate(_0x57ee75,_0x662107[_0x2063f3(0x1cc)]),_0x5424c8=getUndeletedRelatedPages(_0x662107),_0x4187ef=assessDataListPageState(_0x662107['code'],_0x9ef92d,{'fallbackUndeletedPages':_0x5424c8});return{'ok':!![],'data':{'datasetCode':_0x662107['code'],'precheckSource':_0x9ef92d?.[_0x2063f3(0x1b9)]??_0x2063f3(0x1c7),'status':_0x4187ef['status'],'manualResolutionRequired':_0x4187ef['manualResolutionRequired'],'nextAction':_0x4187ef[_0x2063f3(0x1c1)],'dataListPageStatus':_0x9ef92d,'relatedPages':{'total':_0x662107[_0x2063f3(0x1be)][_0x2063f3(0x1ca)],'undeletedCount':_0x5424c8[_0x2063f3(0x1ca)]}}};}};function a151_0x490e(){const _0x27f5a9=['895938WIviSg','alias','724493lqvTki','related-pages-fallback','4415157ItkDYm','397653DDmzcz','length','name','code','GET','string','/smartapi/lovrabet/dataset/','10vfHCnZ','/standard-page-status?appCode=','appCode','2NvqGpy','542992viRZSg','source','page','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','16DNXBwD','1016085GEljJD','relatedPages','read','data-list-status','nextAction','224409eUDXBW','query-data-list-status'];a151_0x490e=function(){return _0x27f5a9;};return a151_0x490e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a152_0x101f(){const _0x3fead6=['dataListPageStatus','已提交生成任务','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','precheck','bool','code','414690ntiWed','/smartapi/lovrabet/dataset/','CRUD_PAGE_SET','currentStep','PARTIAL_SUCCESS','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','复用已有生成任务','dataset','fieldCount','1097950PpDFgz','page','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','dryRun','related-pages-fallback','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','taskId','write','241200SjWiPM','generate-start','allowGenerate','compress','manualResolutionRequired','54oZnsuV','number','10265nfSXlL','operationId','DATA_LIST','/generate-standard-pages/start','POST','message','24UKVIGj','status','161343olJxrw','boolean','clientOperationId','alias','reused','145386XbUUGH','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','nextAction','99140HkQbRp','276tXKxvf','apply','appCode','page-pattern'];a152_0x101f=function(){return _0x3fead6;};return a152_0x101f();}function a152_0x4b02(_0x2a60e3,_0x394026){_0x2a60e3=_0x2a60e3-0xb8;const _0x101fb3=a152_0x101f();let _0x4b02a1=_0x101fb3[_0x2a60e3];return _0x4b02a1;}const a152_0x39c5a0=a152_0x4b02;(function(_0x580eaf,_0x41cc61){const _0x4ee53c=a152_0x4b02,_0x196372=_0x580eaf();while(!![]){try{const _0x5499ee=-parseInt(_0x4ee53c(0xc0))/0x1+-parseInt(_0x4ee53c(0xe2))/0x2+parseInt(_0x4ee53c(0xcf))/0x3+parseInt(_0x4ee53c(0xd8))/0x4*(parseInt(_0x4ee53c(0xc7))/0x5)+parseInt(_0x4ee53c(0xd4))/0x6+-parseInt(_0x4ee53c(0xeb))/0x7*(-parseInt(_0x4ee53c(0xcd))/0x8)+parseInt(_0x4ee53c(0xc5))/0x9*(parseInt(_0x4ee53c(0xd7))/0xa);if(_0x5499ee===_0x41cc61)break;else _0x196372['push'](_0x196372['shift']());}catch(_0x5e0b79){_0x196372['push'](_0x196372['shift']());}}}(a152_0x101f,0x49866));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a152_0x39c5a0(0xec),'command':a152_0x39c5a0(0xc1),'description':a152_0x39c5a0(0xbd),'risk':a152_0x39c5a0(0xbf),'defaultOutputFormat':a152_0x39c5a0(0xc3),'rejectedFlags':[{'name':'page-type','message':a152_0x39c5a0(0xbc),'hint':a152_0x39c5a0(0xd5)},{'name':a152_0x39c5a0(0xdb),'message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','hint':a152_0x39c5a0(0xb8)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a152_0x39c5a0(0xd2),'type':'string','description':a152_0x39c5a0(0xe7)},{'name':a152_0x39c5a0(0xd9),'type':a152_0x39c5a0(0xd0),'description':a152_0x39c5a0(0xde)}],async 'validate'(_0xa3050b){validateDatasetSelector(_0xa3050b);},async 'dryRun'(_0x3a1f50){const _0x27084d=a152_0x39c5a0,_0x39679a=await prepare(_0x3a1f50);return{'method':_0x27084d(0xcb),'url':_0x27084d(0xe3)+_0x39679a['dataset'][_0x27084d(0xe1)]+_0x27084d(0xca),'body':{'appCode':_0x3a1f50['appCode'],'clientOperationId':_0x39679a['clientOperationId']},'description':serializeDryRunDescription({'dataset':{'id':_0x39679a['dataset']['id'],'code':_0x39679a[_0x27084d(0xe9)][_0x27084d(0xe1)],'name':_0x39679a[_0x27084d(0xe9)]['name'],'fieldCount':_0x39679a['dataset'][_0x27084d(0xea)]},'precheckSource':_0x39679a['dataListPageStatus']?.['source']??_0x27084d(0xba),'action':'generate-start','clientOperationId':_0x39679a[_0x27084d(0xd1)],'plannedStatus':_0x39679a[_0x27084d(0xdf)][_0x27084d(0xce)],'reason':_0x39679a['precheck']['message']})};},async 'execute'(_0x5785af){const _0x293aa6=a152_0x39c5a0;if(!_0x5785af[_0x293aa6(0xe0)](_0x293aa6(0xd9))){const _0xa60015=await pageGenerateStart[_0x293aa6(0xb9)](_0x5785af);return{'ok':!![],'message':_0x293aa6(0xbb),'data':_0xa60015};}const _0x254e58=await prepare(_0x5785af);if(!_0x254e58[_0x293aa6(0xdf)][_0x293aa6(0xc2)])return{'ok':![],'message':_0x254e58[_0x293aa6(0xdf)][_0x293aa6(0xcc)],'data':{'datasetCode':_0x254e58[_0x293aa6(0xe9)][_0x293aa6(0xe1)],'pageType':_0x293aa6(0xc9),'pagePattern':_0x293aa6(0xe4),'clientOperationId':_0x254e58[_0x293aa6(0xd1)],'precheckSource':_0x254e58[_0x293aa6(0xdc)]?.['source']??_0x293aa6(0xba),'status':_0x254e58[_0x293aa6(0xdf)][_0x293aa6(0xce)],'manualResolutionRequired':_0x254e58['precheck'][_0x293aa6(0xc4)],'nextAction':_0x254e58[_0x293aa6(0xdf)][_0x293aa6(0xd6)],'query':{'command':buildDataListPageStatusQueryCommand(_0x254e58[_0x293aa6(0xe9)]['code'],_0x5785af[_0x293aa6(0xda)])},'dataListPageStatus':_0x254e58[_0x293aa6(0xdc)]}};const _0x4d0111=await startGenerateDataListPages(_0x5785af['appCode'],_0x254e58[_0x293aa6(0xe9)]['code'],{'clientOperationId':_0x254e58[_0x293aa6(0xd1)]}),_0x10669b=_0x4d0111['status']==='SUCCESS'||_0x4d0111[_0x293aa6(0xce)]===_0x293aa6(0xe6)?await loadDataListPageStatusForGenerate(_0x5785af,_0x254e58[_0x293aa6(0xe9)]['code']):null,_0x39931b=assessGenerateOperationState(_0x254e58['dataset']['code'],_0x4d0111['status'],_0x10669b);return{'ok':!![],'message':_0x4d0111['reused']?_0x293aa6(0xe8):_0x293aa6(0xdd),'data':{'datasetCode':_0x254e58[_0x293aa6(0xe9)][_0x293aa6(0xe1)],'appCode':_0x5785af[_0x293aa6(0xda)],'pageType':_0x293aa6(0xc9),'pagePattern':'CRUD_PAGE_SET','taskId':_0x4d0111['taskId']??null,'operationId':_0x4d0111[_0x293aa6(0xc8)]??null,'clientOperationId':_0x254e58[_0x293aa6(0xd1)],'jobStatus':_0x4d0111['status']??null,'progressRate':typeof _0x4d0111['progressRate']===_0x293aa6(0xc6)?_0x4d0111['progressRate']:null,'currentStep':_0x4d0111[_0x293aa6(0xe5)]??null,'reused':_0x4d0111[_0x293aa6(0xd3)]===!![],'status':_0x39931b[_0x293aa6(0xce)],'manualResolutionRequired':_0x39931b[_0x293aa6(0xc4)],'nextAction':_0x39931b[_0x293aa6(0xd6)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x254e58[_0x293aa6(0xe9)][_0x293aa6(0xe1)],{'appCode':_0x5785af[_0x293aa6(0xda)],'taskId':_0x4d0111[_0x293aa6(0xbe)],'operationId':_0x4d0111[_0x293aa6(0xc8)],'clientOperationId':_0x254e58[_0x293aa6(0xd1)]})},'dataListPageStatus':_0x10669b}};}};async function prepare(_0x354956){const _0x20cdd9=a152_0x39c5a0,_0x3f55ea=await loadDatasetDetailForPage(_0x354956),_0x3f10ca=await loadDataListPageStatusForGenerate(_0x354956,_0x3f55ea[_0x20cdd9(0xe1)]),_0x17fdc8=getUndeletedRelatedPages(_0x3f55ea);return{'dataset':_0x3f55ea,'dataListPageStatus':_0x3f10ca,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x3f55ea[_0x20cdd9(0xe1)],_0x3f10ca,{'fallbackUndeletedPages':_0x17fdc8})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0xf310b=a153_0x164a;function a153_0x1bbf(){const _0x3ffc71=['/smartapi/lovrabet/dataset/','operation-id','3qSZplZ','client-operation-id','PARTIAL_SUCCESS','alias','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','message','progressRate','task-id','page','operationId','taskId','currentStep','toString','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','generate-status','string','name','466731oliXpG','errorMsg','2FxoRlu','40usTzdz','code','702611SOYfZV','read','query-generate-operation-status','str','121646LiyZDb','result','SUCCESS','compress','nextAction','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','clientOperationId','1571975JRcXcV','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','1250572dLxQWg','GET','set','number','status','1093242AvSYcz','operation_failed','appCode','/generate-standard-pages/status?','6755660RfHDcW'];a153_0x1bbf=function(){return _0x3ffc71;};return a153_0x1bbf();}(function(_0x117e1e,_0x1948be){const _0x2c9ba1=a153_0x164a,_0x2d7956=_0x117e1e();while(!![]){try{const _0x55a792=-parseInt(_0x2c9ba1(0x15c))/0x1*(-parseInt(_0x2c9ba1(0x163))/0x2)+-parseInt(_0x2c9ba1(0x178))/0x3*(parseInt(_0x2c9ba1(0x16c))/0x4)+parseInt(_0x2c9ba1(0x16a))/0x5+-parseInt(_0x2c9ba1(0x171))/0x6+-parseInt(_0x2c9ba1(0x15f))/0x7+parseInt(_0x2c9ba1(0x15d))/0x8*(-parseInt(_0x2c9ba1(0x15a))/0x9)+parseInt(_0x2c9ba1(0x175))/0xa;if(_0x55a792===_0x1948be)break;else _0x2d7956['push'](_0x2d7956['shift']());}catch(_0x1e7a7f){_0x2d7956['push'](_0x2d7956['shift']());}}}(a153_0x1bbf,0x3ec41));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';function a153_0x164a(_0x589610,_0x3b9a42){_0x589610=_0x589610-0x150;const _0x1bbfbf=a153_0x1bbf();let _0x164a16=_0x1bbfbf[_0x589610];return _0x164a16;}import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a153_0xf310b(0x151),'command':a153_0xf310b(0x157),'description':a153_0xf310b(0x168),'risk':a153_0xf310b(0x160),'defaultOutputFormat':a153_0xf310b(0x166),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a153_0xf310b(0x17b),'type':a153_0xf310b(0x158),'description':a153_0xf310b(0x16b)},{'name':'task-id','type':a153_0xf310b(0x158),'description':a153_0xf310b(0x156)},{'name':a153_0xf310b(0x177),'type':'string','description':'Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start'},{'name':a153_0xf310b(0x179),'type':'string','description':a153_0xf310b(0x17c)}],async 'validate'(_0x2a148a){validateDatasetSelector(_0x2a148a),validateGenerateOperationSelector(_0x2a148a);},async 'dryRun'(_0x1990d2){const _0x2036d0=a153_0xf310b,_0xb505ff=await loadDatasetDetailForPage(_0x1990d2),_0x564cf0=_0x1990d2[_0x2036d0(0x162)]('task-id'),_0x341a55=_0x1990d2[_0x2036d0(0x162)](_0x2036d0(0x177)),_0x381695=_0x1990d2[_0x2036d0(0x162)](_0x2036d0(0x179)),_0x49c3c1=new URLSearchParams({'appCode':_0x1990d2[_0x2036d0(0x173)]});return _0x564cf0&&_0x49c3c1[_0x2036d0(0x16e)](_0x2036d0(0x153),_0x564cf0),_0x341a55&&_0x49c3c1['set'](_0x2036d0(0x152),_0x341a55),_0x381695&&_0x49c3c1[_0x2036d0(0x16e)](_0x2036d0(0x169),_0x381695),{'method':_0x2036d0(0x16d),'url':_0x2036d0(0x176)+_0xb505ff[_0x2036d0(0x15e)]+_0x2036d0(0x174)+_0x49c3c1[_0x2036d0(0x155)](),'description':serializeDryRunDescription({'dataset':{'id':_0xb505ff['id'],'code':_0xb505ff[_0x2036d0(0x15e)],'name':_0xb505ff[_0x2036d0(0x159)]},'action':_0x2036d0(0x161),'taskId':_0x564cf0||undefined,'operationId':_0x341a55||undefined,'clientOperationId':_0x381695||undefined})};},async 'execute'(_0x1d4f51){const _0x2a69f7=a153_0xf310b,_0x1ba58a=await loadDatasetDetailForPage(_0x1d4f51),_0x23735a=_0x1d4f51[_0x2a69f7(0x162)](_0x2a69f7(0x150)),_0x2efb48=_0x1d4f51[_0x2a69f7(0x162)](_0x2a69f7(0x177)),_0x5cdf82=_0x1d4f51[_0x2a69f7(0x162)](_0x2a69f7(0x179)),_0x373c34=await getGenerateDataListPagesStatus(_0x1d4f51[_0x2a69f7(0x173)],_0x1ba58a[_0x2a69f7(0x15e)],{'taskId':_0x23735a||undefined,'operationId':_0x2efb48||undefined,'clientOperationId':_0x5cdf82||undefined}),_0x567a1a=_0x373c34[_0x2a69f7(0x170)]===_0x2a69f7(0x165)||_0x373c34[_0x2a69f7(0x170)]===_0x2a69f7(0x17a),_0x22bcc6=_0x567a1a?await loadDataListPageStatusForGenerate(_0x1d4f51,_0x1ba58a[_0x2a69f7(0x15e)]):null,_0x2acc8f=assessGenerateOperationState(_0x1ba58a[_0x2a69f7(0x15e)],_0x373c34[_0x2a69f7(0x170)],_0x22bcc6),_0x30cc08=_0x373c34[_0x2a69f7(0x153)]??_0x23735a??undefined,_0x1c2962=_0x373c34[_0x2a69f7(0x152)]??_0x2efb48??undefined,_0x23a58c=_0x373c34[_0x2a69f7(0x169)]??_0x5cdf82??undefined;return{'ok':!![],'message':_0x2acc8f[_0x2a69f7(0x170)]===_0x2a69f7(0x172)?_0x373c34['errorMsg']||_0x2acc8f[_0x2a69f7(0x17d)]:_0x2acc8f[_0x2a69f7(0x17d)],'data':{'datasetCode':_0x1ba58a[_0x2a69f7(0x15e)],'appCode':_0x1d4f51[_0x2a69f7(0x173)],'taskId':_0x30cc08,'operationId':_0x1c2962,'clientOperationId':_0x23a58c,'jobStatus':_0x373c34[_0x2a69f7(0x170)]??null,'progressRate':typeof _0x373c34[_0x2a69f7(0x17e)]===_0x2a69f7(0x16f)?_0x373c34['progressRate']:null,'currentStep':_0x373c34[_0x2a69f7(0x154)]??null,'errorMsg':_0x373c34[_0x2a69f7(0x15b)]??null,'status':_0x2acc8f[_0x2a69f7(0x170)],'manualResolutionRequired':_0x2acc8f['manualResolutionRequired'],'nextAction':_0x2acc8f[_0x2a69f7(0x167)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1ba58a[_0x2a69f7(0x15e)],{'appCode':_0x1d4f51['appCode'],'taskId':_0x30cc08,'operationId':_0x1c2962,'clientOperationId':_0x23a58c})},'dataListPageStatus':_0x22bcc6,'result':_0x373c34[_0x2a69f7(0x164)]??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x328e13,_0x1923b1){const _0x28127d=a154_0x2489,_0x50be43=_0x328e13();while(!![]){try{const _0x385394=parseInt(_0x28127d(0x134))/0x1*(-parseInt(_0x28127d(0x135))/0x2)+-parseInt(_0x28127d(0x131))/0x3*(parseInt(_0x28127d(0x136))/0x4)+parseInt(_0x28127d(0x12e))/0x5+-parseInt(_0x28127d(0x130))/0x6*(parseInt(_0x28127d(0x137))/0x7)+parseInt(_0x28127d(0x12d))/0x8+-parseInt(_0x28127d(0x133))/0x9+-parseInt(_0x28127d(0x132))/0xa*(-parseInt(_0x28127d(0x12f))/0xb);if(_0x385394===_0x1923b1)break;else _0x50be43['push'](_0x50be43['shift']());}catch(_0x137470){_0x50be43['push'](_0x50be43['shift']());}}}(a154_0x7fdc,0xb7371));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';function a154_0x7fdc(){const _0x2f0c5c=['2981292kIKDoU','54909FFdDiK','6200wSzJtE','6989859CMTLCR','1YAVkFu','321578WTvpHe','232oMYqix','14yTyvlw','5999984vlAUOu','5064745uzOmsW','35134uEosCW'];a154_0x7fdc=function(){return _0x2f0c5c;};return a154_0x7fdc();}import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';function a154_0x2489(_0x22575f,_0x4f03d7){_0x22575f=_0x22575f-0x12d;const _0x7fdcbf=a154_0x7fdc();let _0x2489eb=_0x7fdcbf[_0x22575f];return _0x2489eb;}import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a155_0x5ce522=a155_0x5ce3;(function(_0x171324,_0xedf3b9){const _0xd00a16=a155_0x5ce3,_0x2745fd=_0x171324();while(!![]){try{const _0x1f5ce0=parseInt(_0xd00a16(0xe4))/0x1*(parseInt(_0xd00a16(0xdd))/0x2)+-parseInt(_0xd00a16(0xc8))/0x3+parseInt(_0xd00a16(0xfc))/0x4+-parseInt(_0xd00a16(0xff))/0x5*(-parseInt(_0xd00a16(0xf7))/0x6)+-parseInt(_0xd00a16(0xf3))/0x7+-parseInt(_0xd00a16(0xc9))/0x8+parseInt(_0xd00a16(0xde))/0x9*(parseInt(_0xd00a16(0xd6))/0xa);if(_0x1f5ce0===_0xedf3b9)break;else _0x2745fd['push'](_0x2745fd['shift']());}catch(_0x4efa04){_0x2745fd['push'](_0x2745fd['shift']());}}}(a155_0x2126,0x7740a));import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';function a155_0x5ce3(_0x4f565,_0x261122){_0x4f565=_0x4f565-0xc8;const _0x212634=a155_0x2126();let _0x5ce36f=_0x212634[_0x4f565];return _0x5ce36f;}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':a155_0x5ce522(0xdc),'command':a155_0x5ce522(0xdf),'description':a155_0x5ce522(0xf6),'risk':'read','defaultOutputFormat':a155_0x5ce522(0xee),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a155_0x5ce522(0xd3),'description':a155_0x5ce522(0xe3)},DATASETCODE_FLAG_OPTIONAL,{'name':a155_0x5ce522(0x101),'type':a155_0x5ce522(0xd9),'description':a155_0x5ce522(0xd2)},{'name':a155_0x5ce522(0x104),'type':'string','description':a155_0x5ce522(0xf0)},{'name':a155_0x5ce522(0xe2),'type':a155_0x5ce522(0x106),'description':a155_0x5ce522(0xd5)}],async 'validate'(_0x52598d){validatePageTargetSelector(_0x52598d);},async 'dryRun'(_0x408aff){const _0x4970bf=a155_0x5ce522,_0x51eabc=await buildPullPlan(_0x408aff);return{'method':_0x4970bf(0xcd),'url':_0x51eabc[_0x4970bf(0x100)]===_0x4970bf(0xd4)?_0x4970bf(0x107)+(_0x51eabc['items'][0x0]?.[_0x4970bf(0xd7)]['pageId']??''):'/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','body':{'appCode':_0x408aff[_0x4970bf(0xe9)],'mode':_0x51eabc[_0x4970bf(0x100)],'targetDatasetCode':_0x51eabc['datasetCode']??null,'pages':_0x51eabc[_0x4970bf(0xec)][_0x4970bf(0xda)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x51eabc[_0x4970bf(0x100)],'datasetCode':_0x51eabc['datasetCode']??null,'totalCandidates':_0x51eabc['items'][_0x4970bf(0xfd)],'totalWouldPull':_0x51eabc['items'][_0x4970bf(0xf8)](_0x43484f=>_0x43484f[_0x4970bf(0x102)]==='would_pull')['length'],'totalConflicts':_0x51eabc[_0x4970bf(0xec)][_0x4970bf(0xf8)](_0xeb724f=>_0xeb724f['status']===_0x4970bf(0xd1))['length']})};},async 'execute'(_0x34efd5){const _0x3d2e2b=a155_0x5ce522,_0x502f47=loadPageProjectConfig(_0x34efd5[_0x3d2e2b(0xe9)]),_0x25d198=await readPageLockFile(_0x502f47[_0x3d2e2b(0xe5)]),{lockData:_0x218cd7,appLock:_0x4f0e53}=ensurePageLockScope(_0x25d198??createEmptyPageLock(),_0x34efd5[_0x3d2e2b(0xe9)]),_0xe27fed=await buildPullPlan(_0x34efd5),_0xc91b01=_0x34efd5[_0x3d2e2b(0xe1)](_0x3d2e2b(0xe2));if(_0xe27fed['mode']===_0x3d2e2b(0xd4)&&_0xe27fed['items'][0x0]?.[_0x3d2e2b(0x102)]===_0x3d2e2b(0xd1)&&!_0xc91b01)throw CliErrors[_0x3d2e2b(0xcc)]('Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20'+_0xe27fed[_0x3d2e2b(0xec)][0x0][_0x3d2e2b(0xe8)],_0x3d2e2b(0xf9));const _0x4ace73=[],_0x143303=[];for(const _0x1b452c of _0xe27fed[_0x3d2e2b(0xec)]){if(_0x1b452c[_0x3d2e2b(0x102)]==='conflict'&&!_0xc91b01){_0x143303[_0x3d2e2b(0xce)]({'pageId':_0x1b452c[_0x3d2e2b(0xd7)][_0x3d2e2b(0xe0)],'type':_0x1b452c['detail'][_0x3d2e2b(0xfb)],'title':_0x1b452c[_0x3d2e2b(0xd7)]['name'],'localPath':_0x1b452c[_0x3d2e2b(0xe8)],'reason':_0x1b452c[_0x3d2e2b(0xeb)]??_0x3d2e2b(0xf2)});continue;}await ensureParentDirectory(_0x1b452c[_0x3d2e2b(0xe8)]);const _0x31557d=serializePageSchemaForFile(_0x1b452c[_0x3d2e2b(0xd7)][_0x3d2e2b(0xdb)]);await writeFile(_0x1b452c[_0x3d2e2b(0xe8)],_0x31557d,_0x3d2e2b(0xea)),_0x4f0e53[_0x3d2e2b(0xcf)][String(_0x1b452c['detail'][_0x3d2e2b(0xe0)])]=buildLockEntry(_0x1b452c[_0x3d2e2b(0xd7)],_0x31557d),_0x4ace73[_0x3d2e2b(0xce)]({'pageId':_0x1b452c[_0x3d2e2b(0xd7)]['pageId'],'type':_0x1b452c[_0x3d2e2b(0xd7)]['type'],'title':_0x1b452c[_0x3d2e2b(0xd7)][_0x3d2e2b(0xef)],'localPath':_0x1b452c[_0x3d2e2b(0xe8)]});}return _0x4f0e53[_0x3d2e2b(0xd0)]=new Date()[_0x3d2e2b(0x103)](),await writePageLockFile(_0x502f47[_0x3d2e2b(0xe5)],_0x218cd7),{'ok':!![],'message':'拉取完成:\x20'+_0x4ace73[_0x3d2e2b(0xfd)]+_0x3d2e2b(0xf1)+_0x143303[_0x3d2e2b(0xfd)]+_0x3d2e2b(0xd8),'data':{'appCode':_0x34efd5[_0x3d2e2b(0xe9)],'pulledPages':_0x4ace73,'skippedPages':_0x143303,'totalPulled':_0x4ace73['length'],'totalSkipped':_0x143303[_0x3d2e2b(0xfd)]}};}};async function buildPullPlan(_0x4ad21c){const _0x5a2cc7=a155_0x5ce522,_0x24ccb6=loadPageProjectConfig(_0x4ad21c[_0x5a2cc7(0xe9)]),_0x3f0fb4=await readPageLockFile(_0x24ccb6[_0x5a2cc7(0xe5)]),{appLock:_0x31b6e1}=ensurePageLockScope(_0x3f0fb4??createEmptyPageLock(),_0x4ad21c[_0x5a2cc7(0xe9)]),_0x373908=getPageIdFlag(_0x4ad21c);if(_0x373908!==undefined){const _0x319d7a=await loadPageDetailForPage(_0x4ad21c,_0x373908);return{'mode':'single','items':[await inspectPullTarget(_0x24ccb6,_0x31b6e1[_0x5a2cc7(0xcf)][String(_0x319d7a[_0x5a2cc7(0xe0)])],_0x319d7a)]};}const _0x200917=await loadDatasetDetailForPage(_0x4ad21c),_0x1f0522=_0x200917[_0x5a2cc7(0x105)][_0x5a2cc7(0xf8)](_0x4aff86=>!_0x4aff86[_0x5a2cc7(0xe7)]);if(_0x1f0522[_0x5a2cc7(0xfd)]===0x0)throw CliErrors['validation']('Dataset\x20\x22'+_0x200917['code']+_0x5a2cc7(0xe6));const _0x19f633=await Promise['all'](_0x1f0522[_0x5a2cc7(0xda)](_0x4391e1=>loadPageDetailForPage(_0x4ad21c,_0x4391e1['id']))),_0x3a3c1c=selectVersionTagGroup(_0x19f633,_0x1aec2a=>_0x1aec2a[_0x5a2cc7(0xcb)],_0x4ad21c[_0x5a2cc7(0xed)](_0x5a2cc7(0x104)));return{'mode':'batch','datasetCode':_0x200917[_0x5a2cc7(0xdb)],'items':await Promise[_0x5a2cc7(0xfa)](_0x3a3c1c[_0x5a2cc7(0xec)][_0x5a2cc7(0xda)](_0x1b1ef9=>inspectPullTarget(_0x24ccb6,_0x31b6e1[_0x5a2cc7(0xcf)][String(_0x1b1ef9['pageId'])],_0x1b1ef9)))};}async function inspectPullTarget(_0x33c71e,_0x293780,_0x5bc250){const _0x140e1d=a155_0x5ce522,_0x18dc80=resolvePageFilePath(_0x33c71e,_0x5bc250[_0x140e1d(0xe0)],_0x5bc250[_0x140e1d(0xfb)]),_0x377182=await fileExists(_0x18dc80);if(!_0x377182){const _0x43e197=serializePageSchemaForFile(_0x5bc250[_0x140e1d(0xdb)]);return{'detail':_0x5bc250,'localPath':_0x18dc80,'localHash':computePageContentHash(_0x43e197),'status':_0x140e1d(0xfe)};}const _0x54cf17=await computePageFileHash(_0x18dc80);if(!_0x293780||_0x54cf17!==_0x293780[_0x140e1d(0xf4)])return{'detail':_0x5bc250,'localPath':_0x18dc80,'localHash':_0x54cf17,'status':_0x140e1d(0xd1),'reason':_0x140e1d(0xf2)};return{'detail':_0x5bc250,'localPath':_0x18dc80,'localHash':_0x54cf17,'status':_0x140e1d(0xfe)};}function a155_0x2126(){const _0x3812ae=['number','single','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','10bKhpAj','detail','\x20skipped','string','map','code','page','2acQjVe','7202781VEmXlY','pull','pageId','bool','force','Page\x20ID','309423vNZCPM','lockFilePath','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','deleted','localPath','appCode','utf8','reason','items','str','compress','name','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','\x20pulled,\x20','local\x20unsynced\x20changes','3194856ZVNmuq','hash','datasetIds','Pull\x20page\x20schema\x20to\x20local\x20files','6RLrQrz','filter','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','all','type','2117172MyvGsS','length','would_pull','1456495boDzDG','mode','alias','status','toISOString','version-tag','relatedPages','boolean','/smartapi/lovrabet/detail?pageId=','1332885KSmMLF','4329304WUtMAS','pageVersion','versionTag','validation','GET','push','pages','lastSync','conflict','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'];a155_0x2126=function(){return _0x3812ae;};return a155_0x2126();}function buildLockEntry(_0x39422a,_0x49c5e6){const _0x1ed955=a155_0x5ce522;return{'hash':computePageContentHash(_0x49c5e6),'pageId':_0x39422a[_0x1ed955(0xe0)],'pageVersion':_0x39422a[_0x1ed955(0xca)],'type':_0x39422a[_0x1ed955(0xfb)],'title':_0x39422a[_0x1ed955(0xef)],'datasetIds':_0x39422a[_0x1ed955(0xf5)],'versionTag':_0x39422a['versionTag']};}function toPreviewItem(_0x1da228){const _0x58048c=a155_0x5ce522;return{'pageId':_0x1da228['detail'][_0x58048c(0xe0)],'type':_0x1da228[_0x58048c(0xd7)][_0x58048c(0xfb)],'title':_0x1da228[_0x58048c(0xd7)]['name'],'localPath':_0x1da228[_0x58048c(0xe8)],'status':_0x1da228[_0x58048c(0x102)],..._0x1da228[_0x58048c(0xeb)]?{'reason':_0x1da228['reason']}:{}};}
|