@lovrabet/rabetbase-cli 2.5.11-beta.1 → 2.5.11

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.
Files changed (376) hide show
  1. package/lib/api/api-doc.js +1 -1
  2. package/lib/api/api-group.js +1 -1
  3. package/lib/api/fetch-model-list.js +1 -1
  4. package/lib/api/generate-api-file.js +1 -1
  5. package/lib/api/generate-sdk-config-file.js +1 -1
  6. package/lib/api/legacy-api-file.js +1 -1
  7. package/lib/api/model-registry-file.js +1 -1
  8. package/lib/api/model-registry-scaffold.js +1 -1
  9. package/lib/api/model-source.js +1 -1
  10. package/lib/auth/auth-server-ui.js +1 -1
  11. package/lib/auth/auth-server.js +1 -1
  12. package/lib/auth/constant.js +1 -1
  13. package/lib/auth/get-cookie.js +1 -1
  14. package/lib/auth/get-session-user.js +1 -1
  15. package/lib/auth/is-session-valid.js +1 -1
  16. package/lib/auth/login-success-html.js +1 -1
  17. package/lib/auth/logout.js +1 -1
  18. package/lib/cli-flags.js +1 -1
  19. package/lib/cli.js +1 -1
  20. package/lib/commands/api/generate.js +1 -1
  21. package/lib/commands/api/index.js +1 -1
  22. package/lib/commands/api/list.js +1 -1
  23. package/lib/commands/api/pull.js +1 -1
  24. package/lib/commands/api/shared.js +1 -1
  25. package/lib/commands/app/detail.js +1 -1
  26. package/lib/commands/app/index.js +1 -1
  27. package/lib/commands/app/list.js +1 -1
  28. package/lib/commands/app/members-list.js +1 -1
  29. package/lib/commands/app/remote-directory.js +1 -1
  30. package/lib/commands/app/shared.js +1 -1
  31. package/lib/commands/app-config/delete.js +1 -1
  32. package/lib/commands/app-config/get.js +1 -1
  33. package/lib/commands/app-config/index.js +1 -1
  34. package/lib/commands/app-config/list.js +1 -1
  35. package/lib/commands/app-config/set.js +1 -1
  36. package/lib/commands/app-config/shared.js +1 -1
  37. package/lib/commands/auth/index.js +1 -1
  38. package/lib/commands/bff/create.js +1 -1
  39. package/lib/commands/bff/delete.js +1 -1
  40. package/lib/commands/bff/detail.js +1 -1
  41. package/lib/commands/bff/index.js +1 -1
  42. package/lib/commands/bff/list.js +1 -1
  43. package/lib/commands/bff/logs.js +1 -1
  44. package/lib/commands/bff/pull.js +1 -1
  45. package/lib/commands/bff/push.js +1 -1
  46. package/lib/commands/bff/status.js +1 -1
  47. package/lib/commands/cli-skill/index.js +1 -1
  48. package/lib/commands/cli-update.js +1 -1
  49. package/lib/commands/codegen/index.js +1 -1
  50. package/lib/commands/codegen/sdk.js +1 -1
  51. package/lib/commands/codegen/sql.js +1 -1
  52. package/lib/commands/common/app-registry.js +1 -1
  53. package/lib/commands/common/app-selector.js +1 -1
  54. package/lib/commands/common/async-task.js +1 -1
  55. package/lib/commands/common/dry-run.js +1 -1
  56. package/lib/commands/common/flags.js +1 -1
  57. package/lib/commands/common/local-file.js +1 -1
  58. package/lib/commands/common/validate.js +1 -1
  59. package/lib/commands/config/delete.js +1 -1
  60. package/lib/commands/config/get.js +1 -1
  61. package/lib/commands/config/index.js +1 -1
  62. package/lib/commands/config/init.js +1 -1
  63. package/lib/commands/config/list.js +1 -1
  64. package/lib/commands/config/set.js +1 -1
  65. package/lib/commands/config/shared.js +1 -1
  66. package/lib/commands/dataset/batch-design.js +1 -1
  67. package/lib/commands/dataset/business-group-update.js +1 -1
  68. package/lib/commands/dataset/business-groups.js +1 -1
  69. package/lib/commands/dataset/capability.js +1 -1
  70. package/lib/commands/dataset/cross-relation-create.js +1 -1
  71. package/lib/commands/dataset/cross-relation-delete.js +1 -1
  72. package/lib/commands/dataset/cross-relation-list.js +1 -1
  73. package/lib/commands/dataset/cross-relation-shared.js +1 -1
  74. package/lib/commands/dataset/cross-relation-update.js +1 -1
  75. package/lib/commands/dataset/delete.js +1 -1
  76. package/lib/commands/dataset/design-context.js +1 -1
  77. package/lib/commands/dataset/design-start.js +1 -1
  78. package/lib/commands/dataset/design-status.js +1 -1
  79. package/lib/commands/dataset/design-sync-retry.js +1 -1
  80. package/lib/commands/dataset/design-sync-status.js +1 -1
  81. package/lib/commands/dataset/design-validate.js +1 -1
  82. package/lib/commands/dataset/detail.js +1 -1
  83. package/lib/commands/dataset/extend-update.js +1 -1
  84. package/lib/commands/dataset/field-restore.js +1 -1
  85. package/lib/commands/dataset/field-update.js +1 -1
  86. package/lib/commands/dataset/generate.js +1 -1
  87. package/lib/commands/dataset/index.js +1 -1
  88. package/lib/commands/dataset/list.js +1 -1
  89. package/lib/commands/dataset/operations.js +1 -1
  90. package/lib/commands/dataset/relation-audit.js +1 -1
  91. package/lib/commands/dataset/relation-create.js +1 -1
  92. package/lib/commands/dataset/relation-delete.js +1 -1
  93. package/lib/commands/dataset/relation-shared.js +1 -1
  94. package/lib/commands/dataset/relation-update.js +1 -1
  95. package/lib/commands/dataset/relations.js +1 -1
  96. package/lib/commands/dataset/rename.js +1 -1
  97. package/lib/commands/dataset/restore.js +1 -1
  98. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  99. package/lib/commands/db/analysis-batching.js +1 -1
  100. package/lib/commands/db/analyze-batch-plan.js +1 -1
  101. package/lib/commands/db/analyze-cancel.js +1 -1
  102. package/lib/commands/db/analyze-start.js +1 -1
  103. package/lib/commands/db/analyze-status.js +1 -1
  104. package/lib/commands/db/create.js +1 -1
  105. package/lib/commands/db/cross-db-analysis-shared.js +1 -1
  106. package/lib/commands/db/cross-db-analyze-latest.js +1 -1
  107. package/lib/commands/db/cross-db-analyze-start.js +1 -1
  108. package/lib/commands/db/cross-db-analyze-status.js +1 -1
  109. package/lib/commands/db/delete.js +1 -1
  110. package/lib/commands/db/detail.js +1 -1
  111. package/lib/commands/db/diff-refresh-start.js +1 -1
  112. package/lib/commands/db/diff-refresh-status.js +1 -1
  113. package/lib/commands/db/diff.js +1 -1
  114. package/lib/commands/db/index.js +1 -1
  115. package/lib/commands/db/list.js +1 -1
  116. package/lib/commands/db/shared.js +1 -1
  117. package/lib/commands/db/table-diff-shared.js +1 -1
  118. package/lib/commands/db/tables.js +1 -1
  119. package/lib/commands/db/test.js +1 -1
  120. package/lib/commands/db/update.js +1 -1
  121. package/lib/commands/deployment/index.js +1 -1
  122. package/lib/commands/deployment/sync-all.js +1 -1
  123. package/lib/commands/deployment/sync-jobs.js +1 -1
  124. package/lib/commands/deployment/sync-status.js +1 -1
  125. package/lib/commands/doctor.js +1 -1
  126. package/lib/commands/file/index.js +1 -1
  127. package/lib/commands/flow/create.js +1 -1
  128. package/lib/commands/flow/detail.js +1 -1
  129. package/lib/commands/flow/index.js +1 -1
  130. package/lib/commands/flow/list.js +1 -1
  131. package/lib/commands/flow/page-list.js +1 -1
  132. package/lib/commands/flow/publish.js +1 -1
  133. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  134. package/lib/commands/flow/runtime-role-list.js +1 -1
  135. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  136. package/lib/commands/flow/runtime-user-search.js +1 -1
  137. package/lib/commands/flow/shared.js +1 -1
  138. package/lib/commands/flow/update.js +1 -1
  139. package/lib/commands/flow/validate.js +1 -1
  140. package/lib/commands/instant-api-policy/current.js +1 -1
  141. package/lib/commands/instant-api-policy/index.js +1 -1
  142. package/lib/commands/instant-api-policy/init.js +1 -1
  143. package/lib/commands/instant-api-policy/publish.js +1 -1
  144. package/lib/commands/instant-api-policy/pull.js +1 -1
  145. package/lib/commands/instant-api-policy/revision.js +1 -1
  146. package/lib/commands/instant-api-policy/revisions.js +1 -1
  147. package/lib/commands/instant-api-policy/rollback.js +1 -1
  148. package/lib/commands/instant-api-policy/shared.js +1 -1
  149. package/lib/commands/instant-api-policy/validate.js +1 -1
  150. package/lib/commands/issue/context.js +1 -1
  151. package/lib/commands/issue/index.js +1 -1
  152. package/lib/commands/issue/nudge.js +1 -1
  153. package/lib/commands/issue/report.js +1 -1
  154. package/lib/commands/kb/create.js +1 -1
  155. package/lib/commands/kb/delete.js +1 -1
  156. package/lib/commands/kb/detail.js +1 -1
  157. package/lib/commands/kb/index.js +1 -1
  158. package/lib/commands/kb/list.js +1 -1
  159. package/lib/commands/kb/search.js +1 -1
  160. package/lib/commands/kb/shared.js +1 -1
  161. package/lib/commands/kb/update.js +1 -1
  162. package/lib/commands/logs/index.js +1 -1
  163. package/lib/commands/menu/asset-update.js +1 -1
  164. package/lib/commands/menu/delete.js +1 -1
  165. package/lib/commands/menu/external-link-create.js +1 -1
  166. package/lib/commands/menu/external-link-update.js +1 -1
  167. package/lib/commands/menu/group-create.js +1 -1
  168. package/lib/commands/menu/group-update.js +1 -1
  169. package/lib/commands/menu/index.js +1 -1
  170. package/lib/commands/menu/list.js +1 -1
  171. package/lib/commands/menu/move.js +1 -1
  172. package/lib/commands/menu/regroup-start.js +1 -1
  173. package/lib/commands/menu/rename.js +1 -1
  174. package/lib/commands/menu/shared/compare-table.js +1 -1
  175. package/lib/commands/menu/shared/delete-plan.js +1 -1
  176. package/lib/commands/menu/shared/facts.js +1 -1
  177. package/lib/commands/menu/shared/index.js +1 -1
  178. package/lib/commands/menu/shared/inquirer.js +1 -1
  179. package/lib/commands/menu/shared/local-pages.js +1 -1
  180. package/lib/commands/menu/shared/logic.js +1 -1
  181. package/lib/commands/menu/shared/mutations.js +1 -1
  182. package/lib/commands/menu/shared/path.js +1 -1
  183. package/lib/commands/menu/shared/service.js +1 -1
  184. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  185. package/lib/commands/menu/shared/sync-core.js +1 -1
  186. package/lib/commands/menu/shared/update-core.js +1 -1
  187. package/lib/commands/menu/shared/valid-url.js +1 -1
  188. package/lib/commands/menu/subapp-assets-status.js +1 -1
  189. package/lib/commands/menu/subapp-assets-update.js +1 -1
  190. package/lib/commands/menu/sync.js +1 -1
  191. package/lib/commands/menu/visibility-update.js +1 -1
  192. package/lib/commands/notification/config-create.js +1 -1
  193. package/lib/commands/notification/config-delete.js +1 -1
  194. package/lib/commands/notification/config-list.js +1 -1
  195. package/lib/commands/notification/config-update.js +1 -1
  196. package/lib/commands/notification/index.js +1 -1
  197. package/lib/commands/notification/shared.js +1 -1
  198. package/lib/commands/ocr/index.js +1 -1
  199. package/lib/commands/page/create.js +1 -1
  200. package/lib/commands/page/custom/detail.js +1 -1
  201. package/lib/commands/page/custom/list.js +1 -1
  202. package/lib/commands/page/custom/publish.js +1 -1
  203. package/lib/commands/page/custom/shared.js +1 -1
  204. package/lib/commands/page/custom/syntax.js +1 -1
  205. package/lib/commands/page/custom/update.js +1 -1
  206. package/lib/commands/page/data-list-status.js +1 -1
  207. package/lib/commands/page/generate-start.js +1 -1
  208. package/lib/commands/page/generate-status.js +1 -1
  209. package/lib/commands/page/index.js +1 -1
  210. package/lib/commands/page/pull.js +1 -1
  211. package/lib/commands/page/push.js +1 -1
  212. package/lib/commands/page/relation-audit.js +1 -1
  213. package/lib/commands/page/restore.js +1 -1
  214. package/lib/commands/page/shared.js +1 -1
  215. package/lib/commands/page/sync.js +1 -1
  216. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  217. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  218. package/lib/commands/project/create/format-elapsed.js +1 -1
  219. package/lib/commands/project/create/main.js +1 -1
  220. package/lib/commands/project/create/materialize-project-template.js +1 -1
  221. package/lib/commands/project/create/project-name.js +1 -1
  222. package/lib/commands/project/create/project-template-archive.js +1 -1
  223. package/lib/commands/project/create/project-template-path.js +1 -1
  224. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  225. package/lib/commands/project/create/use-format-code.js +1 -1
  226. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  227. package/lib/commands/project/domain-routing-sync.js +1 -1
  228. package/lib/commands/project/index.js +1 -1
  229. package/lib/commands/project/upgrade.js +1 -1
  230. package/lib/commands/registry.js +1 -1
  231. package/lib/commands/role/delete.js +1 -1
  232. package/lib/commands/role/detail.js +1 -1
  233. package/lib/commands/role/index.js +1 -1
  234. package/lib/commands/role/list.js +1 -1
  235. package/lib/commands/role/shared.js +1 -1
  236. package/lib/commands/role/update.js +1 -1
  237. package/lib/commands/role/user-add.js +1 -1
  238. package/lib/commands/role/user-remove.js +1 -1
  239. package/lib/commands/role/user-resolve.js +1 -1
  240. package/lib/commands/rule/get.js +1 -1
  241. package/lib/commands/rule/index.js +1 -1
  242. package/lib/commands/rule/list.js +1 -1
  243. package/lib/commands/rule/set.js +1 -1
  244. package/lib/commands/rule/shared.js +1 -1
  245. package/lib/commands/run/index.js +1 -1
  246. package/lib/commands/schema.js +1 -1
  247. package/lib/commands/sql/create.js +1 -1
  248. package/lib/commands/sql/delete.js +1 -1
  249. package/lib/commands/sql/detail.js +1 -1
  250. package/lib/commands/sql/exec.js +1 -1
  251. package/lib/commands/sql/index.js +1 -1
  252. package/lib/commands/sql/list.js +1 -1
  253. package/lib/commands/sql/pull.js +1 -1
  254. package/lib/commands/sql/push.js +1 -1
  255. package/lib/commands/sql/shared.js +1 -1
  256. package/lib/commands/sql/status.js +1 -1
  257. package/lib/commands/sql/validate.js +1 -1
  258. package/lib/commands/task/index.js +1 -1
  259. package/lib/commands/task/status.js +1 -1
  260. package/lib/commands/tenant/index.js +1 -1
  261. package/lib/commands/tenant/members-list.js +1 -1
  262. package/lib/commands/tenant/shared.js +1 -1
  263. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  264. package/lib/commands/user-account/feishu-bind.js +1 -1
  265. package/lib/commands/user-account/index.js +1 -1
  266. package/lib/commands/workspace/add.js +1 -1
  267. package/lib/commands/workspace/index.js +1 -1
  268. package/lib/commands/workspace/remove.js +1 -1
  269. package/lib/config/domain-config.js +1 -1
  270. package/lib/config/project-domain-routing.js +1 -1
  271. package/lib/config/region-config.js +1 -1
  272. package/lib/config/schema.js +1 -1
  273. package/lib/constant/cdn.js +1 -1
  274. package/lib/constant/cli.js +1 -1
  275. package/lib/constant/defaults.js +1 -1
  276. package/lib/constant/domain.js +1 -1
  277. package/lib/constant/env.js +1 -1
  278. package/lib/constant/output.js +1 -1
  279. package/lib/constant/paths.js +1 -1
  280. package/lib/constant/region.js +1 -1
  281. package/lib/constant/risk.js +1 -1
  282. package/lib/constant/routing-profile.js +1 -1
  283. package/lib/context/app-resolver.js +1 -1
  284. package/lib/context/auth-resolver.js +1 -1
  285. package/lib/context/config-loader.js +1 -1
  286. package/lib/context.js +1 -1
  287. package/lib/core/alias-resolver.js +1 -1
  288. package/lib/core/api-client.js +1 -1
  289. package/lib/core/bff/config.js +1 -1
  290. package/lib/core/bff/file-system.js +1 -1
  291. package/lib/core/bff/hash.js +1 -1
  292. package/lib/core/bff/hook-directory.js +1 -1
  293. package/lib/core/bff/lock.js +1 -1
  294. package/lib/core/bff/utils.js +1 -1
  295. package/lib/core/cross-db-analysis.js +1 -1
  296. package/lib/core/cross-db-relation.js +1 -1
  297. package/lib/core/db-resolver.js +1 -1
  298. package/lib/core/flow-config.js +1 -1
  299. package/lib/core/instant-api-policy/config.js +1 -1
  300. package/lib/core/instant-api-policy/endpoints.js +1 -1
  301. package/lib/core/kb-management-client.js +1 -1
  302. package/lib/core/kb-search-client.js +1 -1
  303. package/lib/core/page/file-system.js +1 -1
  304. package/lib/core/page/hash.js +1 -1
  305. package/lib/core/page/lock.js +1 -1
  306. package/lib/core/page/lr-smart-jsx.js +1 -1
  307. package/lib/core/sql-index-auditor.js +1 -1
  308. package/lib/core/sql-sync/config.js +1 -1
  309. package/lib/core/sql-sync/file-system.js +1 -1
  310. package/lib/core/sql-sync/hash.js +1 -1
  311. package/lib/core/sql-sync/lock.js +1 -1
  312. package/lib/core/sql-sync/utils.js +1 -1
  313. package/lib/core/sql-validator.js +1 -1
  314. package/lib/errors.js +1 -1
  315. package/lib/framework/build-all-flags.js +1 -1
  316. package/lib/framework/error-output.js +1 -1
  317. package/lib/framework/explicit-yes.js +1 -1
  318. package/lib/framework/flags.js +1 -1
  319. package/lib/framework/help.js +1 -1
  320. package/lib/framework/index.js +1 -1
  321. package/lib/framework/output.js +1 -1
  322. package/lib/framework/response.js +1 -1
  323. package/lib/framework/runner-alias.js +1 -1
  324. package/lib/framework/runner.js +1 -1
  325. package/lib/framework/schema-export.js +1 -1
  326. package/lib/framework/supported-flags.js +1 -1
  327. package/lib/framework/types.js +1 -1
  328. package/lib/generated/build-info.d.ts +4 -4
  329. package/lib/generated/build-info.js +1 -1
  330. package/lib/generated/official-routing.js +1 -1
  331. package/lib/generated/routing-contract.js +1 -1
  332. package/lib/help.js +1 -1
  333. package/lib/postinstall.js +1 -1
  334. package/lib/runtime/confirmation.js +1 -1
  335. package/lib/runtime/event.js +1 -1
  336. package/lib/runtime/index.js +1 -1
  337. package/lib/runtime/queue.js +1 -1
  338. package/lib/runtime/resolve.js +1 -1
  339. package/lib/services/dataset-design/checkpoint.js +1 -1
  340. package/lib/services/dataset-design/commands.js +1 -1
  341. package/lib/services/dataset-design/contract.js +1 -1
  342. package/lib/skills/builtin-skill.js +1 -1
  343. package/lib/skills/main.js +1 -1
  344. package/lib/skills/npx-skills-add.js +1 -1
  345. package/lib/skills/skill-presence.js +1 -1
  346. package/lib/telemetry/cli-command-trace.js +1 -1
  347. package/lib/telemetry/cli-help-trace.js +1 -1
  348. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  349. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  350. package/lib/telemetry/send-cli-trace-log.js +1 -1
  351. package/lib/utils/ai_config.js +1 -1
  352. package/lib/utils/apply-jq-filter.js +1 -1
  353. package/lib/utils/cdn-config.js +1 -1
  354. package/lib/utils/check-sdk-version.js +1 -1
  355. package/lib/utils/cli-version-check.js +1 -1
  356. package/lib/utils/cli-version-policy.js +1 -1
  357. package/lib/utils/config.js +1 -1
  358. package/lib/utils/entity-with-id.js +1 -1
  359. package/lib/utils/file-utils.js +1 -1
  360. package/lib/utils/guides-cdn.js +1 -1
  361. package/lib/utils/http-client.js +1 -1
  362. package/lib/utils/is-non-interactive.js +1 -1
  363. package/lib/utils/logger.js +1 -1
  364. package/lib/utils/params.js +1 -1
  365. package/lib/utils/platform.js +1 -1
  366. package/lib/utils/sleep.js +1 -1
  367. package/lib/utils/template-replacer.js +1 -1
  368. package/lib/utils/update-notice.js +1 -1
  369. package/lib/utils/version.js +1 -1
  370. package/lib/utils/with-active-cookie.js +1 -1
  371. package/lib/utils/write-cli-side-channel.js +1 -1
  372. package/package.json +1 -1
  373. package/skills/rabetbase/SKILL.md +1 -1
  374. package/skills/rabetbase-dataset-generation/SKILL.md +1 -1
  375. package/skills/rabetbase-page-generation/SKILL.md +1 -1
  376. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- const a200_0x3316b9=a200_0x2ff7;function a200_0x2de1(){const _0x1d3fe0=['150FXsXlP','str','isNaN','Custom\x20Page\x20ID','6340293AswUdc','getTime','read','20712445fYcrYl','compress','1703hsfFwR','join','3068884cgpVnR','108515AbIRYM','362RKLEpm','cookie','22lVbbBS','getSeconds','getFullYear','10UDqrzX','appCode','getHours','2390700XvZqAv','page','padStart','240472jGeBXE','Retrieved\x20Custom\x20Page\x20','8fByTvl','pageCode','trim','custom-detail','18WndKig'];a200_0x2de1=function(){return _0x1d3fe0;};return a200_0x2de1();}(function(_0x1a2c24,_0x158e70){const _0x34b18c=a200_0x2ff7,_0x2d723f=_0x1a2c24();while(!![]){try{const _0x17f653=-parseInt(_0x34b18c(0x112))/0x1*(parseInt(_0x34b18c(0x116))/0x2)+-parseInt(_0x34b18c(0x127))/0x3*(-parseInt(_0x34b18c(0x121))/0x4)+parseInt(_0x34b18c(0x115))/0x5*(-parseInt(_0x34b18c(0x128))/0x6)+parseInt(_0x34b18c(0x114))/0x7*(-parseInt(_0x34b18c(0x123))/0x8)+-parseInt(_0x34b18c(0x12c))/0x9*(parseInt(_0x34b18c(0x11b))/0xa)+parseInt(_0x34b18c(0x118))/0xb*(parseInt(_0x34b18c(0x11e))/0xc)+parseInt(_0x34b18c(0x12f))/0xd;if(_0x17f653===_0x158e70)break;else _0x2d723f['push'](_0x2d723f['shift']());}catch(_0x43b156){_0x2d723f['push'](_0x2d723f['shift']());}}}(a200_0x2de1,0x5793c));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x2ff7(_0x193735,_0x1ffa4d){_0x193735=_0x193735-0x111;const _0x2de140=a200_0x2de1();let _0x2ff7a9=_0x2de140[_0x193735];return _0x2ff7a9;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':a200_0x3316b9(0x11f),'command':a200_0x3316b9(0x126),'description':'Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','risk':a200_0x3316b9(0x12e),'defaultOutputFormat':a200_0x3316b9(0x111),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a200_0x3316b9(0x12b)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x528935){readCustomPageId(_0x528935);},async 'execute'(_0x194353){const _0x4e87b9=a200_0x3316b9,_0x5215f2=readCustomPageId(_0x194353),_0x5b18bd=await getCustomPageSource(_0x5215f2),{bundle:_0x227e4f,createTime:_0x416b66,updateTime:_0x4b75ec,..._0x3b7d78}=_0x5b18bd,_0x25bda0=_0x5b18bd['id']??_0x5215f2,_0x140f14=_0x5b18bd[_0x4e87b9(0x11c)]?.[_0x4e87b9(0x125)]()||_0x194353[_0x4e87b9(0x129)]('appcode')[_0x4e87b9(0x125)](),_0x1f7f4e=buildCustomPageRuntimeUrl(_0x140f14,_0x5b18bd[_0x4e87b9(0x124)]),_0x6d0b0a=buildCustomPageEditUrl(_0x140f14,_0x25bda0),_0x4a4247=await resolveCustomPageDevelopmentUrl(_0x140f14,_0x25bda0,_0x194353[_0x4e87b9(0x117)]);return{'ok':!![],'data':{..._0x3b7d78,..._0x1f7f4e?{'runtimePageUrl':_0x1f7f4e}:{},..._0x4a4247?{'pageUrl':_0x4a4247}:{},..._0x6d0b0a?{'editPageUrl':_0x6d0b0a}:{},..._0x416b66==null?{}:{'createTime':formatTime(_0x416b66)},..._0x4b75ec==null?{}:{'updateTime':formatTime(_0x4b75ec)}},'message':_0x4e87b9(0x122)+_0x5215f2+'.'};}};function formatTime(_0x15184a){const _0x24efc8=a200_0x3316b9,_0x40416b=new Date(_0x15184a);if(Number[_0x24efc8(0x12a)](_0x40416b[_0x24efc8(0x12d)]()))return String(_0x15184a);const _0x2e83ac=[_0x40416b[_0x24efc8(0x11a)](),String(_0x40416b['getMonth']()+0x1)[_0x24efc8(0x120)](0x2,'0'),String(_0x40416b['getDate']())['padStart'](0x2,'0')][_0x24efc8(0x113)]('-'),_0x25a87e=[String(_0x40416b[_0x24efc8(0x11d)]())[_0x24efc8(0x120)](0x2,'0'),String(_0x40416b['getMinutes']())[_0x24efc8(0x120)](0x2,'0'),String(_0x40416b[_0x24efc8(0x119)]())[_0x24efc8(0x120)](0x2,'0')]['join'](':');return _0x2e83ac+'\x20'+_0x25a87e;}
1
+ const a200_0x11905a=a200_0x4fd4;function a200_0x4fd4(_0x5d02f5,_0x22e286){_0x5d02f5=_0x5d02f5-0x124;const _0x1fa09a=a200_0x1fa0();let _0x4fd491=_0x1fa09a[_0x5d02f5];return _0x4fd491;}(function(_0x12594f,_0x5c7f5a){const _0x4d755f=a200_0x4fd4,_0x41854e=_0x12594f();while(!![]){try{const _0x25507e=-parseInt(_0x4d755f(0x136))/0x1*(parseInt(_0x4d755f(0x128))/0x2)+-parseInt(_0x4d755f(0x12f))/0x3+-parseInt(_0x4d755f(0x13b))/0x4*(-parseInt(_0x4d755f(0x124))/0x5)+-parseInt(_0x4d755f(0x141))/0x6*(-parseInt(_0x4d755f(0x139))/0x7)+-parseInt(_0x4d755f(0x130))/0x8+parseInt(_0x4d755f(0x13a))/0x9*(parseInt(_0x4d755f(0x12b))/0xa)+-parseInt(_0x4d755f(0x132))/0xb;if(_0x25507e===_0x5c7f5a)break;else _0x41854e['push'](_0x41854e['shift']());}catch(_0x105233){_0x41854e['push'](_0x41854e['shift']());}}}(a200_0x1fa0,0xbdc3d));import{getCustomPageSource}from'../../../core/api-client.js';function a200_0x1fa0(){const _0x17f3f8=['Retrieved\x20Custom\x20Page\x20','padStart','getSeconds','getDate','161004gSoJyG','755ZhbVbN','str','pageCode','getMonth','514llQrUQ','read','isNaN','31230yTXMtW','getTime','appCode','Show\x20a\x20Custom\x20Page\x20and\x20all\x20of\x20its\x20files','1477497jIcBdk','10648376oYWjqC','getFullYear','3154360okwVVM','getMinutes','trim','custom-detail','717BzwBaM','join','Custom\x20Page\x20ID','154bIlOSz','3573aIZGqr','32892uOkehV','appcode'];a200_0x1fa0=function(){return _0x17f3f8;};return a200_0x1fa0();}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomDetail={'service':'page','command':a200_0x11905a(0x135),'description':a200_0x11905a(0x12e),'risk':a200_0x11905a(0x129),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':'number','required':!![],'description':a200_0x11905a(0x138)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x581599){readCustomPageId(_0x581599);},async 'execute'(_0x3ab351){const _0xe6016a=a200_0x11905a,_0x5822c8=readCustomPageId(_0x3ab351),_0x1cdb6d=await getCustomPageSource(_0x5822c8),{bundle:_0x46a193,createTime:_0x122a68,updateTime:_0x336a5a,..._0x31272b}=_0x1cdb6d,_0x5c180a=_0x1cdb6d['id']??_0x5822c8,_0x5594f5=_0x1cdb6d[_0xe6016a(0x12d)]?.[_0xe6016a(0x134)]()||_0x3ab351[_0xe6016a(0x125)](_0xe6016a(0x13c))['trim'](),_0x3f7af7=buildCustomPageRuntimeUrl(_0x5594f5,_0x1cdb6d[_0xe6016a(0x126)]),_0x357efe=buildCustomPageEditUrl(_0x5594f5,_0x5c180a),_0x47b04a=await resolveCustomPageDevelopmentUrl(_0x5594f5,_0x5c180a,_0x3ab351['cookie']);return{'ok':!![],'data':{..._0x31272b,..._0x3f7af7?{'runtimePageUrl':_0x3f7af7}:{},..._0x47b04a?{'pageUrl':_0x47b04a}:{},..._0x357efe?{'editPageUrl':_0x357efe}:{},..._0x122a68==null?{}:{'createTime':formatTime(_0x122a68)},..._0x336a5a==null?{}:{'updateTime':formatTime(_0x336a5a)}},'message':_0xe6016a(0x13d)+_0x5822c8+'.'};}};function formatTime(_0x526394){const _0x254a3b=a200_0x11905a,_0x513285=new Date(_0x526394);if(Number[_0x254a3b(0x12a)](_0x513285[_0x254a3b(0x12c)]()))return String(_0x526394);const _0x3543b2=[_0x513285[_0x254a3b(0x131)](),String(_0x513285[_0x254a3b(0x127)]()+0x1)[_0x254a3b(0x13e)](0x2,'0'),String(_0x513285[_0x254a3b(0x140)]())['padStart'](0x2,'0')][_0x254a3b(0x137)]('-'),_0x101357=[String(_0x513285['getHours']())[_0x254a3b(0x13e)](0x2,'0'),String(_0x513285[_0x254a3b(0x133)]())[_0x254a3b(0x13e)](0x2,'0'),String(_0x513285[_0x254a3b(0x13f)]())[_0x254a3b(0x13e)](0x2,'0')][_0x254a3b(0x137)](':');return _0x3543b2+'\x20'+_0x101357;}
@@ -1 +1 @@
1
- const a201_0x33368f=a201_0x49b6;function a201_0x25fd(){const _0x30a710=['pageId','type','1497595DbNdCS','6fqHVDD','menus','appCode','label','length','3441767wgfVeL','read','26ffeHyj','page','27DPGOOE','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','9092aMSZaA','flatMap','cookie','575420Gibvsj','104540uhqnGu','react','\x20Custom\x20Page(s).','243qejSGw','26054076SMYiem','8517641grguyl','compress','path','No\x20Custom\x20Pages\x20found.','8mWMrdq','353xdKOgE'];a201_0x25fd=function(){return _0x30a710;};return a201_0x25fd();}function a201_0x49b6(_0x1ba212,_0x3418ce){_0x1ba212=_0x1ba212-0x1ee;const _0x25fd71=a201_0x25fd();let _0x49b66c=_0x25fd71[_0x1ba212];return _0x49b66c;}(function(_0x25611d,_0x5827c6){const _0x39c40a=a201_0x49b6,_0x31460c=_0x25611d();while(!![]){try{const _0x144620=-parseInt(_0x39c40a(0x1f2))/0x1*(parseInt(_0x39c40a(0x201))/0x2)+parseInt(_0x39c40a(0x1ff))/0x3*(-parseInt(_0x39c40a(0x205))/0x4)+parseInt(_0x39c40a(0x1f5))/0x5*(parseInt(_0x39c40a(0x1f6))/0x6)+parseInt(_0x39c40a(0x1fb))/0x7*(parseInt(_0x39c40a(0x1f1))/0x8)+parseInt(_0x39c40a(0x208))/0x9*(-parseInt(_0x39c40a(0x204))/0xa)+-parseInt(_0x39c40a(0x20a))/0xb+parseInt(_0x39c40a(0x209))/0xc*(parseInt(_0x39c40a(0x1fd))/0xd);if(_0x144620===_0x5827c6)break;else _0x31460c['push'](_0x31460c['shift']());}catch(_0x28d024){_0x31460c['push'](_0x31460c['shift']());}}}(a201_0x25fd,0xebbfc));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x33368f(0x1fe),'command':'custom-list','description':a201_0x33368f(0x200),'risk':a201_0x33368f(0x1fc),'defaultOutputFormat':a201_0x33368f(0x1ee),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x4f6483){const _0x348bba=a201_0x33368f,_0x5edc73=(await fetchMenuSnapshot(_0x4f6483[_0x348bba(0x1f8)],_0x4f6483[_0x348bba(0x203)]))[_0x348bba(0x1f7)][_0x348bba(0x202)](_0x5901d7=>{const _0x281d02=_0x348bba;if(_0x5901d7[_0x281d02(0x1f4)]!==_0x281d02(0x206)||_0x5901d7['pageId']==null)return[];const _0x54a5e7=buildCustomPageDevelopmentUrl(_0x4f6483['appCode'],_0x5901d7[_0x281d02(0x1ef)]),_0x153596=buildCustomPageRuntimeUrl(_0x4f6483['appCode'],_0x5901d7[_0x281d02(0x1ef)]),_0xe8f409=buildCustomPageEditUrl(_0x4f6483[_0x281d02(0x1f8)],_0x5901d7[_0x281d02(0x1f3)]);return[{'pageId':_0x5901d7[_0x281d02(0x1f3)],'label':_0x5901d7[_0x281d02(0x1f9)],'path':_0x5901d7[_0x281d02(0x1ef)],..._0x54a5e7?{'pageUrl':_0x54a5e7}:{},..._0x153596?{'runtimePageUrl':_0x153596}:{},..._0xe8f409?{'editPageUrl':_0xe8f409}:{}}];});return{'ok':!![],'data':{'pages':_0x5edc73},'message':_0x5edc73['length']===0x0?_0x348bba(0x1f0):'Found\x20'+_0x5edc73[_0x348bba(0x1fa)]+_0x348bba(0x207)};}};
1
+ const a201_0x56faff=a201_0x1d15;function a201_0x1d15(_0x260a1a,_0x492b80){_0x260a1a=_0x260a1a-0x1b4;const _0x2247a3=a201_0x2247();let _0x1d1559=_0x2247a3[_0x260a1a];return _0x1d1559;}function a201_0x2247(){const _0x5bc1e2=['87LWHIAL','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','custom-list','type','flatMap','length','14510HTcuYE','label','1914416uiTcgG','No\x20Custom\x20Pages\x20found.','read','menus','Found\x20','436419FHljVY','page','react','appCode','10PVFrKd','1775886cYKOGA','\x20Custom\x20Page(s).','959bCESFa','1048lyfyXw','path','1509240XSkpdg','pageId','566625sNCbCE'];a201_0x2247=function(){return _0x5bc1e2;};return a201_0x2247();}(function(_0x494efe,_0x4b8c62){const _0x53bdef=a201_0x1d15,_0x59055e=_0x494efe();while(!![]){try{const _0x119c3d=-parseInt(_0x53bdef(0x1b5))/0x1*(-parseInt(_0x53bdef(0x1bb))/0x2)+parseInt(_0x53bdef(0x1b4))/0x3+parseInt(_0x53bdef(0x1bd))/0x4+-parseInt(_0x53bdef(0x1c6))/0x5*(parseInt(_0x53bdef(0x1c7))/0x6)+parseInt(_0x53bdef(0x1c9))/0x7*(-parseInt(_0x53bdef(0x1ca))/0x8)+-parseInt(_0x53bdef(0x1c2))/0x9+-parseInt(_0x53bdef(0x1cc))/0xa;if(_0x119c3d===_0x4b8c62)break;else _0x59055e['push'](_0x59055e['shift']());}catch(_0x3a6f5d){_0x59055e['push'](_0x59055e['shift']());}}}(a201_0x2247,0x7777c));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';export const pageCustomList={'service':a201_0x56faff(0x1c3),'command':a201_0x56faff(0x1b7),'description':a201_0x56faff(0x1b6),'risk':a201_0x56faff(0x1bf),'defaultOutputFormat':'compress','structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x366d31){const _0x5b0710=a201_0x56faff,_0x471e1d=(await fetchMenuSnapshot(_0x366d31[_0x5b0710(0x1c5)],_0x366d31['cookie']))[_0x5b0710(0x1c0)][_0x5b0710(0x1b9)](_0x3b324f=>{const _0x57457c=_0x5b0710;if(_0x3b324f[_0x57457c(0x1b8)]!==_0x57457c(0x1c4)||_0x3b324f['pageId']==null)return[];const _0x2d4805=buildCustomPageDevelopmentUrl(_0x366d31[_0x57457c(0x1c5)],_0x3b324f[_0x57457c(0x1cb)]),_0x450d84=buildCustomPageRuntimeUrl(_0x366d31['appCode'],_0x3b324f[_0x57457c(0x1cb)]),_0x4e7def=buildCustomPageEditUrl(_0x366d31['appCode'],_0x3b324f[_0x57457c(0x1cd)]);return[{'pageId':_0x3b324f[_0x57457c(0x1cd)],'label':_0x3b324f[_0x57457c(0x1bc)],'path':_0x3b324f[_0x57457c(0x1cb)],..._0x2d4805?{'pageUrl':_0x2d4805}:{},..._0x450d84?{'runtimePageUrl':_0x450d84}:{},..._0x4e7def?{'editPageUrl':_0x4e7def}:{}}];});return{'ok':!![],'data':{'pages':_0x471e1d},'message':_0x471e1d[_0x5b0710(0x1ba)]===0x0?_0x5b0710(0x1be):_0x5b0710(0x1c1)+_0x471e1d['length']+_0x5b0710(0x1c8)};}};
@@ -1 +1 @@
1
- function a202_0x48a9(){const _0x86a3ed=['1366267mixLCu','126355bqvTCb','custom-publish','Custom\x20Page\x20ID','status','string','Optional\x20publish\x20remark','number','POST','isInteger','Would\x20publish\x20Custom\x20Page\x20','push','warnings','1059684EhdqJs','8VbLDbq','138549PdIlAX','page','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','10nIbOdD','607332fXlUpR','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','6HsOzaz','98985lKmshg','apiError','trim','page.custom-publish','2188782bRvAUP','write','pageCode','remark','runtimePageUrl','pageId','appCode','unknown','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','cookie','compress'];a202_0x48a9=function(){return _0x86a3ed;};return a202_0x48a9();}const a202_0x159ff7=a202_0x4022;(function(_0x4db27f,_0x165122){const _0x4ab399=a202_0x4022,_0x3a46fc=_0x4db27f();while(!![]){try{const _0x4caecf=-parseInt(_0x4ab399(0xb5))/0x1+-parseInt(_0x4ab399(0xa4))/0x2*(-parseInt(_0x4ab399(0x9e))/0x3)+-parseInt(_0x4ab399(0xa2))/0x4+-parseInt(_0x4ab399(0xa5))/0x5+-parseInt(_0x4ab399(0x9c))/0x6+parseInt(_0x4ab399(0xb4))/0x7*(parseInt(_0x4ab399(0x9d))/0x8)+-parseInt(_0x4ab399(0xa9))/0x9*(-parseInt(_0x4ab399(0xa1))/0xa);if(_0x4caecf===_0x165122)break;else _0x3a46fc['push'](_0x3a46fc['shift']());}catch(_0x4e85de){_0x3a46fc['push'](_0x3a46fc['shift']());}}}(a202_0x48a9,0x18fb9));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a202_0x4022(_0x5d1f1,_0x4d18fe){_0x5d1f1=_0x5d1f1-0x95;const _0x48a914=a202_0x48a9();let _0x40224a=_0x48a914[_0x5d1f1];return _0x40224a;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x159ff7(0x9f),'command':a202_0x159ff7(0xb6),'description':a202_0x159ff7(0xa3),'risk':a202_0x159ff7(0xaa),'defaultOutputFormat':a202_0x159ff7(0xb3),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x159ff7(0x96),'required':!![],'description':a202_0x159ff7(0xb7)},{'name':'remark','type':a202_0x159ff7(0xb9),'description':a202_0x159ff7(0x95)}],async 'validate'(_0x15f74b){readCustomPageId(_0x15f74b);},async 'dryRun'(_0x4879da){const _0x5c7fb2=a202_0x159ff7,_0x4d9197=readInput(_0x4879da);return{'method':_0x5c7fb2(0x97),'url':'/smartapi/webcode/file/publish','body':{'id':_0x4d9197[_0x5c7fb2(0xae)],..._0x4d9197[_0x5c7fb2(0xac)]?{'remark':_0x4d9197[_0x5c7fb2(0xac)]}:{}},'description':_0x5c7fb2(0x99)+_0x4d9197['pageId']+'.'};},async 'execute'(_0x2429bb){const _0x3d6ced=a202_0x159ff7,_0x312985=readInput(_0x2429bb);await getCustomPageSource(_0x312985[_0x3d6ced(0xae)]);const _0x332f6e=await publishCustomPage(_0x312985);if(!Number[_0x3d6ced(0x98)](_0x332f6e)||_0x332f6e!==_0x312985[_0x3d6ced(0xae)])throw CliErrors['apiError'](_0x3d6ced(0xb1));const _0x5a111b=await getCustomPageSource(_0x312985['pageId']);if(_0x5a111b[_0x3d6ced(0xb8)]!=='FORMAL')throw CliErrors[_0x3d6ced(0xa6)]('Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20'+(_0x5a111b['status']??_0x3d6ced(0xb0))+'.');const _0x2ee9d4=_0x5a111b[_0x3d6ced(0xaf)]?.[_0x3d6ced(0xa7)](),_0x3e70c0=buildCustomPageEditUrl(_0x2ee9d4,_0x312985['pageId']),_0x1aa467=await resolveCustomPageDevelopmentUrl(_0x2ee9d4,_0x312985[_0x3d6ced(0xae)],_0x2429bb[_0x3d6ced(0xb2)]),_0x5c113e=buildMutationData(_0x312985,!![],_0x1aa467,_0x3e70c0);_0x2ee9d4&&!_0x1aa467&&_0x5c113e[_0x3d6ced(0x9b)][_0x3d6ced(0x9a)](_0x3d6ced(0xa0));const _0x37ea6f=buildCustomPageRuntimeUrl(_0x5a111b[_0x3d6ced(0xaf)],_0x5a111b[_0x3d6ced(0xab)]);return _0x37ea6f?_0x5c113e[_0x3d6ced(0xad)]=_0x37ea6f:_0x5c113e['warnings'][_0x3d6ced(0x9a)]('Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.'),{'ok':!![],'data':_0x5c113e,'message':'Published\x20Custom\x20Page\x20'+_0x312985[_0x3d6ced(0xae)]+'.'};}};function readInput(_0x4e5f69){const _0x9af618=a202_0x159ff7,_0x2fd50f=readCustomPageId(_0x4e5f69),_0x40e11f=_0x4e5f69['str']('remark')[_0x9af618(0xa7)]();return{'pageId':_0x2fd50f,..._0x40e11f?{'remark':_0x40e11f}:{}};}function buildMutationData(_0x194fcb,_0xf1f4b9=![],_0x147e0c,_0x1d4b9b){const _0x29acdb=a202_0x159ff7;return{'operation':_0x29acdb(0xa8),'selector':{'pageId':_0x194fcb['pageId']},'before':null,'after':{'pageId':_0x194fcb['pageId'],'status':'FORMAL'},'dryRun':!_0xf1f4b9,'request':_0x194fcb,..._0x147e0c?{'pageUrl':_0x147e0c}:{},..._0x1d4b9b?{'editPageUrl':_0x1d4b9b}:{},'warnings':[]};}
1
+ const a202_0x44fadf=a202_0x587f;(function(_0x560e78,_0x3a67f4){const _0x852c10=a202_0x587f,_0x3bab06=_0x560e78();while(!![]){try{const _0x4de374=-parseInt(_0x852c10(0x107))/0x1*(parseInt(_0x852c10(0x112))/0x2)+parseInt(_0x852c10(0x108))/0x3+-parseInt(_0x852c10(0xfb))/0x4*(parseInt(_0x852c10(0x109))/0x5)+parseInt(_0x852c10(0x101))/0x6*(-parseInt(_0x852c10(0xfc))/0x7)+parseInt(_0x852c10(0x113))/0x8*(-parseInt(_0x852c10(0x117))/0x9)+-parseInt(_0x852c10(0x11a))/0xa+parseInt(_0x852c10(0x10c))/0xb;if(_0x4de374===_0x3a67f4)break;else _0x3bab06['push'](_0x3bab06['shift']());}catch(_0x4fe41d){_0x3bab06['push'](_0x3bab06['shift']());}}}(a202_0x1af2,0xe6c0b));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a202_0x44fadf(0x11d),'command':a202_0x44fadf(0x10b),'description':'Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','risk':a202_0x44fadf(0xff),'defaultOutputFormat':a202_0x44fadf(0x119),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a202_0x44fadf(0x116),'required':!![],'description':a202_0x44fadf(0x10f)},{'name':a202_0x44fadf(0xfe),'type':a202_0x44fadf(0x10e),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x301bae){readCustomPageId(_0x301bae);},async 'dryRun'(_0x2422a7){const _0x2433fb=a202_0x44fadf,_0x145c49=readInput(_0x2422a7);return{'method':_0x2433fb(0x102),'url':_0x2433fb(0xfa),'body':{'id':_0x145c49[_0x2433fb(0x105)],..._0x145c49[_0x2433fb(0xfe)]?{'remark':_0x145c49[_0x2433fb(0xfe)]}:{}},'description':_0x2433fb(0x115)+_0x145c49[_0x2433fb(0x105)]+'.'};},async 'execute'(_0x2f8164){const _0x18e89b=a202_0x44fadf,_0x5e798e=readInput(_0x2f8164);await getCustomPageSource(_0x5e798e[_0x18e89b(0x105)]);const _0x50f7cd=await publishCustomPage(_0x5e798e);if(!Number['isInteger'](_0x50f7cd)||_0x50f7cd!==_0x5e798e[_0x18e89b(0x105)])throw CliErrors['apiError'](_0x18e89b(0x110));const _0x458d3d=await getCustomPageSource(_0x5e798e[_0x18e89b(0x105)]);if(_0x458d3d[_0x18e89b(0x106)]!=='FORMAL')throw CliErrors['apiError'](_0x18e89b(0x10a)+(_0x458d3d['status']??_0x18e89b(0x103))+'.');const _0x557b18=_0x458d3d[_0x18e89b(0x11c)]?.['trim'](),_0x3e323a=buildCustomPageEditUrl(_0x557b18,_0x5e798e[_0x18e89b(0x105)]),_0x12d7c2=await resolveCustomPageDevelopmentUrl(_0x557b18,_0x5e798e['pageId'],_0x2f8164['cookie']),_0x5380f1=buildMutationData(_0x5e798e,!![],_0x12d7c2,_0x3e323a);_0x557b18&&!_0x12d7c2&&_0x5380f1[_0x18e89b(0x100)][_0x18e89b(0x118)](_0x18e89b(0x11b));const _0x572590=buildCustomPageRuntimeUrl(_0x458d3d[_0x18e89b(0x11c)],_0x458d3d[_0x18e89b(0x10d)]);return _0x572590?_0x5380f1[_0x18e89b(0x114)]=_0x572590:_0x5380f1[_0x18e89b(0x100)]['push'](_0x18e89b(0xfd)),{'ok':!![],'data':_0x5380f1,'message':'Published\x20Custom\x20Page\x20'+_0x5e798e[_0x18e89b(0x105)]+'.'};}};function readInput(_0x19a693){const _0x4f6c06=a202_0x44fadf,_0xa66e4d=readCustomPageId(_0x19a693),_0x1980ba=_0x19a693[_0x4f6c06(0x111)]('remark')[_0x4f6c06(0xf9)]();return{'pageId':_0xa66e4d,..._0x1980ba?{'remark':_0x1980ba}:{}};}function buildMutationData(_0x51817e,_0x51c2fa=![],_0x20e1a0,_0x1a3e54){const _0x57aea0=a202_0x44fadf;return{'operation':_0x57aea0(0x104),'selector':{'pageId':_0x51817e['pageId']},'before':null,'after':{'pageId':_0x51817e[_0x57aea0(0x105)],'status':'FORMAL'},'dryRun':!_0x51c2fa,'request':_0x51817e,..._0x20e1a0?{'pageUrl':_0x20e1a0}:{},..._0x1a3e54?{'editPageUrl':_0x1a3e54}:{},'warnings':[]};}function a202_0x587f(_0x5d2df3,_0x584f99){_0x5d2df3=_0x5d2df3-0xf9;const _0x1af2a4=a202_0x1af2();let _0x587f11=_0x1af2a4[_0x5d2df3];return _0x587f11;}function a202_0x1af2(){const _0x28676b=['Custom\x20Page\x20ID','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','str','2VmBmmK','536TsMMPe','runtimePageUrl','Would\x20publish\x20Custom\x20Page\x20','number','159390mVAcsn','push','compress','9577720OVsLFI','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','appCode','page','trim','/smartapi/webcode/file/publish','339056JatbMs','511DxcYXV','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','remark','write','warnings','138366mKFWEv','POST','unknown','page.custom-publish','pageId','status','1046773faFZJK','2420187uphXym','15tabiJD','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','custom-publish','57940234smtxSE','pageCode','string'];a202_0x1af2=function(){return _0x28676b;};return a202_0x1af2();}
@@ -1 +1 @@
1
- const a203_0x54467d=a203_0x3ecd;(function(_0xa8677a,_0x42e44d){const _0x1a19d6=a203_0x3ecd,_0x711c93=_0xa8677a();while(!![]){try{const _0x2c4825=-parseInt(_0x1a19d6(0xaf))/0x1*(-parseInt(_0x1a19d6(0xc4))/0x2)+-parseInt(_0x1a19d6(0xb0))/0x3+parseInt(_0x1a19d6(0xbb))/0x4+parseInt(_0x1a19d6(0xb2))/0x5+parseInt(_0x1a19d6(0xbe))/0x6+-parseInt(_0x1a19d6(0xb4))/0x7*(parseInt(_0x1a19d6(0xb3))/0x8)+parseInt(_0x1a19d6(0xc5))/0x9;if(_0x2c4825===_0x42e44d)break;else _0x711c93['push'](_0x711c93['shift']());}catch(_0x2b2887){_0x711c93['push'](_0x711c93['shift']());}}}(a203_0x41f9,0x39b61));function a203_0x41f9(){const _0xb5bdc=['Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','isInteger','react','pageId','menus','103664qfXWVv','Invalid\x20Custom\x20Page\x20content:\x20','/pages/','1898904qEbZNM','--id\x20must\x20be\x20a\x20positive\x20integer.','file','trim','map','validation','2SIYBSl','5450679MscvRm','169760CfWlck','1406892QcLnzD','type','27980dhwEJt','304XiiQvB','77007jzwOYd','join'];a203_0x41f9=function(){return _0xb5bdc;};return a203_0x41f9();}import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';function a203_0x3ecd(_0x3dd1f3,_0x5532ee){_0x3dd1f3=_0x3dd1f3-0xaf;const _0x41f9dd=a203_0x41f9();let _0x3ecd1f=_0x41f9dd[_0x3dd1f3];return _0x3ecd1f;}import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x54467d(0xb6)};function trimOptional(_0x1d64e2){const _0x5b8cd0=a203_0x54467d;return _0x1d64e2?.[_0x5b8cd0(0xc1)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x2d94dc,_0x391579){const _0x3b11de=trimOptional(_0x2d94dc),_0xa59058=trimOptional(_0x391579);if(!_0x3b11de||!_0xa59058)return undefined;return getPublishedAppDomain(_0x3b11de)+'/'+encodeURIComponent(_0xa59058);}export function buildCustomPageDevelopmentUrl(_0x32bb64,_0x59c1ad){const _0x2d466f=a203_0x54467d,_0x55c5f8=trimOptional(_0x32bb64),_0x264220=trimOptional(_0x59c1ad);if(!_0x55c5f8||!_0x264220)return undefined;return getAppBaseUrl(_0x55c5f8)+_0x2d466f(0xbd)+encodeURIComponent(_0x264220);}export async function resolveCustomPageDevelopmentUrl(_0x37cd67,_0x4dfe11,_0x38f7d1){const _0x375402=a203_0x54467d,_0x496274=trimOptional(_0x37cd67);if(!_0x496274)return undefined;try{const _0x42cac9=(await fetchMenuSnapshot(_0x496274,_0x38f7d1))[_0x375402(0xba)]['find'](_0x158f6b=>_0x158f6b[_0x375402(0xb1)]===_0x375402(0xb8)&&_0x158f6b[_0x375402(0xb9)]===_0x4dfe11);return buildCustomPageDevelopmentUrl(_0x496274,_0x42cac9?.['path']);}catch{return undefined;}}export function buildCustomPageEditUrl(_0xf1d2ad,_0x3b8b3f){const _0x32812f=trimOptional(_0xf1d2ad);if(!_0x32812f)return;const _0x3b685b=trimOptional(String(_0x3b8b3f??''));if(!_0x3b685b)return;return getAppBaseUrl(_0x32812f)+'/ide/'+encodeURIComponent(_0x3b685b);}export async function validateCustomPageContent(_0x5dc0de){const _0x5534be=a203_0x54467d,_0x260fdd=await validateCustomPageSourceFiles(_0x5dc0de);if(_0x260fdd['length']>0x0)throw CliErrors[_0x5534be(0xc3)](_0x5534be(0xbc)+_0x260fdd[_0x5534be(0xc2)](_0x43b09c=>_0x43b09c[_0x5534be(0xc0)]+':\x20'+_0x43b09c['message'])[_0x5534be(0xb5)](';\x20'));}export function readCustomPageId(_0x13559d){const _0xb2426c=a203_0x54467d,_0x1541d0=_0x13559d['num']('id');if(!Number[_0xb2426c(0xb7)](_0x1541d0)||_0x1541d0<=0x0)throw CliErrors['validation'](_0xb2426c(0xbf));return _0x1541d0;}
1
+ const a203_0x194aae=a203_0x177f;(function(_0x2e247f,_0x34a2c1){const _0x34f33a=a203_0x177f,_0x50caa5=_0x2e247f();while(!![]){try{const _0x100c2f=-parseInt(_0x34f33a(0x1a6))/0x1*(-parseInt(_0x34f33a(0x19d))/0x2)+-parseInt(_0x34f33a(0x198))/0x3*(-parseInt(_0x34f33a(0x1a0))/0x4)+parseInt(_0x34f33a(0x1a2))/0x5+parseInt(_0x34f33a(0x194))/0x6+-parseInt(_0x34f33a(0x197))/0x7*(parseInt(_0x34f33a(0x19f))/0x8)+-parseInt(_0x34f33a(0x1a5))/0x9*(-parseInt(_0x34f33a(0x1a1))/0xa)+-parseInt(_0x34f33a(0x19b))/0xb;if(_0x100c2f===_0x34a2c1)break;else _0x50caa5['push'](_0x50caa5['shift']());}catch(_0x315a73){_0x50caa5['push'](_0x50caa5['shift']());}}}(a203_0xf192,0x359bd));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{getAppBaseUrl,getPublishedAppDomain}from'../../../constant/domain.js';import{CliErrors}from'../../../errors.js';import{validateCustomPageSourceFiles}from'./syntax.js';export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a203_0x194aae(0x199)};function a203_0xf192(){const _0xad5bd=['path','7MJLhSv','475782fucLrh','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','menus','9254960ikKWUx','map','24tgwgpq','isInteger','3181176qFHITK','8NwBGIR','152030hdtZRq','1531205DHVurQ','trim','find','117RpISRz','30921HSDOKm','type','--id\x20must\x20be\x20a\x20positive\x20integer.','/pages/','validation','num','pageId','react','message','1598808WRRKAa','/ide/'];a203_0xf192=function(){return _0xad5bd;};return a203_0xf192();}function trimOptional(_0x5d8200){const _0x4d3d25=a203_0x194aae;return _0x5d8200?.[_0x4d3d25(0x1a3)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x547bb0,_0x12ce37){const _0x315648=trimOptional(_0x547bb0),_0x1dce01=trimOptional(_0x12ce37);if(!_0x315648||!_0x1dce01)return undefined;return getPublishedAppDomain(_0x315648)+'/'+encodeURIComponent(_0x1dce01);}export function buildCustomPageDevelopmentUrl(_0x3e57bd,_0x4d1ccd){const _0x1ebcf6=a203_0x194aae,_0x290bd4=trimOptional(_0x3e57bd),_0x40d991=trimOptional(_0x4d1ccd);if(!_0x290bd4||!_0x40d991)return undefined;return getAppBaseUrl(_0x290bd4)+_0x1ebcf6(0x18e)+encodeURIComponent(_0x40d991);}export async function resolveCustomPageDevelopmentUrl(_0x2fb19a,_0x514517,_0x571323){const _0x1cf30a=a203_0x194aae,_0x4b7d8d=trimOptional(_0x2fb19a);if(!_0x4b7d8d)return undefined;try{const _0x362fa2=(await fetchMenuSnapshot(_0x4b7d8d,_0x571323))[_0x1cf30a(0x19a)][_0x1cf30a(0x1a4)](_0x2f94ec=>_0x2f94ec[_0x1cf30a(0x1a7)]===_0x1cf30a(0x192)&&_0x2f94ec[_0x1cf30a(0x191)]===_0x514517);return buildCustomPageDevelopmentUrl(_0x4b7d8d,_0x362fa2?.[_0x1cf30a(0x196)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0xf8e769,_0x14147d){const _0x174228=a203_0x194aae,_0x4bc83e=trimOptional(_0xf8e769);if(!_0x4bc83e)return;const _0x2ac6c2=trimOptional(String(_0x14147d??''));if(!_0x2ac6c2)return;return getAppBaseUrl(_0x4bc83e)+_0x174228(0x195)+encodeURIComponent(_0x2ac6c2);}function a203_0x177f(_0xa8b89d,_0x24bd0a){_0xa8b89d=_0xa8b89d-0x18d;const _0xf19254=a203_0xf192();let _0x177f24=_0xf19254[_0xa8b89d];return _0x177f24;}export async function validateCustomPageContent(_0x330ae6){const _0x404706=a203_0x194aae,_0x2380ab=await validateCustomPageSourceFiles(_0x330ae6);if(_0x2380ab['length']>0x0)throw CliErrors[_0x404706(0x18f)]('Invalid\x20Custom\x20Page\x20content:\x20'+_0x2380ab[_0x404706(0x19c)](_0x7e7ca0=>_0x7e7ca0['file']+':\x20'+_0x7e7ca0[_0x404706(0x193)])['join'](';\x20'));}export function readCustomPageId(_0x16934b){const _0x27e160=a203_0x194aae,_0x46c92e=_0x16934b[_0x27e160(0x190)]('id');if(!Number[_0x27e160(0x19e)](_0x46c92e)||_0x46c92e<=0x0)throw CliErrors[_0x27e160(0x18f)](_0x27e160(0x18d));return _0x46c92e;}
@@ -1 +1 @@
1
- const a204_0x974567=a204_0x46a9;(function(_0x1fc933,_0x2a3404){const _0x39d061=a204_0x46a9,_0x1dffd9=_0x1fc933();while(!![]){try{const _0x43c4c7=parseInt(_0x39d061(0x117))/0x1*(parseInt(_0x39d061(0x10c))/0x2)+-parseInt(_0x39d061(0x108))/0x3*(-parseInt(_0x39d061(0x116))/0x4)+parseInt(_0x39d061(0x105))/0x5+-parseInt(_0x39d061(0x115))/0x6+-parseInt(_0x39d061(0x119))/0x7*(-parseInt(_0x39d061(0x118))/0x8)+-parseInt(_0x39d061(0x107))/0x9+parseInt(_0x39d061(0x10b))/0xa;if(_0x43c4c7===_0x2a3404)break;else _0x1dffd9['push'](_0x1dffd9['shift']());}catch(_0x1c2285){_0x1dffd9['push'](_0x1dffd9['shift']());}}}(a204_0x5273,0x5007b));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x974567(0x109),'.jsx':a204_0x974567(0x109),'.ts':'typescript','.tsx':a204_0x974567(0x112)},CUSTOM_PAGE_EXTENSIONS=['.jsx','.tsx'];export async function validateCustomPageSourceFiles(_0xd0cca9){const _0x500b32=a204_0x974567,_0x262a01=Object[_0x500b32(0x10d)](_0xd0cca9)[_0x500b32(0x10a)](([_0x41095c])=>getParser(_0x41095c));if(!_0x262a01[_0x500b32(0x114)](([_0x57e4ec])=>isReactSourceFile(_0x57e4ec)))return[{'file':'page\x20files','message':_0x500b32(0x10e)}];const _0x49c0e5=await Promise['all'](_0x262a01[_0x500b32(0x110)](async([_0x2130cf,_0x7cc2a9])=>{const _0x2ec183=_0x500b32;try{return await format(_0x7cc2a9,{'parser':getParser(_0x2130cf)}),undefined;}catch(_0x32a526){return{'file':_0x2130cf,'message':_0x32a526 instanceof Error?_0x32a526[_0x2ec183(0x106)]:String(_0x32a526)};}}));return _0x49c0e5[_0x500b32(0x10a)](_0x1ba781=>_0x1ba781!==undefined);}function a204_0x5273(){const _0x26c2ea=['typescript','endsWith','some','3417342EwFCiX','84124ChKHof','1MhOfrD','2394056WiXqor','7cIhdnc','848075EFKqSB','message','2678508flYdRa','3aVfoyD','babel','filter','3250490bZXSwa','760040CwWdyy','entries','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','toLowerCase','map','trim'];a204_0x5273=function(){return _0x26c2ea;};return a204_0x5273();}function getParser(_0x2482cc){const _0x20d99c=a204_0x974567,_0x39dc93=_0x2482cc[_0x20d99c(0x111)]()[_0x20d99c(0x10f)]();return Object[_0x20d99c(0x10d)](SOURCE_PARSERS)['find'](([_0x18c97e])=>_0x39dc93[_0x20d99c(0x113)](_0x18c97e))?.[0x1];}function a204_0x46a9(_0x484920,_0x29b949){_0x484920=_0x484920-0x105;const _0x527350=a204_0x5273();let _0x46a9f9=_0x527350[_0x484920];return _0x46a9f9;}function isReactSourceFile(_0x260722){const _0x426c0e=a204_0x974567,_0x208f01=_0x260722[_0x426c0e(0x111)]()[_0x426c0e(0x10f)]();return CUSTOM_PAGE_EXTENSIONS[_0x426c0e(0x114)](_0x110aca=>_0x208f01[_0x426c0e(0x113)](_0x110aca));}
1
+ const a204_0x25175c=a204_0x5687;function a204_0x5687(_0x5e1ffc,_0x53f610){_0x5e1ffc=_0x5e1ffc-0x157;const _0xb83654=a204_0xb836();let _0x568781=_0xb83654[_0x5e1ffc];return _0x568781;}(function(_0x388aeb,_0x13f23c){const _0x1f03c3=a204_0x5687,_0x19a25e=_0x388aeb();while(!![]){try{const _0x290591=-parseInt(_0x1f03c3(0x163))/0x1*(-parseInt(_0x1f03c3(0x164))/0x2)+-parseInt(_0x1f03c3(0x15d))/0x3+-parseInt(_0x1f03c3(0x159))/0x4+-parseInt(_0x1f03c3(0x162))/0x5+-parseInt(_0x1f03c3(0x165))/0x6+parseInt(_0x1f03c3(0x16e))/0x7*(parseInt(_0x1f03c3(0x15b))/0x8)+parseInt(_0x1f03c3(0x15f))/0x9;if(_0x290591===_0x13f23c)break;else _0x19a25e['push'](_0x19a25e['shift']());}catch(_0x2ed6e8){_0x19a25e['push'](_0x19a25e['shift']());}}}(a204_0xb836,0xe458a));import{format}from'prettier';const SOURCE_PARSERS={'.js':a204_0x25175c(0x15a),'.jsx':a204_0x25175c(0x15a),'.ts':'typescript','.tsx':a204_0x25175c(0x169)},CUSTOM_PAGE_EXTENSIONS=[a204_0x25175c(0x16d),a204_0x25175c(0x16b)];export async function validateCustomPageSourceFiles(_0xdc0edc){const _0x26c31c=a204_0x25175c,_0x76ee2e=Object[_0x26c31c(0x161)](_0xdc0edc)['filter'](([_0x1084c8])=>getParser(_0x1084c8));if(!_0x76ee2e[_0x26c31c(0x15e)](([_0x3ba6cd])=>isReactSourceFile(_0x3ba6cd)))return[{'file':_0x26c31c(0x158),'message':_0x26c31c(0x16f)}];const _0x2f76e2=await Promise[_0x26c31c(0x15c)](_0x76ee2e[_0x26c31c(0x166)](async([_0x1f3bba,_0x250ca4])=>{const _0x3beef0=_0x26c31c;try{return await format(_0x250ca4,{'parser':getParser(_0x1f3bba)}),undefined;}catch(_0x531d4e){return{'file':_0x1f3bba,'message':_0x531d4e instanceof Error?_0x531d4e[_0x3beef0(0x16a)]:String(_0x531d4e)};}}));return _0x2f76e2[_0x26c31c(0x167)](_0xb99c9a=>_0xb99c9a!==undefined);}function getParser(_0x22ca55){const _0x522e06=a204_0x25175c,_0x24599e=_0x22ca55['trim']()['toLowerCase']();return Object['entries'](SOURCE_PARSERS)[_0x522e06(0x16c)](([_0x1cbd35])=>_0x24599e[_0x522e06(0x168)](_0x1cbd35))?.[0x1];}function a204_0xb836(){const _0x2d0bdd=['715882uFLCbp','196200PESudd','map','filter','endsWith','typescript','message','.tsx','find','.jsx','21mzsoUN','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','toLowerCase','page\x20files','5735492UNDdqD','babel','388192nCvcPg','all','1431348vlXMGY','some','16825302PoVaYW','trim','entries','4628800HpHKuI','5vKISSa'];a204_0xb836=function(){return _0x2d0bdd;};return a204_0xb836();}function isReactSourceFile(_0x10ba00){const _0x6e358f=a204_0x25175c,_0x52c3df=_0x10ba00[_0x6e358f(0x160)]()[_0x6e358f(0x157)]();return CUSTOM_PAGE_EXTENSIONS[_0x6e358f(0x15e)](_0x28e840=>_0x52c3df[_0x6e358f(0x168)](_0x28e840));}
@@ -1 +1 @@
1
- const a205_0x2cb9e4=a205_0x3e41;(function(_0x537309,_0x49985e){const _0x55d572=a205_0x3e41,_0x8444e1=_0x537309();while(!![]){try{const _0x437870=-parseInt(_0x55d572(0x104))/0x1*(-parseInt(_0x55d572(0x108))/0x2)+parseInt(_0x55d572(0x10c))/0x3*(-parseInt(_0x55d572(0xfe))/0x4)+parseInt(_0x55d572(0x10a))/0x5+-parseInt(_0x55d572(0x110))/0x6+-parseInt(_0x55d572(0xff))/0x7*(-parseInt(_0x55d572(0x102))/0x8)+parseInt(_0x55d572(0x11c))/0x9*(-parseInt(_0x55d572(0x10b))/0xa)+-parseInt(_0x55d572(0x11e))/0xb*(-parseInt(_0x55d572(0x11f))/0xc);if(_0x437870===_0x49985e)break;else _0x8444e1['push'](_0x8444e1['shift']());}catch(_0x57772b){_0x8444e1['push'](_0x8444e1['shift']());}}}(a205_0x51aa,0x650cc));function a205_0x51aa(){const _0x1d3fd2=['isInteger','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','2775776FRpaXy','number','518yUnqKd','pageContent','custom-update','str','538aRKOJJ','appCode','22680RchOUA','20DBnUUK','72834hpymSh','newVersion','string','Directory\x20containing\x20all\x20complete\x20page\x20files','688776hRYNku','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','page-dir','trim','/smartapi/webcode/page/update/content','pageId','Custom\x20Page\x20ID','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','page.custom-update','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','page','validation','2171646ROhFiy','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','21098HLcdPj','3408fyOrGF','compress','4EsEsKs','7mcaRhw'];a205_0x51aa=function(){return _0x1d3fd2;};return a205_0x51aa();}import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a205_0x3e41(_0x1c1f6a,_0x291952){_0x1c1f6a=_0x1c1f6a-0xfe;const _0x51aaad=a205_0x51aa();let _0x3e4136=_0x51aaad[_0x1c1f6a];return _0x3e4136;}export const pageCustomUpdate={'service':a205_0x2cb9e4(0x11a),'command':a205_0x2cb9e4(0x106),'description':a205_0x2cb9e4(0x119),'risk':'write','defaultOutputFormat':a205_0x2cb9e4(0x120),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':'page-content','message':a205_0x2cb9e4(0x111),'hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'id','type':a205_0x2cb9e4(0x103),'required':!![],'description':a205_0x2cb9e4(0x116)},{'name':'page-dir','type':a205_0x2cb9e4(0x10e),'required':!![],'description':a205_0x2cb9e4(0x10f)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x9d480e){readCustomPageId(_0x9d480e),await readValidatedPageContent(_0x9d480e);},async 'dryRun'(_0x17ce10){const _0x5c18f3=a205_0x2cb9e4,_0x3a10f4=await readInput(_0x17ce10);return{'method':'POST','url':_0x5c18f3(0x114),'body':{'id':_0x3a10f4[_0x5c18f3(0x115)],'codeContent':_0x3a10f4[_0x5c18f3(0x105)]},'description':_0x5c18f3(0x117)+_0x3a10f4[_0x5c18f3(0x115)]+'.'};},async 'execute'(_0x303314){const _0x1d3712=a205_0x2cb9e4,_0xc21e38=await readInput(_0x303314),_0x511754=await updateCustomPageContent({'pageId':_0xc21e38['pageId'],'pageContent':_0xc21e38['pageContent']});if(!Number[_0x1d3712(0x100)](_0x511754[_0x1d3712(0x10d)])||_0x511754[_0x1d3712(0x10d)]<=0x0)throw CliErrors['apiError']('Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.');const _0x50bb59=buildCustomPageEditUrl(_0xc21e38['appCode'],_0xc21e38[_0x1d3712(0x115)]),_0xcc2c7e=await resolveCustomPageDevelopmentUrl(_0xc21e38['appCode'],_0xc21e38['pageId'],_0x303314['cookie']);return{'ok':!![],'data':{'operation':_0x1d3712(0x118),'selector':{'appCode':_0xc21e38[_0x1d3712(0x109)],'pageId':_0xc21e38[_0x1d3712(0x115)]},'before':null,'after':{'pageId':_0x511754[_0x1d3712(0x115)],'version':_0x511754[_0x1d3712(0x10d)],'pageContent':_0xc21e38[_0x1d3712(0x105)]},'dryRun':![],'request':_0xc21e38,..._0xcc2c7e?{'pageUrl':_0xcc2c7e}:{},..._0x50bb59?{'editPageUrl':_0x50bb59}:{},'warnings':_0xcc2c7e?[]:[_0x1d3712(0x11d)]},'message':'Updated\x20Custom\x20Page\x20'+_0xc21e38['pageId']+'.'};}};async function readInput(_0x40ed66){const _0x5a261a=a205_0x2cb9e4,_0x132a0f=readCustomPageId(_0x40ed66),_0x17a85e=_0x40ed66[_0x5a261a(0x107)]('appcode')['trim']()||(await getCustomPageSource(_0x132a0f))[_0x5a261a(0x109)]?.[_0x5a261a(0x113)]();if(!_0x17a85e)throw CliErrors[_0x5a261a(0x11b)](_0x5a261a(0x101)+_0x132a0f+'.');return{'appCode':_0x17a85e,'pageId':_0x132a0f,'pageContent':await readValidatedPageContent(_0x40ed66)};}async function readValidatedPageContent(_0x209287){const _0x24dea5=a205_0x2cb9e4,_0x14231c=await readCustomPageDirectory(_0x209287[_0x24dea5(0x107)](_0x24dea5(0x112)));return await validateCustomPageContent(_0x14231c),_0x14231c;}
1
+ const a205_0x4dee5f=a205_0x24b3;(function(_0x3d3d87,_0x32c215){const _0x54aed9=a205_0x24b3,_0x42e814=_0x3d3d87();while(!![]){try{const _0x1ec002=-parseInt(_0x54aed9(0x1ff))/0x1*(parseInt(_0x54aed9(0x1fb))/0x2)+parseInt(_0x54aed9(0x1f8))/0x3*(parseInt(_0x54aed9(0x1eb))/0x4)+parseInt(_0x54aed9(0x1fc))/0x5+-parseInt(_0x54aed9(0x1fd))/0x6+parseInt(_0x54aed9(0x1ea))/0x7*(-parseInt(_0x54aed9(0x1f5))/0x8)+parseInt(_0x54aed9(0x1de))/0x9+-parseInt(_0x54aed9(0x1f2))/0xa;if(_0x1ec002===_0x32c215)break;else _0x42e814['push'](_0x42e814['shift']());}catch(_0xce2e4c){_0x42e814['push'](_0x42e814['shift']());}}}(a205_0x2aa6,0xb9219));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';import{readCustomPageDirectory}from'../../../core/page/file-system.js';function a205_0x24b3(_0x13b865,_0x4c4674){_0x13b865=_0x13b865-0x1de;const _0x2aa6f4=a205_0x2aa6();let _0x24b3e8=_0x2aa6f4[_0x13b865];return _0x24b3e8;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';function a205_0x2aa6(){const _0x29929e=['validation','apiError','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','string','POST','1349929cxAiCi','169996vdfxMo','trim','str','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','isInteger','cookie','4231160cqxNae','newVersion','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','16IZqfdk','write','pageContent','57dJrlgs','page.custom-update','appCode','489038KaUvlk','4478125lMfFip','3060750FZcXNq','number','2ZxHOSc','appcode','Custom\x20Page\x20ID','7768476BVEMbo','page-dir','Updated\x20Custom\x20Page\x20','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','/smartapi/webcode/page/update/content','pageId'];a205_0x2aa6=function(){return _0x29929e;};return a205_0x2aa6();}export const pageCustomUpdate={'service':'page','command':'custom-update','description':a205_0x4dee5f(0x1e7),'risk':a205_0x4dee5f(0x1f6),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':'page-content','message':'page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','hint':a205_0x4dee5f(0x1e1)}],'flags':[{'name':'id','type':a205_0x4dee5f(0x1fe),'required':!![],'description':a205_0x4dee5f(0x201)},{'name':a205_0x4dee5f(0x1df),'type':a205_0x4dee5f(0x1e8),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4cd3c5){readCustomPageId(_0x4cd3c5),await readValidatedPageContent(_0x4cd3c5);},async 'dryRun'(_0x10a1d1){const _0x494932=a205_0x4dee5f,_0x407ee4=await readInput(_0x10a1d1);return{'method':_0x494932(0x1e9),'url':_0x494932(0x1e3),'body':{'id':_0x407ee4['pageId'],'codeContent':_0x407ee4[_0x494932(0x1f7)]},'description':_0x494932(0x1ef)+_0x407ee4[_0x494932(0x1e4)]+'.'};},async 'execute'(_0x5ad430){const _0x29610a=a205_0x4dee5f,_0x3ab4f8=await readInput(_0x5ad430),_0x7ee5f=await updateCustomPageContent({'pageId':_0x3ab4f8[_0x29610a(0x1e4)],'pageContent':_0x3ab4f8[_0x29610a(0x1f7)]});if(!Number[_0x29610a(0x1f0)](_0x7ee5f[_0x29610a(0x1f3)])||_0x7ee5f[_0x29610a(0x1f3)]<=0x0)throw CliErrors[_0x29610a(0x1e6)](_0x29610a(0x1e2));const _0x5d354b=buildCustomPageEditUrl(_0x3ab4f8[_0x29610a(0x1fa)],_0x3ab4f8[_0x29610a(0x1e4)]),_0xd4fbfd=await resolveCustomPageDevelopmentUrl(_0x3ab4f8[_0x29610a(0x1fa)],_0x3ab4f8[_0x29610a(0x1e4)],_0x5ad430[_0x29610a(0x1f1)]);return{'ok':!![],'data':{'operation':_0x29610a(0x1f9),'selector':{'appCode':_0x3ab4f8[_0x29610a(0x1fa)],'pageId':_0x3ab4f8[_0x29610a(0x1e4)]},'before':null,'after':{'pageId':_0x7ee5f[_0x29610a(0x1e4)],'version':_0x7ee5f[_0x29610a(0x1f3)],'pageContent':_0x3ab4f8[_0x29610a(0x1f7)]},'dryRun':![],'request':_0x3ab4f8,..._0xd4fbfd?{'pageUrl':_0xd4fbfd}:{},..._0x5d354b?{'editPageUrl':_0x5d354b}:{},'warnings':_0xd4fbfd?[]:[_0x29610a(0x1ee)]},'message':_0x29610a(0x1e0)+_0x3ab4f8[_0x29610a(0x1e4)]+'.'};}};async function readInput(_0x493dba){const _0x21ebf1=a205_0x4dee5f,_0x577786=readCustomPageId(_0x493dba),_0x22c9de=_0x493dba[_0x21ebf1(0x1ed)](_0x21ebf1(0x200))[_0x21ebf1(0x1ec)]()||(await getCustomPageSource(_0x577786))[_0x21ebf1(0x1fa)]?.['trim']();if(!_0x22c9de)throw CliErrors[_0x21ebf1(0x1e5)](_0x21ebf1(0x1f4)+_0x577786+'.');return{'appCode':_0x22c9de,'pageId':_0x577786,'pageContent':await readValidatedPageContent(_0x493dba)};}async function readValidatedPageContent(_0x15444f){const _0x22b8e2=a205_0x4dee5f,_0x4b271d=await readCustomPageDirectory(_0x15444f['str'](_0x22b8e2(0x1df)));return await validateCustomPageContent(_0x4b271d),_0x4b271d;}
@@ -1 +1 @@
1
- const a206_0x149579=a206_0x1a97;(function(_0x67ede7,_0x37ddc4){const _0x3605bf=a206_0x1a97,_0x1026c5=_0x67ede7();while(!![]){try{const _0xd38620=-parseInt(_0x3605bf(0x78))/0x1+-parseInt(_0x3605bf(0x7a))/0x2*(-parseInt(_0x3605bf(0x84))/0x3)+-parseInt(_0x3605bf(0x90))/0x4*(parseInt(_0x3605bf(0x7b))/0x5)+parseInt(_0x3605bf(0x8a))/0x6+parseInt(_0x3605bf(0x91))/0x7*(parseInt(_0x3605bf(0x8d))/0x8)+parseInt(_0x3605bf(0x80))/0x9+parseInt(_0x3605bf(0x79))/0xa*(-parseInt(_0x3605bf(0x86))/0xb);if(_0xd38620===_0x37ddc4)break;else _0x1026c5['push'](_0x1026c5['shift']());}catch(_0x1a1f2b){_0x1026c5['push'](_0x1026c5['shift']());}}}(a206_0x42aa,0x66d19));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a206_0x42aa(){const _0x5f2b21=['appCode','source','manualResolutionRequired','3IDgRZa','code','99garoXx','/smartapi/lovrabet/dataset/','/standard-page-status?appCode=','alias','4823490LMPKwF','page','query-data-list-status','800UZyEWs','string','status','372WhqYql','34923zQgpVx','relatedPages','length','522382niUKFA','1172670ULDQdT','1188782kURgJj','2945lDbJHR','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','related-pages-fallback','read','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','1408509jNHxPk'];a206_0x42aa=function(){return _0x5f2b21;};return a206_0x42aa();}import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a206_0x1a97(_0x26f257,_0xa97be){_0x26f257=_0x26f257-0x78;const _0x42aa68=a206_0x42aa();let _0x1a9753=_0x42aa68[_0x26f257];return _0x1a9753;}export const pageDataListStatus={'service':a206_0x149579(0x8b),'command':'data-list-status','description':a206_0x149579(0x7c),'risk':a206_0x149579(0x7e),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x149579(0x89),'type':a206_0x149579(0x8e),'description':a206_0x149579(0x7f)}],async 'validate'(_0x4cdfbe){validateDatasetSelector(_0x4cdfbe);},async 'dryRun'(_0x9f7bbc){const _0x44d7cd=a206_0x149579,_0x23df1e=await loadDatasetDetailForPage(_0x9f7bbc);return{'method':'GET','url':_0x44d7cd(0x87)+_0x23df1e['code']+_0x44d7cd(0x88)+encodeURIComponent(_0x9f7bbc[_0x44d7cd(0x81)]),'description':serializeDryRunDescription({'dataset':{'id':_0x23df1e['id'],'code':_0x23df1e[_0x44d7cd(0x85)],'name':_0x23df1e['name']},'action':_0x44d7cd(0x8c)})};},async 'execute'(_0x26c77f){const _0x1cf64c=a206_0x149579,_0x316eb8=await loadDatasetDetailForPage(_0x26c77f),_0x598dd1=await loadDataListPageStatusForGenerate(_0x26c77f,_0x316eb8['code']),_0x2fb701=getUndeletedRelatedPages(_0x316eb8),_0x58a80e=assessDataListPageState(_0x316eb8[_0x1cf64c(0x85)],_0x598dd1,{'fallbackUndeletedPages':_0x2fb701});return{'ok':!![],'data':{'datasetCode':_0x316eb8[_0x1cf64c(0x85)],'precheckSource':_0x598dd1?.[_0x1cf64c(0x82)]??_0x1cf64c(0x7d),'status':_0x58a80e[_0x1cf64c(0x8f)],'manualResolutionRequired':_0x58a80e[_0x1cf64c(0x83)],'nextAction':_0x58a80e['nextAction'],'dataListPageStatus':_0x598dd1,'relatedPages':{'total':_0x316eb8[_0x1cf64c(0x92)][_0x1cf64c(0x93)],'undeletedCount':_0x2fb701['length']}}};}};
1
+ const a206_0x39d1f3=a206_0x2257;(function(_0x370340,_0x55191a){const _0xe72b12=a206_0x2257,_0x10e6ad=_0x370340();while(!![]){try{const _0x2a9140=-parseInt(_0xe72b12(0xa5))/0x1*(-parseInt(_0xe72b12(0xb3))/0x2)+parseInt(_0xe72b12(0xa3))/0x3+parseInt(_0xe72b12(0xb0))/0x4*(-parseInt(_0xe72b12(0xa8))/0x5)+parseInt(_0xe72b12(0x99))/0x6*(parseInt(_0xe72b12(0xa7))/0x7)+parseInt(_0xe72b12(0x9c))/0x8*(parseInt(_0xe72b12(0xac))/0x9)+-parseInt(_0xe72b12(0xa2))/0xa*(parseInt(_0xe72b12(0x9b))/0xb)+parseInt(_0xe72b12(0x9f))/0xc*(-parseInt(_0xe72b12(0xaf))/0xd);if(_0x2a9140===_0x55191a)break;else _0x10e6ad['push'](_0x10e6ad['shift']());}catch(_0xcd5061){_0x10e6ad['push'](_0x10e6ad['shift']());}}}(a206_0x5ec6,0x7fd5f));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';export const pageDataListStatus={'service':'page','command':a206_0x39d1f3(0xb1),'description':a206_0x39d1f3(0xa9),'risk':a206_0x39d1f3(0xb2),'defaultOutputFormat':a206_0x39d1f3(0xa0),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a206_0x39d1f3(0x9a),'type':a206_0x39d1f3(0xa1),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x51a7dc){validateDatasetSelector(_0x51a7dc);},async 'dryRun'(_0x18aefb){const _0x50ca08=a206_0x39d1f3,_0x42cbc4=await loadDatasetDetailForPage(_0x18aefb);return{'method':'GET','url':_0x50ca08(0xa6)+_0x42cbc4[_0x50ca08(0x9e)]+'/standard-page-status?appCode='+encodeURIComponent(_0x18aefb[_0x50ca08(0xae)]),'description':serializeDryRunDescription({'dataset':{'id':_0x42cbc4['id'],'code':_0x42cbc4[_0x50ca08(0x9e)],'name':_0x42cbc4['name']},'action':_0x50ca08(0xab)})};},async 'execute'(_0x5848f1){const _0x7efe59=a206_0x39d1f3,_0x59b944=await loadDatasetDetailForPage(_0x5848f1),_0x4a8fb0=await loadDataListPageStatusForGenerate(_0x5848f1,_0x59b944['code']),_0x1748b0=getUndeletedRelatedPages(_0x59b944),_0x1956aa=assessDataListPageState(_0x59b944[_0x7efe59(0x9e)],_0x4a8fb0,{'fallbackUndeletedPages':_0x1748b0});return{'ok':!![],'data':{'datasetCode':_0x59b944['code'],'precheckSource':_0x4a8fb0?.[_0x7efe59(0x9d)]??_0x7efe59(0xa4),'status':_0x1956aa[_0x7efe59(0xaa)],'manualResolutionRequired':_0x1956aa['manualResolutionRequired'],'nextAction':_0x1956aa['nextAction'],'dataListPageStatus':_0x4a8fb0,'relatedPages':{'total':_0x59b944['relatedPages'][_0x7efe59(0xad)],'undeletedCount':_0x1748b0['length']}}};}};function a206_0x2257(_0x2aaaec,_0x1d3a48){_0x2aaaec=_0x2aaaec-0x99;const _0x5ec6b4=a206_0x5ec6();let _0x2257d6=_0x5ec6b4[_0x2aaaec];return _0x2257d6;}function a206_0x5ec6(){const _0x529d65=['1116QsXwHE','compress','string','10TAxlJd','427323gNJWLt','related-pages-fallback','286068BYoSmn','/smartapi/lovrabet/dataset/','7wjbsck','5690ZkjCju','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','status','query-data-list-status','45mZQpKA','length','appCode','38415ibDINI','1304QJSjvX','data-list-status','read','6ApPtrk','2354118rrnPoX','alias','9851545cHPubK','1075224duqMgZ','source','code'];a206_0x5ec6=function(){return _0x529d65;};return a206_0x5ec6();}
@@ -1 +1 @@
1
- const a207_0x1febf9=a207_0x19a6;(function(_0x454cea,_0x26f9bb){const _0x2bf40c=a207_0x19a6,_0x2d131a=_0x454cea();while(!![]){try{const _0x6b1e45=-parseInt(_0x2bf40c(0xbe))/0x1+parseInt(_0x2bf40c(0x9b))/0x2+-parseInt(_0x2bf40c(0xbf))/0x3+-parseInt(_0x2bf40c(0x9f))/0x4*(-parseInt(_0x2bf40c(0x99))/0x5)+-parseInt(_0x2bf40c(0xcd))/0x6*(parseInt(_0x2bf40c(0xa9))/0x7)+-parseInt(_0x2bf40c(0xb6))/0x8*(-parseInt(_0x2bf40c(0xbc))/0x9)+parseInt(_0x2bf40c(0xc0))/0xa;if(_0x6b1e45===_0x26f9bb)break;else _0x2d131a['push'](_0x2d131a['shift']());}catch(_0x233563){_0x2d131a['push'](_0x2d131a['shift']());}}}(a207_0x33e8,0x9cde8));function a207_0x33e8(){const _0x4fd63b=['reused','progressRate','126200yLNBzZ','generate-start','manualResolutionRequired','CRUD_PAGE_SET','Submitted\x20a\x20generate\x20task','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','27pumIbg','precheck','194669dzQzqu','3613359EJurYb','12176410LvctlA','source','write','currentStep','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','dataListPageStatus','DATA_LIST','related-pages-fallback','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','/smartapi/lovrabet/dataset/','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','/generate-standard-pages/start','compress','483534ajKnwO','5570oxYxgK','number','1705882JFCIHc','clientOperationId','page-type','POST','3488wGtSkR','string','status','appCode','taskId','nextAction','page','Reusing\x20an\x20existing\x20generate\x20task','allowGenerate','name','91cpQAlz','alias','page-pattern','dryRun','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','code','operationId','apply','message','PARTIAL_SUCCESS','dataset'];a207_0x33e8=function(){return _0x4fd63b;};return a207_0x33e8();}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';function a207_0x19a6(_0x2f12a1,_0x45f5d4){_0x2f12a1=_0x2f12a1-0x99;const _0x33e8d2=a207_0x33e8();let _0x19a63d=_0x33e8d2[_0x2f12a1];return _0x19a63d;}export const pageGenerateStart={'service':a207_0x1febf9(0xa5),'command':'generate-start','description':'Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','risk':a207_0x1febf9(0xc2),'defaultOutputFormat':a207_0x1febf9(0xcc),'rejectedFlags':[{'name':a207_0x1febf9(0x9d),'message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','hint':a207_0x1febf9(0xca)},{'name':a207_0x1febf9(0xab),'message':a207_0x1febf9(0xad),'hint':a207_0x1febf9(0xc8)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x1febf9(0xaa),'type':a207_0x1febf9(0xa0),'description':a207_0x1febf9(0xbb)},{'name':a207_0x1febf9(0xb0),'type':'boolean','description':'Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.'}],async 'validate'(_0x3a949f){validateDatasetSelector(_0x3a949f);},async 'dryRun'(_0x20dbc9){const _0x21c63b=a207_0x1febf9,_0x1585ac=await prepare(_0x20dbc9);return{'method':_0x21c63b(0x9e),'url':_0x21c63b(0xc9)+_0x1585ac[_0x21c63b(0xb3)][_0x21c63b(0xae)]+_0x21c63b(0xcb),'body':{'appCode':_0x20dbc9[_0x21c63b(0xa2)],'clientOperationId':_0x1585ac[_0x21c63b(0x9c)]},'description':serializeDryRunDescription({'dataset':{'id':_0x1585ac[_0x21c63b(0xb3)]['id'],'code':_0x1585ac[_0x21c63b(0xb3)][_0x21c63b(0xae)],'name':_0x1585ac[_0x21c63b(0xb3)][_0x21c63b(0xa8)],'fieldCount':_0x1585ac[_0x21c63b(0xb3)]['fieldCount']},'precheckSource':_0x1585ac[_0x21c63b(0xc5)]?.['source']??_0x21c63b(0xc7),'action':_0x21c63b(0xb7),'clientOperationId':_0x1585ac['clientOperationId'],'plannedStatus':_0x1585ac[_0x21c63b(0xbd)][_0x21c63b(0xa1)],'reason':_0x1585ac[_0x21c63b(0xbd)][_0x21c63b(0xb1)]})};},async 'execute'(_0x5aa070){const _0x5da014=a207_0x1febf9;if(!_0x5aa070['bool'](_0x5da014(0xb0))){const _0xcbb608=await pageGenerateStart[_0x5da014(0xac)](_0x5aa070);return{'ok':!![],'message':_0x5da014(0xc4),'data':_0xcbb608};}const _0xdeaf53=await prepare(_0x5aa070);if(!_0xdeaf53[_0x5da014(0xbd)][_0x5da014(0xa7)])return{'ok':![],'message':_0xdeaf53[_0x5da014(0xbd)][_0x5da014(0xb1)],'data':{'datasetCode':_0xdeaf53[_0x5da014(0xb3)]['code'],'pageType':_0x5da014(0xc6),'pagePattern':_0x5da014(0xb9),'clientOperationId':_0xdeaf53['clientOperationId'],'precheckSource':_0xdeaf53[_0x5da014(0xc5)]?.[_0x5da014(0xc1)]??_0x5da014(0xc7),'status':_0xdeaf53[_0x5da014(0xbd)]['status'],'manualResolutionRequired':_0xdeaf53['precheck'][_0x5da014(0xb8)],'nextAction':_0xdeaf53[_0x5da014(0xbd)][_0x5da014(0xa4)],'query':{'command':buildDataListPageStatusQueryCommand(_0xdeaf53[_0x5da014(0xb3)][_0x5da014(0xae)],_0x5aa070[_0x5da014(0xa2)])},'dataListPageStatus':_0xdeaf53[_0x5da014(0xc5)]}};const _0x5ce18c=await startGenerateDataListPages(_0x5aa070['appCode'],_0xdeaf53['dataset'][_0x5da014(0xae)],{'clientOperationId':_0xdeaf53[_0x5da014(0x9c)]}),_0x3af576=_0x5ce18c[_0x5da014(0xa1)]==='SUCCESS'||_0x5ce18c[_0x5da014(0xa1)]===_0x5da014(0xb2)?await loadDataListPageStatusForGenerate(_0x5aa070,_0xdeaf53[_0x5da014(0xb3)][_0x5da014(0xae)]):null,_0x4ab5f8=assessGenerateOperationState(_0xdeaf53[_0x5da014(0xb3)][_0x5da014(0xae)],_0x5ce18c['status'],_0x3af576);return{'ok':!![],'message':_0x5ce18c[_0x5da014(0xb4)]?_0x5da014(0xa6):_0x5da014(0xba),'data':{'datasetCode':_0xdeaf53[_0x5da014(0xb3)]['code'],'appCode':_0x5aa070['appCode'],'pageType':_0x5da014(0xc6),'pagePattern':_0x5da014(0xb9),'taskId':_0x5ce18c['taskId']??null,'operationId':_0x5ce18c[_0x5da014(0xaf)]??null,'clientOperationId':_0xdeaf53[_0x5da014(0x9c)],'jobStatus':_0x5ce18c[_0x5da014(0xa1)]??null,'progressRate':typeof _0x5ce18c['progressRate']===_0x5da014(0x9a)?_0x5ce18c[_0x5da014(0xb5)]:null,'currentStep':_0x5ce18c[_0x5da014(0xc3)]??null,'reused':_0x5ce18c[_0x5da014(0xb4)]===!![],'status':_0x4ab5f8[_0x5da014(0xa1)],'manualResolutionRequired':_0x4ab5f8[_0x5da014(0xb8)],'nextAction':_0x4ab5f8[_0x5da014(0xa4)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0xdeaf53[_0x5da014(0xb3)][_0x5da014(0xae)],{'appCode':_0x5aa070[_0x5da014(0xa2)],'taskId':_0x5ce18c[_0x5da014(0xa3)],'operationId':_0x5ce18c['operationId'],'clientOperationId':_0xdeaf53[_0x5da014(0x9c)]})},'dataListPageStatus':_0x3af576}};}};async function prepare(_0x4acdfb){const _0xbfc20b=a207_0x1febf9,_0x3a0cad=await loadDatasetDetailForPage(_0x4acdfb),_0x50961b=await loadDataListPageStatusForGenerate(_0x4acdfb,_0x3a0cad[_0xbfc20b(0xae)]),_0x3ec088=getUndeletedRelatedPages(_0x3a0cad);return{'dataset':_0x3a0cad,'dataListPageStatus':_0x50961b,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x3a0cad[_0xbfc20b(0xae)],_0x50961b,{'fallbackUndeletedPages':_0x3ec088})};}
1
+ function a207_0xb20a(_0x24c6c3,_0x5258d9){_0x24c6c3=_0x24c6c3-0xd4;const _0x18ef5f=a207_0x18ef();let _0xb20a0b=_0x18ef5f[_0x24c6c3];return _0xb20a0b;}const a207_0x1cd5ce=a207_0xb20a;(function(_0x386288,_0x54a0ec){const _0x4bc872=a207_0xb20a,_0x4802cf=_0x386288();while(!![]){try{const _0x579387=parseInt(_0x4bc872(0xe9))/0x1+parseInt(_0x4bc872(0xec))/0x2+parseInt(_0x4bc872(0xd8))/0x3*(-parseInt(_0x4bc872(0xf0))/0x4)+-parseInt(_0x4bc872(0xd5))/0x5+parseInt(_0x4bc872(0xea))/0x6+-parseInt(_0x4bc872(0xfc))/0x7+parseInt(_0x4bc872(0xe4))/0x8;if(_0x579387===_0x54a0ec)break;else _0x4802cf['push'](_0x4802cf['shift']());}catch(_0x11d452){_0x4802cf['push'](_0x4802cf['shift']());}}}(a207_0x18ef,0x5c01a));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessDataListPageState,buildPageGenerateOperationStatusQueryCommand,buildDataListPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a207_0x18ef(){const _0x21118d=['appCode','page-pattern','73492wuMeOG','fieldCount','manualResolutionRequired','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','taskId','related-pages-fallback','compress','alias','name','nextAction','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','3246880WLJVzR','allowGenerate','PARTIAL_SUCCESS','precheck','boolean','source','number','status','/generate-standard-pages/start','3461610wlRpaO','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','progressRate','21GIhjsx','clientOperationId','DATA_LIST','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','generate-start','dataListPageStatus','reused','POST','Reusing\x20an\x20existing\x20generate\x20task','code','dataset','operationId','5108192tsnAht','message','Submitted\x20a\x20generate\x20task','/smartapi/lovrabet/dataset/','page','289451tvNekO','2792412FJgLMM','CRUD_PAGE_SET','536508uCuTfl','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'];a207_0x18ef=function(){return _0x21118d;};return a207_0x18ef();}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a207_0x1cd5ce(0xe8),'command':a207_0x1cd5ce(0xdc),'description':a207_0x1cd5ce(0xdb),'risk':'write','defaultOutputFormat':a207_0x1cd5ce(0xf7),'rejectedFlags':[{'name':'page-type','message':a207_0x1cd5ce(0xd6),'hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':a207_0x1cd5ce(0xef),'message':a207_0x1cd5ce(0xfb),'hint':a207_0x1cd5ce(0xf4)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a207_0x1cd5ce(0xf8),'type':'string','description':a207_0x1cd5ce(0xed)},{'name':'apply','type':a207_0x1cd5ce(0x100),'description':'Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.'}],async 'validate'(_0x5c138e){validateDatasetSelector(_0x5c138e);},async 'dryRun'(_0x442ebb){const _0x475cb6=a207_0x1cd5ce,_0x508941=await prepare(_0x442ebb);return{'method':_0x475cb6(0xdf),'url':_0x475cb6(0xe7)+_0x508941['dataset'][_0x475cb6(0xe1)]+_0x475cb6(0xd4),'body':{'appCode':_0x442ebb['appCode'],'clientOperationId':_0x508941[_0x475cb6(0xd9)]},'description':serializeDryRunDescription({'dataset':{'id':_0x508941[_0x475cb6(0xe2)]['id'],'code':_0x508941[_0x475cb6(0xe2)][_0x475cb6(0xe1)],'name':_0x508941['dataset'][_0x475cb6(0xf9)],'fieldCount':_0x508941[_0x475cb6(0xe2)][_0x475cb6(0xf1)]},'precheckSource':_0x508941[_0x475cb6(0xdd)]?.[_0x475cb6(0x101)]??_0x475cb6(0xf6),'action':_0x475cb6(0xdc),'clientOperationId':_0x508941[_0x475cb6(0xd9)],'plannedStatus':_0x508941[_0x475cb6(0xff)][_0x475cb6(0x103)],'reason':_0x508941['precheck']['message']})};},async 'execute'(_0xf3f7){const _0x476189=a207_0x1cd5ce;if(!_0xf3f7['bool']('apply')){const _0x4f0875=await pageGenerateStart['dryRun'](_0xf3f7);return{'ok':!![],'message':_0x476189(0xf3),'data':_0x4f0875};}const _0x3ecc56=await prepare(_0xf3f7);if(!_0x3ecc56['precheck'][_0x476189(0xfd)])return{'ok':![],'message':_0x3ecc56[_0x476189(0xff)][_0x476189(0xe5)],'data':{'datasetCode':_0x3ecc56[_0x476189(0xe2)]['code'],'pageType':_0x476189(0xda),'pagePattern':_0x476189(0xeb),'clientOperationId':_0x3ecc56['clientOperationId'],'precheckSource':_0x3ecc56['dataListPageStatus']?.['source']??_0x476189(0xf6),'status':_0x3ecc56[_0x476189(0xff)][_0x476189(0x103)],'manualResolutionRequired':_0x3ecc56[_0x476189(0xff)][_0x476189(0xf2)],'nextAction':_0x3ecc56[_0x476189(0xff)][_0x476189(0xfa)],'query':{'command':buildDataListPageStatusQueryCommand(_0x3ecc56[_0x476189(0xe2)]['code'],_0xf3f7[_0x476189(0xee)])},'dataListPageStatus':_0x3ecc56[_0x476189(0xdd)]}};const _0x1485e1=await startGenerateDataListPages(_0xf3f7['appCode'],_0x3ecc56[_0x476189(0xe2)][_0x476189(0xe1)],{'clientOperationId':_0x3ecc56[_0x476189(0xd9)]}),_0x30e030=_0x1485e1[_0x476189(0x103)]==='SUCCESS'||_0x1485e1['status']===_0x476189(0xfe)?await loadDataListPageStatusForGenerate(_0xf3f7,_0x3ecc56['dataset'][_0x476189(0xe1)]):null,_0x8a038b=assessGenerateOperationState(_0x3ecc56[_0x476189(0xe2)][_0x476189(0xe1)],_0x1485e1[_0x476189(0x103)],_0x30e030);return{'ok':!![],'message':_0x1485e1[_0x476189(0xde)]?_0x476189(0xe0):_0x476189(0xe6),'data':{'datasetCode':_0x3ecc56[_0x476189(0xe2)][_0x476189(0xe1)],'appCode':_0xf3f7['appCode'],'pageType':_0x476189(0xda),'pagePattern':'CRUD_PAGE_SET','taskId':_0x1485e1[_0x476189(0xf5)]??null,'operationId':_0x1485e1[_0x476189(0xe3)]??null,'clientOperationId':_0x3ecc56[_0x476189(0xd9)],'jobStatus':_0x1485e1[_0x476189(0x103)]??null,'progressRate':typeof _0x1485e1[_0x476189(0xd7)]===_0x476189(0x102)?_0x1485e1['progressRate']:null,'currentStep':_0x1485e1['currentStep']??null,'reused':_0x1485e1[_0x476189(0xde)]===!![],'status':_0x8a038b[_0x476189(0x103)],'manualResolutionRequired':_0x8a038b[_0x476189(0xf2)],'nextAction':_0x8a038b['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x3ecc56['dataset']['code'],{'appCode':_0xf3f7['appCode'],'taskId':_0x1485e1[_0x476189(0xf5)],'operationId':_0x1485e1[_0x476189(0xe3)],'clientOperationId':_0x3ecc56[_0x476189(0xd9)]})},'dataListPageStatus':_0x30e030}};}};async function prepare(_0x51b3d6){const _0x49ec8c=a207_0x1cd5ce,_0x5ee693=await loadDatasetDetailForPage(_0x51b3d6),_0x4c0e82=await loadDataListPageStatusForGenerate(_0x51b3d6,_0x5ee693[_0x49ec8c(0xe1)]),_0x41f00a=getUndeletedRelatedPages(_0x5ee693);return{'dataset':_0x5ee693,'dataListPageStatus':_0x4c0e82,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x5ee693['code'],_0x4c0e82,{'fallbackUndeletedPages':_0x41f00a})};}
@@ -1 +1 @@
1
- const a208_0x71dccb=a208_0x3efc;function a208_0x5268(){const _0x2d371c=['operationId','GET','clientOperationId','4KdNNei','code','operation-id','appCode','nextAction','errorMsg','read','470637LsQjgn','message','client-operation-id','SUCCESS','/smartapi/lovrabet/dataset/','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','manualResolutionRequired','currentStep','toString','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','12364767Imvvmz','135701uDjaBw','str','10ixJpMQ','1417605iqTJsM','progressRate','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','status','934828kAtoJw','2682815PiTUiW','PARTIAL_SUCCESS','page','6rvbaiJ','task-id','taskId','set','/generate-standard-pages/status?','number','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','name','string','4807400gUhbYX'];a208_0x5268=function(){return _0x2d371c;};return a208_0x5268();}(function(_0x5eb131,_0x4e93ba){const _0x28a9b9=a208_0x3efc,_0x5c9e91=_0x5eb131();while(!![]){try{const _0x318041=-parseInt(_0x28a9b9(0x94))/0x1+-parseInt(_0x28a9b9(0x9b))/0x2+parseInt(_0x28a9b9(0xb3))/0x3*(-parseInt(_0x28a9b9(0xac))/0x4)+parseInt(_0x28a9b9(0x9c))/0x5*(parseInt(_0x28a9b9(0x9f))/0x6)+-parseInt(_0x28a9b9(0x97))/0x7+-parseInt(_0x28a9b9(0xa8))/0x8+parseInt(_0x28a9b9(0x93))/0x9*(parseInt(_0x28a9b9(0x96))/0xa);if(_0x318041===_0x4e93ba)break;else _0x5c9e91['push'](_0x5c9e91['shift']());}catch(_0x1cb73c){_0x5c9e91['push'](_0x5c9e91['shift']());}}}(a208_0x5268,0x54b70));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a208_0x3efc(_0x7adba5,_0x562e88){_0x7adba5=_0x7adba5-0x8c;const _0x5268cd=a208_0x5268();let _0x3efc5=_0x5268cd[_0x7adba5];return _0x3efc5;}import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a208_0x71dccb(0x9e),'command':'generate-status','description':a208_0x71dccb(0xa5),'risk':a208_0x71dccb(0xb2),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a208_0x71dccb(0xa7),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a208_0x71dccb(0xa0),'type':'string','description':a208_0x71dccb(0x92)},{'name':a208_0x71dccb(0xae),'type':'string','description':a208_0x71dccb(0x8e)},{'name':a208_0x71dccb(0xb5),'type':'string','description':a208_0x71dccb(0x99)}],async 'validate'(_0xdec24c){validateDatasetSelector(_0xdec24c),validateGenerateOperationSelector(_0xdec24c);},async 'dryRun'(_0xcea1c1){const _0x4d5187=a208_0x71dccb,_0x33db19=await loadDatasetDetailForPage(_0xcea1c1),_0x3ead50=_0xcea1c1['str'](_0x4d5187(0xa0)),_0x571011=_0xcea1c1['str'](_0x4d5187(0xae)),_0x6933b6=_0xcea1c1['str'](_0x4d5187(0xb5)),_0xaded7=new URLSearchParams({'appCode':_0xcea1c1['appCode']});return _0x3ead50&&_0xaded7[_0x4d5187(0xa2)](_0x4d5187(0xa1),_0x3ead50),_0x571011&&_0xaded7['set'](_0x4d5187(0xa9),_0x571011),_0x6933b6&&_0xaded7['set'](_0x4d5187(0xab),_0x6933b6),{'method':_0x4d5187(0xaa),'url':_0x4d5187(0x8d)+_0x33db19[_0x4d5187(0xad)]+_0x4d5187(0xa3)+_0xaded7[_0x4d5187(0x91)](),'description':serializeDryRunDescription({'dataset':{'id':_0x33db19['id'],'code':_0x33db19[_0x4d5187(0xad)],'name':_0x33db19[_0x4d5187(0xa6)]},'action':'query-generate-operation-status','taskId':_0x3ead50||undefined,'operationId':_0x571011||undefined,'clientOperationId':_0x6933b6||undefined})};},async 'execute'(_0x5624f7){const _0x1f58a7=a208_0x71dccb,_0x387b0d=await loadDatasetDetailForPage(_0x5624f7),_0x2c8e1a=_0x5624f7[_0x1f58a7(0x95)](_0x1f58a7(0xa0)),_0x147a6b=_0x5624f7['str'](_0x1f58a7(0xae)),_0x40c0c0=_0x5624f7['str'](_0x1f58a7(0xb5)),_0x2f2530=await getGenerateDataListPagesStatus(_0x5624f7[_0x1f58a7(0xaf)],_0x387b0d[_0x1f58a7(0xad)],{'taskId':_0x2c8e1a||undefined,'operationId':_0x147a6b||undefined,'clientOperationId':_0x40c0c0||undefined}),_0x29cfb8=_0x2f2530[_0x1f58a7(0x9a)]===_0x1f58a7(0x8c)||_0x2f2530[_0x1f58a7(0x9a)]===_0x1f58a7(0x9d),_0x35c39e=_0x29cfb8?await loadDataListPageStatusForGenerate(_0x5624f7,_0x387b0d[_0x1f58a7(0xad)]):null,_0x22a508=assessGenerateOperationState(_0x387b0d['code'],_0x2f2530[_0x1f58a7(0x9a)],_0x35c39e),_0x85596=_0x2f2530[_0x1f58a7(0xa1)]??_0x2c8e1a??undefined,_0x25eaf0=_0x2f2530[_0x1f58a7(0xa9)]??_0x147a6b??undefined,_0x1a4a82=_0x2f2530[_0x1f58a7(0xab)]??_0x40c0c0??undefined;return{'ok':!![],'message':_0x22a508[_0x1f58a7(0x9a)]==='operation_failed'?_0x2f2530[_0x1f58a7(0xb1)]||_0x22a508[_0x1f58a7(0xb4)]:_0x22a508[_0x1f58a7(0xb4)],'data':{'datasetCode':_0x387b0d[_0x1f58a7(0xad)],'appCode':_0x5624f7[_0x1f58a7(0xaf)],'taskId':_0x85596,'operationId':_0x25eaf0,'clientOperationId':_0x1a4a82,'jobStatus':_0x2f2530['status']??null,'progressRate':typeof _0x2f2530[_0x1f58a7(0x98)]===_0x1f58a7(0xa4)?_0x2f2530[_0x1f58a7(0x98)]:null,'currentStep':_0x2f2530[_0x1f58a7(0x90)]??null,'errorMsg':_0x2f2530[_0x1f58a7(0xb1)]??null,'status':_0x22a508[_0x1f58a7(0x9a)],'manualResolutionRequired':_0x22a508[_0x1f58a7(0x8f)],'nextAction':_0x22a508[_0x1f58a7(0xb0)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x387b0d['code'],{'appCode':_0x5624f7[_0x1f58a7(0xaf)],'taskId':_0x85596,'operationId':_0x25eaf0,'clientOperationId':_0x1a4a82})},'dataListPageStatus':_0x35c39e,'result':_0x2f2530['result']??null}};}};
1
+ function a208_0x16f2(_0x4f792f,_0x3b1806){_0x4f792f=_0x4f792f-0xb2;const _0x2fe543=a208_0x2fe5();let _0x16f2a6=_0x2fe543[_0x4f792f];return _0x16f2a6;}const a208_0x2223eb=a208_0x16f2;(function(_0x172722,_0x405e95){const _0x248fa8=a208_0x16f2,_0x236134=_0x172722();while(!![]){try{const _0x4f4e05=parseInt(_0x248fa8(0xc5))/0x1*(-parseInt(_0x248fa8(0xb9))/0x2)+parseInt(_0x248fa8(0xdd))/0x3+parseInt(_0x248fa8(0xd2))/0x4+-parseInt(_0x248fa8(0xc0))/0x5*(parseInt(_0x248fa8(0xb2))/0x6)+-parseInt(_0x248fa8(0xd9))/0x7+parseInt(_0x248fa8(0xc1))/0x8+-parseInt(_0x248fa8(0xb8))/0x9*(parseInt(_0x248fa8(0xd0))/0xa);if(_0x4f4e05===_0x405e95)break;else _0x236134['push'](_0x236134['shift']());}catch(_0x5c882f){_0x236134['push'](_0x236134['shift']());}}}(a208_0x2fe5,0xb9b7d));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';function a208_0x2fe5(){const _0x40c237=['appCode','operation-id','taskId','status','result','operationId','progressRate','GET','SUCCESS','read','338570hnSetB','query-generate-operation-status','3127720coXODL','/smartapi/lovrabet/dataset/','name','compress','str','errorMsg','string','3242974sMwaJz','toString','message','alias','1427478IpreUf','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','nextAction','489522hLSqYK','page','generate-status','operation_failed','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','set','171llahXX','2QQDhVC','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','task-id','currentStep','Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','PARTIAL_SUCCESS','clientOperationId','5xMtHUV','10736064mjGhAm','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','client-operation-id','code','650911mfNZcw'];a208_0x2fe5=function(){return _0x40c237;};return a208_0x2fe5();}export const pageGenerateStatus={'service':a208_0x2223eb(0xb3),'command':a208_0x2223eb(0xb4),'description':a208_0x2223eb(0xbd),'risk':a208_0x2223eb(0xcf),'defaultOutputFormat':a208_0x2223eb(0xd5),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a208_0x2223eb(0xdc),'type':a208_0x2223eb(0xd8),'description':a208_0x2223eb(0xde)},{'name':a208_0x2223eb(0xbb),'type':a208_0x2223eb(0xd8),'description':a208_0x2223eb(0xba)},{'name':'operation-id','type':a208_0x2223eb(0xd8),'description':a208_0x2223eb(0xb6)},{'name':a208_0x2223eb(0xc3),'type':a208_0x2223eb(0xd8),'description':a208_0x2223eb(0xc2)}],async 'validate'(_0x151803){validateDatasetSelector(_0x151803),validateGenerateOperationSelector(_0x151803);},async 'dryRun'(_0x10e25a){const _0x5953dd=a208_0x2223eb,_0x4d33e5=await loadDatasetDetailForPage(_0x10e25a),_0x1f7c5d=_0x10e25a['str'](_0x5953dd(0xbb)),_0x297cbd=_0x10e25a['str'](_0x5953dd(0xc7)),_0x4edfdf=_0x10e25a[_0x5953dd(0xd6)](_0x5953dd(0xc3)),_0x4e8d09=new URLSearchParams({'appCode':_0x10e25a['appCode']});return _0x1f7c5d&&_0x4e8d09[_0x5953dd(0xb7)](_0x5953dd(0xc8),_0x1f7c5d),_0x297cbd&&_0x4e8d09['set']('operationId',_0x297cbd),_0x4edfdf&&_0x4e8d09[_0x5953dd(0xb7)]('clientOperationId',_0x4edfdf),{'method':_0x5953dd(0xcd),'url':_0x5953dd(0xd3)+_0x4d33e5['code']+'/generate-standard-pages/status?'+_0x4e8d09[_0x5953dd(0xda)](),'description':serializeDryRunDescription({'dataset':{'id':_0x4d33e5['id'],'code':_0x4d33e5[_0x5953dd(0xc4)],'name':_0x4d33e5[_0x5953dd(0xd4)]},'action':_0x5953dd(0xd1),'taskId':_0x1f7c5d||undefined,'operationId':_0x297cbd||undefined,'clientOperationId':_0x4edfdf||undefined})};},async 'execute'(_0x14382f){const _0x4cff3c=a208_0x2223eb,_0x28591f=await loadDatasetDetailForPage(_0x14382f),_0x3cdeda=_0x14382f[_0x4cff3c(0xd6)](_0x4cff3c(0xbb)),_0x183c3d=_0x14382f[_0x4cff3c(0xd6)]('operation-id'),_0xf13106=_0x14382f[_0x4cff3c(0xd6)](_0x4cff3c(0xc3)),_0x12e818=await getGenerateDataListPagesStatus(_0x14382f[_0x4cff3c(0xc6)],_0x28591f[_0x4cff3c(0xc4)],{'taskId':_0x3cdeda||undefined,'operationId':_0x183c3d||undefined,'clientOperationId':_0xf13106||undefined}),_0x366ef8=_0x12e818['status']===_0x4cff3c(0xce)||_0x12e818[_0x4cff3c(0xc9)]===_0x4cff3c(0xbe),_0x3fc063=_0x366ef8?await loadDataListPageStatusForGenerate(_0x14382f,_0x28591f[_0x4cff3c(0xc4)]):null,_0x2683ba=assessGenerateOperationState(_0x28591f['code'],_0x12e818[_0x4cff3c(0xc9)],_0x3fc063),_0x4f7b7a=_0x12e818[_0x4cff3c(0xc8)]??_0x3cdeda??undefined,_0xc6a961=_0x12e818[_0x4cff3c(0xcb)]??_0x183c3d??undefined,_0x48de4d=_0x12e818[_0x4cff3c(0xbf)]??_0xf13106??undefined;return{'ok':!![],'message':_0x2683ba[_0x4cff3c(0xc9)]===_0x4cff3c(0xb5)?_0x12e818['errorMsg']||_0x2683ba[_0x4cff3c(0xdb)]:_0x2683ba[_0x4cff3c(0xdb)],'data':{'datasetCode':_0x28591f[_0x4cff3c(0xc4)],'appCode':_0x14382f[_0x4cff3c(0xc6)],'taskId':_0x4f7b7a,'operationId':_0xc6a961,'clientOperationId':_0x48de4d,'jobStatus':_0x12e818['status']??null,'progressRate':typeof _0x12e818[_0x4cff3c(0xcc)]==='number'?_0x12e818[_0x4cff3c(0xcc)]:null,'currentStep':_0x12e818[_0x4cff3c(0xbc)]??null,'errorMsg':_0x12e818[_0x4cff3c(0xd7)]??null,'status':_0x2683ba[_0x4cff3c(0xc9)],'manualResolutionRequired':_0x2683ba['manualResolutionRequired'],'nextAction':_0x2683ba[_0x4cff3c(0xdf)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x28591f['code'],{'appCode':_0x14382f[_0x4cff3c(0xc6)],'taskId':_0x4f7b7a,'operationId':_0xc6a961,'clientOperationId':_0x48de4d})},'dataListPageStatus':_0x3fc063,'result':_0x12e818[_0x4cff3c(0xca)]??null}};}};
@@ -1 +1 @@
1
- function a209_0x31e5(_0x3f30c0,_0x484ebe){_0x3f30c0=_0x3f30c0-0x1e4;const _0x8b6c9d=a209_0x8b6c();let _0x31e56d=_0x8b6c9d[_0x3f30c0];return _0x31e56d;}(function(_0x3bd075,_0x4271d4){const _0x2fb7cf=a209_0x31e5,_0x3b3cc1=_0x3bd075();while(!![]){try{const _0x3131b5=parseInt(_0x2fb7cf(0x1e4))/0x1+parseInt(_0x2fb7cf(0x1e6))/0x2*(-parseInt(_0x2fb7cf(0x1e5))/0x3)+-parseInt(_0x2fb7cf(0x1e7))/0x4+parseInt(_0x2fb7cf(0x1ec))/0x5+-parseInt(_0x2fb7cf(0x1eb))/0x6+parseInt(_0x2fb7cf(0x1ea))/0x7*(parseInt(_0x2fb7cf(0x1e9))/0x8)+parseInt(_0x2fb7cf(0x1e8))/0x9;if(_0x3131b5===_0x4271d4)break;else _0x3b3cc1['push'](_0x3b3cc1['shift']());}catch(_0x5b4091){_0x3b3cc1['push'](_0x3b3cc1['shift']());}}}(a209_0x8b6c,0xdddcb));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageDataListStatus}from'../../commands/page/data-list-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';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];function a209_0x8b6c(){const _0x2dead3=['3359166GmxEgH','6779530XVCIEe','409580lOiZHO','68136VrrCus','156zyVAfP','5605992ReCGjP','18346626KOkFcO','85912OEaFFi','546eVDMZN'];a209_0x8b6c=function(){return _0x2dead3;};return a209_0x8b6c();}
1
+ (function(_0x3d1e76,_0x517ae3){const _0x417d57=a209_0x5215,_0x50681a=_0x3d1e76();while(!![]){try{const _0x5678ae=parseInt(_0x417d57(0x1d3))/0x1+-parseInt(_0x417d57(0x1d1))/0x2+-parseInt(_0x417d57(0x1d5))/0x3*(-parseInt(_0x417d57(0x1d4))/0x4)+-parseInt(_0x417d57(0x1d6))/0x5*(-parseInt(_0x417d57(0x1d0))/0x6)+-parseInt(_0x417d57(0x1d2))/0x7*(parseInt(_0x417d57(0x1ce))/0x8)+parseInt(_0x417d57(0x1d7))/0x9*(parseInt(_0x417d57(0x1cf))/0xa)+-parseInt(_0x417d57(0x1d8))/0xb;if(_0x5678ae===_0x517ae3)break;else _0x50681a['push'](_0x50681a['shift']());}catch(_0x45e30b){_0x50681a['push'](_0x50681a['shift']());}}}(a209_0x526a,0xebc44));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';function a209_0x526a(){const _0x2054dd=['801792gGKoYF','546959LXUkpI','1457793AuYejF','37396eXdkop','318FbRNwC','10ddddtu','9AwGSZH','21770881TXVHlo','88ifddgJ','702790Saaixn','5058624PsqMTa'];a209_0x526a=function(){return _0x2054dd;};return a209_0x526a();}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';function a209_0x5215(_0x940223,_0xe0eee8){_0x940223=_0x940223-0x1ce;const _0x526a67=a209_0x526a();let _0x52155c=_0x526a67[_0x940223];return _0x52155c;}import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';import{pageCustomPublish}from'../../commands/page/custom/publish.js';import{pageCustomUpdate}from'../../commands/page/custom/update.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageDataListStatus,pageRelationAudit,pageSync,pagePull,pagePush,pageRestore,pageCreate,pageCustomList,pageCustomDetail,pageCustomPublish,pageCustomUpdate];
@@ -1 +1 @@
1
- const a210_0x139b1b=a210_0x2aac;(function(_0x2ff231,_0xf422a9){const _0x5c29fb=a210_0x2aac,_0x5bd7db=_0x2ff231();while(!![]){try{const _0x50e523=parseInt(_0x5c29fb(0xcc))/0x1+-parseInt(_0x5c29fb(0xae))/0x2+-parseInt(_0x5c29fb(0xa9))/0x3+parseInt(_0x5c29fb(0xab))/0x4+parseInt(_0x5c29fb(0xaf))/0x5*(parseInt(_0x5c29fb(0xb0))/0x6)+parseInt(_0x5c29fb(0xc7))/0x7+-parseInt(_0x5c29fb(0xc1))/0x8;if(_0x50e523===_0xf422a9)break;else _0x5bd7db['push'](_0x5bd7db['shift']());}catch(_0xede726){_0x5bd7db['push'](_0x5bd7db['shift']());}}}(a210_0x2d6e,0xf2921));import{writeFile}from'node:fs/promises';function a210_0x2aac(_0x413542,_0x5c8311){_0x413542=_0x413542-0xa7;const _0x2d6e28=a210_0x2d6e();let _0x2aac8e=_0x2d6e28[_0x413542];return _0x2aac8e;}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';function a210_0x2d6e(){const _0x198084=['all','code','1677778qjKyYf','boolean','pull','version-tag','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','\x20skipped','datasetIds','type','conflict','string','pageId','name','/smartapi/lovrabet/detail?pageId=','Pull\x20page\x20schema\x20to\x20local\x20files','pageVersion','detail','push','pages','filter','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','reason','single','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','local\x20unsynced\x20changes','3137736RjYJtB','\x20pulled,\x20','1891340LebJkT','bool','hash','2834822cetYYw','6155gXUewy','1782BltHXU','Dataset\x20\x22','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','would_pull','lockFilePath','map','datasetCode','GET','versionTag','compress','validation','relatedPages','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','items','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','length','status','1372312UQMeKa','mode','str','toISOString','localPath','force','7785477nyzKxh','utf8','appCode'];a210_0x2d6e=function(){return _0x198084;};return a210_0x2d6e();}import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':'page','command':a210_0x139b1b(0xce),'description':a210_0x139b1b(0xd9),'risk':'read','defaultOutputFormat':a210_0x139b1b(0xb9),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a210_0x139b1b(0xd5),'description':a210_0x139b1b(0xb2)},{'name':'version-tag','type':'string','description':a210_0x139b1b(0xe2)},{'name':'force','type':a210_0x139b1b(0xcd),'description':a210_0x139b1b(0xbe)}],async 'validate'(_0x265ff6){validatePageTargetSelector(_0x265ff6);},async 'dryRun'(_0x304aff){const _0x4c8fc5=a210_0x139b1b,_0x502a6d=await buildPullPlan(_0x304aff);return{'method':_0x4c8fc5(0xb7),'url':_0x502a6d['mode']===_0x4c8fc5(0xe1)?_0x4c8fc5(0xd8)+(_0x502a6d[_0x4c8fc5(0xbd)][0x0]?.['detail'][_0x4c8fc5(0xd6)]??''):_0x4c8fc5(0xdf),'body':{'appCode':_0x304aff[_0x4c8fc5(0xc9)],'mode':_0x502a6d['mode'],'targetDatasetCode':_0x502a6d['datasetCode']??null,'pages':_0x502a6d[_0x4c8fc5(0xbd)][_0x4c8fc5(0xb5)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x502a6d[_0x4c8fc5(0xc2)],'datasetCode':_0x502a6d[_0x4c8fc5(0xb6)]??null,'totalCandidates':_0x502a6d['items'][_0x4c8fc5(0xbf)],'totalWouldPull':_0x502a6d['items'][_0x4c8fc5(0xde)](_0x49f936=>_0x49f936['status']===_0x4c8fc5(0xb3))[_0x4c8fc5(0xbf)],'totalConflicts':_0x502a6d[_0x4c8fc5(0xbd)]['filter'](_0xa44c1b=>_0xa44c1b[_0x4c8fc5(0xc0)]===_0x4c8fc5(0xd4))[_0x4c8fc5(0xbf)]})};},async 'execute'(_0x5944e7){const _0x379d4b=a210_0x139b1b,_0x408891=loadPageProjectConfig(_0x5944e7[_0x379d4b(0xc9)]),_0x2ca73f=await readPageLockFile(_0x408891[_0x379d4b(0xb4)]),{lockData:_0x4aa768,appLock:_0x5a3901}=ensurePageLockScope(_0x2ca73f??createEmptyPageLock(),_0x5944e7[_0x379d4b(0xc9)]),_0x2a0fe7=await buildPullPlan(_0x5944e7),_0x1f9ccc=_0x5944e7[_0x379d4b(0xac)](_0x379d4b(0xc6));if(_0x2a0fe7['mode']===_0x379d4b(0xe1)&&_0x2a0fe7[_0x379d4b(0xbd)][0x0]?.[_0x379d4b(0xc0)]===_0x379d4b(0xd4)&&!_0x1f9ccc)throw CliErrors[_0x379d4b(0xba)](_0x379d4b(0xa7)+_0x2a0fe7['items'][0x0][_0x379d4b(0xc5)],_0x379d4b(0xbc));const _0x124c6a=[],_0x549fc3=[];for(const _0x1f4279 of _0x2a0fe7[_0x379d4b(0xbd)]){if(_0x1f4279[_0x379d4b(0xc0)]===_0x379d4b(0xd4)&&!_0x1f9ccc){_0x549fc3[_0x379d4b(0xdc)]({'pageId':_0x1f4279[_0x379d4b(0xdb)][_0x379d4b(0xd6)],'type':_0x1f4279['detail'][_0x379d4b(0xd3)],'title':_0x1f4279[_0x379d4b(0xdb)]['name'],'localPath':_0x1f4279[_0x379d4b(0xc5)],'reason':_0x1f4279[_0x379d4b(0xe0)]??_0x379d4b(0xa8)});continue;}await ensureParentDirectory(_0x1f4279[_0x379d4b(0xc5)]);const _0x3615ce=serializePageSchemaForFile(_0x1f4279[_0x379d4b(0xdb)]['code']);await writeFile(_0x1f4279[_0x379d4b(0xc5)],_0x3615ce,_0x379d4b(0xc8)),_0x5a3901[_0x379d4b(0xdd)][String(_0x1f4279[_0x379d4b(0xdb)][_0x379d4b(0xd6)])]=buildLockEntry(_0x1f4279[_0x379d4b(0xdb)],_0x3615ce),_0x124c6a[_0x379d4b(0xdc)]({'pageId':_0x1f4279['detail']['pageId'],'type':_0x1f4279[_0x379d4b(0xdb)][_0x379d4b(0xd3)],'title':_0x1f4279['detail']['name'],'localPath':_0x1f4279[_0x379d4b(0xc5)]});}return _0x5a3901['lastSync']=new Date()[_0x379d4b(0xc4)](),await writePageLockFile(_0x408891['lockFilePath'],_0x4aa768),{'ok':!![],'message':'Pull\x20complete:\x20'+_0x124c6a[_0x379d4b(0xbf)]+_0x379d4b(0xaa)+_0x549fc3[_0x379d4b(0xbf)]+_0x379d4b(0xd1),'data':{'appCode':_0x5944e7['appCode'],'pulledPages':_0x124c6a,'skippedPages':_0x549fc3,'totalPulled':_0x124c6a[_0x379d4b(0xbf)],'totalSkipped':_0x549fc3['length']}};}};async function buildPullPlan(_0x4745c0){const _0x30d2fd=a210_0x139b1b,_0x43371f=loadPageProjectConfig(_0x4745c0[_0x30d2fd(0xc9)]),_0x5e02c2=await readPageLockFile(_0x43371f['lockFilePath']),{appLock:_0x19a82b}=ensurePageLockScope(_0x5e02c2??createEmptyPageLock(),_0x4745c0[_0x30d2fd(0xc9)]),_0x1c54db=getPageIdFlag(_0x4745c0);if(_0x1c54db!==undefined){const _0x152389=await loadPageDetailForPage(_0x4745c0,_0x1c54db);return{'mode':_0x30d2fd(0xe1),'items':[await inspectPullTarget(_0x43371f,_0x19a82b[_0x30d2fd(0xdd)][String(_0x152389[_0x30d2fd(0xd6)])],_0x152389)]};}const _0x131055=await loadDatasetDetailForPage(_0x4745c0),_0x3fe2f8=_0x131055[_0x30d2fd(0xbb)]['filter'](_0x146027=>!_0x146027['deleted']);if(_0x3fe2f8['length']===0x0)throw CliErrors[_0x30d2fd(0xba)](_0x30d2fd(0xb1)+_0x131055['code']+_0x30d2fd(0xd0));const _0x206153=await Promise['all'](_0x3fe2f8[_0x30d2fd(0xb5)](_0x4b9feb=>loadPageDetailForPage(_0x4745c0,_0x4b9feb['id']))),_0x1ce00b=selectVersionTagGroup(_0x206153,_0x16b9f8=>_0x16b9f8[_0x30d2fd(0xb8)],_0x4745c0[_0x30d2fd(0xc3)](_0x30d2fd(0xcf)));return{'mode':'batch','datasetCode':_0x131055[_0x30d2fd(0xcb)],'items':await Promise[_0x30d2fd(0xca)](_0x1ce00b[_0x30d2fd(0xbd)][_0x30d2fd(0xb5)](_0x1e13d7=>inspectPullTarget(_0x43371f,_0x19a82b[_0x30d2fd(0xdd)][String(_0x1e13d7['pageId'])],_0x1e13d7)))};}async function inspectPullTarget(_0x32702b,_0x53e73a,_0x18cec2){const _0x6cb7c8=a210_0x139b1b,_0x2f82b3=resolvePageFilePath(_0x32702b,_0x18cec2['pageId'],_0x18cec2[_0x6cb7c8(0xd3)]),_0x830efd=await fileExists(_0x2f82b3);if(!_0x830efd){const _0x4e7feb=serializePageSchemaForFile(_0x18cec2[_0x6cb7c8(0xcb)]);return{'detail':_0x18cec2,'localPath':_0x2f82b3,'localHash':computePageContentHash(_0x4e7feb),'status':_0x6cb7c8(0xb3)};}const _0x616934=await computePageFileHash(_0x2f82b3);if(!_0x53e73a||_0x616934!==_0x53e73a[_0x6cb7c8(0xad)])return{'detail':_0x18cec2,'localPath':_0x2f82b3,'localHash':_0x616934,'status':_0x6cb7c8(0xd4),'reason':_0x6cb7c8(0xa8)};return{'detail':_0x18cec2,'localPath':_0x2f82b3,'localHash':_0x616934,'status':_0x6cb7c8(0xb3)};}function buildLockEntry(_0x118ba6,_0x4895a5){const _0xbf7704=a210_0x139b1b;return{'hash':computePageContentHash(_0x4895a5),'pageId':_0x118ba6[_0xbf7704(0xd6)],'pageVersion':_0x118ba6[_0xbf7704(0xda)],'type':_0x118ba6['type'],'title':_0x118ba6['name'],'datasetIds':_0x118ba6[_0xbf7704(0xd2)],'versionTag':_0x118ba6['versionTag']};}function toPreviewItem(_0x28dfff){const _0x2ba846=a210_0x139b1b;return{'pageId':_0x28dfff[_0x2ba846(0xdb)][_0x2ba846(0xd6)],'type':_0x28dfff['detail'][_0x2ba846(0xd3)],'title':_0x28dfff[_0x2ba846(0xdb)][_0x2ba846(0xd7)],'localPath':_0x28dfff[_0x2ba846(0xc5)],'status':_0x28dfff[_0x2ba846(0xc0)],..._0x28dfff['reason']?{'reason':_0x28dfff[_0x2ba846(0xe0)]}:{}};}
1
+ const a210_0x33bf80=a210_0x1a7c;(function(_0x303688,_0xb7d963){const _0x442443=a210_0x1a7c,_0x1266eb=_0x303688();while(!![]){try{const _0x5a1efe=-parseInt(_0x442443(0x9b))/0x1+parseInt(_0x442443(0xa8))/0x2*(-parseInt(_0x442443(0x87))/0x3)+parseInt(_0x442443(0xb4))/0x4*(parseInt(_0x442443(0xa2))/0x5)+-parseInt(_0x442443(0xb2))/0x6*(parseInt(_0x442443(0xb7))/0x7)+parseInt(_0x442443(0x92))/0x8*(parseInt(_0x442443(0x8d))/0x9)+-parseInt(_0x442443(0xa6))/0xa+parseInt(_0x442443(0xc3))/0xb;if(_0x5a1efe===_0xb7d963)break;else _0x1266eb['push'](_0x1266eb['shift']());}catch(_0x3a8a10){_0x1266eb['push'](_0x1266eb['shift']());}}}(a210_0x13a7,0x70b97));import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';function a210_0x1a7c(_0x3231dd,_0x7b71f2){_0x3231dd=_0x3231dd-0x85;const _0x13a7b7=a210_0x13a7();let _0x1a7cd6=_0x13a7b7[_0x3231dd];return _0x1a7cd6;}function a210_0x13a7(){const _0x1e6ff4=['627712VlWiHF','map','would_pull','lastSync','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','pull','page','20vpasZJ','Pull\x20page\x20schema\x20to\x20local\x20files','filter','name','6091990trjlDh','single','237526mdYXUv','all','push','Dataset\x20\x22','type','mode','length','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','toISOString','216sayaEb','Page\x20ID','242036YNvrXP','GET','lockFilePath','153482DQEEEc','datasetIds','read','local\x20unsynced\x20changes','\x20skipped','code','versionTag','str','items','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','batch','/smartapi/lovrabet/detail?pageId=','28053025xhTmFI','validation','conflict','detail','21MWZcvY','pageVersion','appCode','version-tag','string','Pull\x20complete:\x20','18iWQnST','relatedPages','datasetCode','pages','\x20pulled,\x20','2107984kfZwZp','hash','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','reason','number','localPath','pageId','force','status'];a210_0x13a7=function(){return _0x1e6ff4;};return a210_0x13a7();}import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':a210_0x33bf80(0xa1),'command':a210_0x33bf80(0xa0),'description':a210_0x33bf80(0xa3),'risk':a210_0x33bf80(0xb9),'defaultOutputFormat':'compress','flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a210_0x33bf80(0x96),'description':a210_0x33bf80(0xb3)},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a210_0x33bf80(0x8b),'description':a210_0x33bf80(0xc0)},{'name':'version-tag','type':a210_0x33bf80(0x8b),'description':a210_0x33bf80(0xaf)},{'name':a210_0x33bf80(0x99),'type':'boolean','description':a210_0x33bf80(0x94)}],async 'validate'(_0xeef388){validatePageTargetSelector(_0xeef388);},async 'dryRun'(_0x5aeba7){const _0x238064=a210_0x33bf80,_0x24c66f=await buildPullPlan(_0x5aeba7);return{'method':_0x238064(0xb5),'url':_0x24c66f[_0x238064(0xad)]===_0x238064(0xa7)?_0x238064(0xc2)+(_0x24c66f[_0x238064(0xbf)][0x0]?.[_0x238064(0x86)][_0x238064(0x98)]??''):'/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','body':{'appCode':_0x5aeba7['appCode'],'mode':_0x24c66f['mode'],'targetDatasetCode':_0x24c66f['datasetCode']??null,'pages':_0x24c66f['items'][_0x238064(0x9c)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x24c66f['mode'],'datasetCode':_0x24c66f[_0x238064(0x8f)]??null,'totalCandidates':_0x24c66f['items'][_0x238064(0xae)],'totalWouldPull':_0x24c66f[_0x238064(0xbf)][_0x238064(0xa4)](_0xce4cf3=>_0xce4cf3['status']===_0x238064(0x9d))['length'],'totalConflicts':_0x24c66f['items'][_0x238064(0xa4)](_0x173165=>_0x173165[_0x238064(0x9a)]===_0x238064(0x85))[_0x238064(0xae)]})};},async 'execute'(_0x14d642){const _0x4b9578=a210_0x33bf80,_0x306c0a=loadPageProjectConfig(_0x14d642[_0x4b9578(0x89)]),_0x181347=await readPageLockFile(_0x306c0a[_0x4b9578(0xb6)]),{lockData:_0x23e842,appLock:_0x277494}=ensurePageLockScope(_0x181347??createEmptyPageLock(),_0x14d642[_0x4b9578(0x89)]),_0x366b49=await buildPullPlan(_0x14d642),_0x4914c7=_0x14d642['bool']('force');if(_0x366b49['mode']===_0x4b9578(0xa7)&&_0x366b49['items'][0x0]?.[_0x4b9578(0x9a)]===_0x4b9578(0x85)&&!_0x4914c7)throw CliErrors['validation'](_0x4b9578(0x9f)+_0x366b49['items'][0x0][_0x4b9578(0x97)],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x325041=[],_0x30d685=[];for(const _0x1916ea of _0x366b49[_0x4b9578(0xbf)]){if(_0x1916ea[_0x4b9578(0x9a)]===_0x4b9578(0x85)&&!_0x4914c7){_0x30d685[_0x4b9578(0xaa)]({'pageId':_0x1916ea['detail'][_0x4b9578(0x98)],'type':_0x1916ea[_0x4b9578(0x86)][_0x4b9578(0xac)],'title':_0x1916ea[_0x4b9578(0x86)][_0x4b9578(0xa5)],'localPath':_0x1916ea[_0x4b9578(0x97)],'reason':_0x1916ea['reason']??'local\x20unsynced\x20changes'});continue;}await ensureParentDirectory(_0x1916ea[_0x4b9578(0x97)]);const _0xf93e7c=serializePageSchemaForFile(_0x1916ea[_0x4b9578(0x86)][_0x4b9578(0xbc)]);await writeFile(_0x1916ea[_0x4b9578(0x97)],_0xf93e7c,'utf8'),_0x277494[_0x4b9578(0x90)][String(_0x1916ea[_0x4b9578(0x86)][_0x4b9578(0x98)])]=buildLockEntry(_0x1916ea[_0x4b9578(0x86)],_0xf93e7c),_0x325041[_0x4b9578(0xaa)]({'pageId':_0x1916ea[_0x4b9578(0x86)][_0x4b9578(0x98)],'type':_0x1916ea[_0x4b9578(0x86)][_0x4b9578(0xac)],'title':_0x1916ea['detail'][_0x4b9578(0xa5)],'localPath':_0x1916ea[_0x4b9578(0x97)]});}return _0x277494[_0x4b9578(0x9e)]=new Date()[_0x4b9578(0xb1)](),await writePageLockFile(_0x306c0a[_0x4b9578(0xb6)],_0x23e842),{'ok':!![],'message':_0x4b9578(0x8c)+_0x325041['length']+_0x4b9578(0x91)+_0x30d685['length']+_0x4b9578(0xbb),'data':{'appCode':_0x14d642[_0x4b9578(0x89)],'pulledPages':_0x325041,'skippedPages':_0x30d685,'totalPulled':_0x325041['length'],'totalSkipped':_0x30d685[_0x4b9578(0xae)]}};}};async function buildPullPlan(_0x11fe24){const _0x24ee50=a210_0x33bf80,_0x1b19a1=loadPageProjectConfig(_0x11fe24[_0x24ee50(0x89)]),_0x587321=await readPageLockFile(_0x1b19a1[_0x24ee50(0xb6)]),{appLock:_0x29f8de}=ensurePageLockScope(_0x587321??createEmptyPageLock(),_0x11fe24[_0x24ee50(0x89)]),_0x46099d=getPageIdFlag(_0x11fe24);if(_0x46099d!==undefined){const _0x2c72a9=await loadPageDetailForPage(_0x11fe24,_0x46099d);return{'mode':_0x24ee50(0xa7),'items':[await inspectPullTarget(_0x1b19a1,_0x29f8de[_0x24ee50(0x90)][String(_0x2c72a9[_0x24ee50(0x98)])],_0x2c72a9)]};}const _0x5f1edb=await loadDatasetDetailForPage(_0x11fe24),_0x34f254=_0x5f1edb[_0x24ee50(0x8e)][_0x24ee50(0xa4)](_0x5e8750=>!_0x5e8750['deleted']);if(_0x34f254['length']===0x0)throw CliErrors[_0x24ee50(0xc4)](_0x24ee50(0xab)+_0x5f1edb[_0x24ee50(0xbc)]+_0x24ee50(0xb0));const _0x1bab3b=await Promise['all'](_0x34f254[_0x24ee50(0x9c)](_0x925aa3=>loadPageDetailForPage(_0x11fe24,_0x925aa3['id']))),_0x3aef7d=selectVersionTagGroup(_0x1bab3b,_0x4132d2=>_0x4132d2[_0x24ee50(0xbd)],_0x11fe24[_0x24ee50(0xbe)](_0x24ee50(0x8a)));return{'mode':_0x24ee50(0xc1),'datasetCode':_0x5f1edb['code'],'items':await Promise[_0x24ee50(0xa9)](_0x3aef7d[_0x24ee50(0xbf)]['map'](_0x2b2681=>inspectPullTarget(_0x1b19a1,_0x29f8de[_0x24ee50(0x90)][String(_0x2b2681[_0x24ee50(0x98)])],_0x2b2681)))};}async function inspectPullTarget(_0x16e43d,_0x2577c8,_0x191ca7){const _0x5970ae=a210_0x33bf80,_0x190ff3=resolvePageFilePath(_0x16e43d,_0x191ca7[_0x5970ae(0x98)],_0x191ca7[_0x5970ae(0xac)]),_0x4b1896=await fileExists(_0x190ff3);if(!_0x4b1896){const _0x58e868=serializePageSchemaForFile(_0x191ca7['code']);return{'detail':_0x191ca7,'localPath':_0x190ff3,'localHash':computePageContentHash(_0x58e868),'status':_0x5970ae(0x9d)};}const _0xa6da7=await computePageFileHash(_0x190ff3);if(!_0x2577c8||_0xa6da7!==_0x2577c8[_0x5970ae(0x93)])return{'detail':_0x191ca7,'localPath':_0x190ff3,'localHash':_0xa6da7,'status':_0x5970ae(0x85),'reason':_0x5970ae(0xba)};return{'detail':_0x191ca7,'localPath':_0x190ff3,'localHash':_0xa6da7,'status':'would_pull'};}function buildLockEntry(_0x533028,_0x529242){const _0x71be2a=a210_0x33bf80;return{'hash':computePageContentHash(_0x529242),'pageId':_0x533028[_0x71be2a(0x98)],'pageVersion':_0x533028[_0x71be2a(0x88)],'type':_0x533028[_0x71be2a(0xac)],'title':_0x533028[_0x71be2a(0xa5)],'datasetIds':_0x533028[_0x71be2a(0xb8)],'versionTag':_0x533028['versionTag']};}function toPreviewItem(_0x3cddb1){const _0x86baac=a210_0x33bf80;return{'pageId':_0x3cddb1[_0x86baac(0x86)][_0x86baac(0x98)],'type':_0x3cddb1[_0x86baac(0x86)][_0x86baac(0xac)],'title':_0x3cddb1['detail'][_0x86baac(0xa5)],'localPath':_0x3cddb1[_0x86baac(0x97)],'status':_0x3cddb1[_0x86baac(0x9a)],..._0x3cddb1[_0x86baac(0x95)]?{'reason':_0x3cddb1[_0x86baac(0x95)]}:{}};}
@@ -1 +1 @@
1
- const a211_0x39d431=a211_0x4037;(function(_0x3ebbea,_0x102100){const _0x4ac3ba=a211_0x4037,_0x17b98a=_0x3ebbea();while(!![]){try{const _0x120699=-parseInt(_0x4ac3ba(0x126))/0x1*(parseInt(_0x4ac3ba(0x11f))/0x2)+parseInt(_0x4ac3ba(0x151))/0x3+parseInt(_0x4ac3ba(0x14a))/0x4*(parseInt(_0x4ac3ba(0x116))/0x5)+-parseInt(_0x4ac3ba(0x120))/0x6*(parseInt(_0x4ac3ba(0x153))/0x7)+parseInt(_0x4ac3ba(0x117))/0x8*(parseInt(_0x4ac3ba(0x169))/0x9)+parseInt(_0x4ac3ba(0x11d))/0xa*(parseInt(_0x4ac3ba(0x152))/0xb)+parseInt(_0x4ac3ba(0x119))/0xc;if(_0x120699===_0x102100)break;else _0x17b98a['push'](_0x17b98a['shift']());}catch(_0x5a4f30){_0x17b98a['push'](_0x17b98a['shift']());}}}(a211_0x34e6,0x1fa23));import{readFile,writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';function a211_0x34e6(){const _0x58ebf6=['includes','lockFilePath','utf8','length','Page\x20ID','all','datasetIds','deleted','datasetCode','page-','validation','localContent','Page\x20update\x20failed:\x20','filter','\x20has\x20changed\x20since\x20last\x20pull.','UNKNOWN','apiError','datasetId','candidates','name','Page\x20','Some\x20pages\x20failed\x20to\x20push','/smartapi/lovrabet/update-page','nextLockEntry','No\x20changes\x20to\x20push','mode','items','has','pageVersion','64hJPBXl','\x20page\x20pull\x20--id\x20','remoteDetail','version-tag','type','normalizedNodes','normalized','427833JySdyH','3729afzHga','100723OvsPHx','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','status','code','no\x20changes','Invalid\x20JSON\x20in\x20local\x20page\x20file:\x20','blocked','content','remote\x20schema\x20changed','`\x20first.','relatedPages','alias','versionTag','pageId','compress','title','unchanged','localHash','write','parse','toISOString','Push\x20succeeded','18aaZDBq','message','string','single','conflict','page','530luJISR','560968AVMIlD','Push\x20local\x20page\x20schema\x20back\x20to\x20remote','109728UqvSTa','lastSync','Remote\x20page\x20','number','1370SGClzX','appCode','106nTqsKd','48NwAdKt','POST','Push\x20failed','\x20no\x20longer\x20belongs\x20to\x20the\x20selected\x20dataset.','push','Local\x20file\x20not\x20found:\x20','1801qRqYXA','hash','lockEntry','No\x20local\x20pages\x20found\x20for\x20dataset\x20\x22','pages','No\x20lock\x20record\x20found\x20for\x20page\x20','Run\x20`'];a211_0x34e6=function(){return _0x58ebf6;};return a211_0x34e6();}import{transpileLrSmartJsx,updatePage}from'../../core/api-client.js';import{computePageContentHash,computeSerializedSchemaHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{prepareLrSmartJsxForPush}from'../../core/page/lr-smart-jsx.js';import{CliErrors}from'../../errors.js';export const pagePush={'service':a211_0x39d431(0x115),'command':a211_0x39d431(0x124),'description':a211_0x39d431(0x118),'risk':a211_0x39d431(0x165),'defaultOutputFormat':a211_0x39d431(0x161),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a211_0x39d431(0x11c),'description':a211_0x39d431(0x131)},DATASETCODE_FLAG_OPTIONAL,{'name':a211_0x39d431(0x15e),'type':a211_0x39d431(0x16b),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a211_0x39d431(0x14d),'type':'string','description':a211_0x39d431(0x154)}],async 'validate'(_0x1dbfce){validatePageTargetSelector(_0x1dbfce);},async 'dryRun'(_0x3f2b3b){const _0x54b903=a211_0x39d431,_0x9216ff=await buildPushPreview(_0x3f2b3b);return{'method':_0x54b903(0x121),'url':_0x54b903(0x143),'body':{'appCode':_0x3f2b3b[_0x54b903(0x11e)],'mode':_0x9216ff['mode'],'datasetCode':_0x9216ff[_0x54b903(0x135)]??null,'pages':_0x9216ff[_0x54b903(0x147)]},'description':serializeDryRunDescription({'mode':_0x9216ff[_0x54b903(0x146)],'datasetCode':_0x9216ff[_0x54b903(0x135)]??null,'totalWouldPush':_0x9216ff[_0x54b903(0x147)][_0x54b903(0x13a)](_0x49019b=>_0x49019b[_0x54b903(0x155)]==='would_push')[_0x54b903(0x130)],'totalUnchanged':_0x9216ff[_0x54b903(0x147)][_0x54b903(0x13a)](_0x5b3291=>_0x5b3291['status']===_0x54b903(0x163))[_0x54b903(0x130)],'totalConflicts':_0x9216ff[_0x54b903(0x147)][_0x54b903(0x13a)](_0x5f0233=>_0x5f0233[_0x54b903(0x155)]===_0x54b903(0x114)||_0x5f0233[_0x54b903(0x155)]===_0x54b903(0x159))[_0x54b903(0x130)]})};},async 'execute'(_0x16e8e3){const _0x495aaf=a211_0x39d431,_0x55eec0=loadPageProjectConfig(_0x16e8e3[_0x495aaf(0x11e)]),_0x17e75a=await readPageLockFile(_0x55eec0[_0x495aaf(0x12e)]),{lockData:_0x41365b,appLock:_0x2fea3d}=ensurePageLockScope(_0x17e75a??createEmptyPageLock(),_0x16e8e3[_0x495aaf(0x11e)]),_0x3af8e3=getPageIdFlag(_0x16e8e3);if(_0x3af8e3!==undefined){const _0xc1df5f=await prepareSinglePush(_0x16e8e3,_0x55eec0,_0x2fea3d[_0x495aaf(0x12a)][String(_0x3af8e3)],_0x3af8e3),_0x414641=await pushPreparedPage(_0x16e8e3,_0xc1df5f);return _0x2fea3d[_0x495aaf(0x12a)][String(_0x414641[_0x495aaf(0x160)])]=_0x414641[_0x495aaf(0x144)],_0x2fea3d[_0x495aaf(0x11a)]=new Date()['toISOString'](),await writePageLockFile(_0x55eec0['lockFilePath'],_0x41365b),{'ok':!![],'message':_0x414641['normalized']?'Push\x20succeeded;\x20server\x20normalized\x20the\x20schema':_0x495aaf(0x168),'data':{'appCode':_0x16e8e3['appCode'],'pushedPages':[{'pageId':_0x414641[_0x495aaf(0x160)],'type':_0x414641[_0x495aaf(0x14e)],'title':_0x414641[_0x495aaf(0x162)],'normalized':_0x414641[_0x495aaf(0x150)]}],'skippedPages':[],'failedPages':[],'totalPushed':0x1,'totalSkipped':0x0,'totalFailed':0x0}};}const _0x35c9d8=await buildBatchPushPlan(_0x16e8e3,_0x2fea3d[_0x495aaf(0x12a)]),_0x37de3f=[],_0x15ac69=[],_0x4cae6b=[];for(const _0x397229 of _0x35c9d8['candidates']){try{const _0x533f68=await prepareSinglePush(_0x16e8e3,_0x55eec0,_0x2fea3d[_0x495aaf(0x12a)][String(_0x397229[_0x495aaf(0x160)])],_0x397229['pageId'],_0x35c9d8[_0x495aaf(0x13e)]);if(!_0x533f68['preparedChanges']&&_0x533f68[_0x495aaf(0x164)]===_0x533f68[_0x495aaf(0x128)][_0x495aaf(0x127)]){_0x15ac69[_0x495aaf(0x124)]({'pageId':_0x397229[_0x495aaf(0x160)],'type':_0x397229['type'],'title':_0x397229[_0x495aaf(0x162)],'reason':_0x495aaf(0x157)});continue;}const _0x2818af=await pushPreparedPage(_0x16e8e3,_0x533f68);_0x2fea3d[_0x495aaf(0x12a)][String(_0x2818af[_0x495aaf(0x160)])]=_0x2818af[_0x495aaf(0x144)],_0x37de3f['push']({'pageId':_0x2818af[_0x495aaf(0x160)],'type':_0x2818af[_0x495aaf(0x14e)],'title':_0x2818af[_0x495aaf(0x162)],'normalized':_0x2818af[_0x495aaf(0x150)]});}catch(_0xa8cdfb){_0x4cae6b[_0x495aaf(0x124)]({'pageId':_0x397229['pageId'],'type':_0x397229[_0x495aaf(0x14e)],'title':_0x397229['title'],'reason':_0xa8cdfb instanceof Error?_0xa8cdfb[_0x495aaf(0x16a)]:String(_0xa8cdfb)});}}return _0x2fea3d[_0x495aaf(0x11a)]=new Date()[_0x495aaf(0x167)](),await writePageLockFile(_0x55eec0['lockFilePath'],_0x41365b),{'ok':_0x4cae6b['length']===0x0||_0x37de3f[_0x495aaf(0x130)]>0x0||_0x15ac69[_0x495aaf(0x130)]>0x0,'message':_0x4cae6b[_0x495aaf(0x130)]>0x0&&_0x37de3f[_0x495aaf(0x130)]>0x0?_0x495aaf(0x142):_0x37de3f['length']>0x0?_0x495aaf(0x168):_0x15ac69[_0x495aaf(0x130)]>0x0&&_0x4cae6b['length']===0x0?_0x495aaf(0x145):_0x4cae6b[0x0]?.['reason']||_0x495aaf(0x122),'data':{'appCode':_0x16e8e3[_0x495aaf(0x11e)],'pushedPages':_0x37de3f,'skippedPages':_0x15ac69,'failedPages':_0x4cae6b,'totalPushed':_0x37de3f[_0x495aaf(0x130)],'totalSkipped':_0x15ac69[_0x495aaf(0x130)],'totalFailed':_0x4cae6b[_0x495aaf(0x130)]}};}};async function buildPushPreview(_0xc1281d){const _0x3a1f25=a211_0x39d431,_0xfe27e6=loadPageProjectConfig(_0xc1281d[_0x3a1f25(0x11e)]),_0x945b3d=await readPageLockFile(_0xfe27e6['lockFilePath']),{appLock:_0x3b46f4}=ensurePageLockScope(_0x945b3d??createEmptyPageLock(),_0xc1281d['appCode']),_0x495d83=getPageIdFlag(_0xc1281d);if(_0x495d83!==undefined)return{'mode':_0x3a1f25(0x113),'items':[await inspectPushPage(_0xc1281d,_0xfe27e6,_0x3b46f4[_0x3a1f25(0x12a)][String(_0x495d83)],_0x495d83)]};const _0x138867=await buildBatchPushPlan(_0xc1281d,_0x3b46f4['pages']);return{'mode':'batch','datasetCode':_0x138867[_0x3a1f25(0x135)],'items':await Promise[_0x3a1f25(0x132)](_0x138867[_0x3a1f25(0x13f)]['map'](_0x50aca4=>inspectPushPage(_0xc1281d,_0xfe27e6,_0x3b46f4[_0x3a1f25(0x12a)][String(_0x50aca4['pageId'])],_0x50aca4[_0x3a1f25(0x160)],_0x138867[_0x3a1f25(0x13e)])))};}async function buildBatchPushPlan(_0x39d6fd,_0x67b3fe){const _0x2bd39=a211_0x39d431,_0x102091=await loadDatasetDetailForPage(_0x39d6fd),_0x35e92c=_0x102091['id'],_0x3316d6=new Set(_0x102091[_0x2bd39(0x15d)][_0x2bd39(0x13a)](_0x506051=>!_0x506051[_0x2bd39(0x134)])['map'](_0x3c5dc9=>_0x3c5dc9['id'])),_0x370263=Object['values'](_0x67b3fe)[_0x2bd39(0x13a)](_0x3c7dd8=>_0x3c7dd8[_0x2bd39(0x133)][_0x2bd39(0x12d)](_0x35e92c)&&_0x3316d6[_0x2bd39(0x148)](_0x3c7dd8[_0x2bd39(0x160)]));if(_0x370263[_0x2bd39(0x130)]===0x0)throw CliErrors[_0x2bd39(0x137)](_0x2bd39(0x129)+_0x102091[_0x2bd39(0x156)]+'\x22.',_0x2bd39(0x12c)+CLI_BIN_NAME+'\x20page\x20pull\x20--datasetcode\x20'+_0x102091['code']+_0x2bd39(0x15c));const _0x53b72b=selectVersionTagGroup(_0x370263,_0x50d937=>_0x50d937[_0x2bd39(0x15f)]??null,_0x39d6fd['str'](_0x2bd39(0x14d))),_0x75a94d=[];for(const _0x31942b of _0x53b72b[_0x2bd39(0x147)]){_0x75a94d[_0x2bd39(0x124)]({'pageId':_0x31942b[_0x2bd39(0x160)],'type':_0x31942b['type'],'title':_0x31942b[_0x2bd39(0x162)]});}return{'datasetCode':_0x102091[_0x2bd39(0x156)],'datasetId':_0x35e92c,'candidates':_0x75a94d};}async function inspectPushPage(_0x32e07a,_0x1a555f,_0x1e4dab,_0x5c3a7b,_0x4de779){const _0x42e408=a211_0x39d431;if(!_0x1e4dab)return{'pageId':_0x5c3a7b,'type':'UNKNOWN','title':_0x42e408(0x136)+_0x5c3a7b,'localPath':resolvePageFilePath(_0x1a555f,_0x5c3a7b,_0x42e408(0x13c)),'status':'blocked','reason':_0x42e408(0x12c)+CLI_BIN_NAME+_0x42e408(0x14b)+_0x5c3a7b+'`\x20first'};const _0x212483=resolvePageFilePath(_0x1a555f,_0x5c3a7b,_0x1e4dab[_0x42e408(0x14e)]);if(!await fileExists(_0x212483))return{'pageId':_0x5c3a7b,'type':_0x1e4dab[_0x42e408(0x14e)],'title':_0x1e4dab['title'],'localPath':_0x212483,'status':_0x42e408(0x159),'reason':_0x42e408(0x125)+_0x212483};const _0x471a01=await readFile(_0x212483,_0x42e408(0x12f));try{JSON[_0x42e408(0x166)](_0x471a01);}catch{return{'pageId':_0x5c3a7b,'type':_0x1e4dab[_0x42e408(0x14e)],'title':_0x1e4dab[_0x42e408(0x162)],'localPath':_0x212483,'status':_0x42e408(0x159),'reason':'local\x20JSON\x20is\x20invalid'};}try{const _0x2f8b77=await loadPageDetailForPage(_0x32e07a,_0x5c3a7b);if(_0x4de779!=null&&!_0x2f8b77['datasetIds'][_0x42e408(0x12d)](_0x4de779))return{'pageId':_0x5c3a7b,'type':_0x1e4dab['type'],'title':_0x1e4dab['title'],'localPath':_0x212483,'status':_0x42e408(0x114),'reason':_0x42e408(0x141)+_0x5c3a7b+'\x20no\x20longer\x20belongs\x20to\x20the\x20target\x20dataset'};const _0x2fd32a=_0x1e4dab[_0x42e408(0x149)]!=null&&_0x2f8b77['pageVersion']!=null;if(_0x2fd32a&&_0x1e4dab[_0x42e408(0x149)]!==_0x2f8b77['pageVersion'])return{'pageId':_0x5c3a7b,'type':_0x1e4dab['type'],'title':_0x1e4dab[_0x42e408(0x162)],'localPath':_0x212483,'status':_0x42e408(0x114),'reason':'remote\x20pageVersion\x20changed'};if(!_0x2fd32a&&computeSerializedSchemaHash(_0x2f8b77['code'])!==_0x1e4dab[_0x42e408(0x127)])return{'pageId':_0x5c3a7b,'type':_0x1e4dab['type'],'title':_0x1e4dab['title'],'localPath':_0x212483,'status':_0x42e408(0x114),'reason':_0x42e408(0x15b)};const _0x529986=await prepareLrSmartJsxForPush(_0x471a01,_0x2f8b77[_0x42e408(0x156)],transpileLrSmartJsx);if(_0x529986[_0x42e408(0x14f)]===0x0&&computePageContentHash(_0x529986[_0x42e408(0x15a)])===_0x1e4dab[_0x42e408(0x127)])return{'pageId':_0x5c3a7b,'type':_0x1e4dab[_0x42e408(0x14e)],'title':_0x1e4dab[_0x42e408(0x162)],'localPath':_0x212483,'status':_0x42e408(0x163),'reason':'no\x20changes'};}catch(_0x36d4fe){return{'pageId':_0x5c3a7b,'type':_0x1e4dab['type'],'title':_0x1e4dab[_0x42e408(0x162)],'localPath':_0x212483,'status':_0x42e408(0x159),'reason':_0x36d4fe instanceof Error?_0x36d4fe[_0x42e408(0x16a)]:String(_0x36d4fe)};}return{'pageId':_0x5c3a7b,'type':_0x1e4dab[_0x42e408(0x14e)],'title':_0x1e4dab[_0x42e408(0x162)],'localPath':_0x212483,'status':'would_push'};}async function prepareSinglePush(_0x4a2b28,_0x4f788a,_0x42cd8f,_0x22d221,_0x1bfde9){const _0xe2d521=a211_0x39d431;if(!_0x42cd8f)throw CliErrors[_0xe2d521(0x137)](_0xe2d521(0x12b)+_0x22d221+'.',_0xe2d521(0x12c)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x22d221+_0xe2d521(0x15c));const _0x1ce09e=resolvePageFilePath(_0x4f788a,_0x22d221,_0x42cd8f[_0xe2d521(0x14e)]);if(!await fileExists(_0x1ce09e))throw CliErrors[_0xe2d521(0x137)](_0xe2d521(0x125)+_0x1ce09e,_0xe2d521(0x12c)+CLI_BIN_NAME+_0xe2d521(0x14b)+_0x22d221+'`\x20first.');const _0x3c7e37=await readFile(_0x1ce09e,'utf8');try{JSON[_0xe2d521(0x166)](_0x3c7e37);}catch{throw CliErrors['validation'](_0xe2d521(0x158)+_0x1ce09e);}const _0x59e51f=await loadPageDetailForPage(_0x4a2b28,_0x22d221);if(_0x1bfde9!=null&&!_0x59e51f[_0xe2d521(0x133)]['includes'](_0x1bfde9))throw CliErrors['validation']('Page\x20'+_0x22d221+_0xe2d521(0x123));const _0x10fd8b=_0x42cd8f[_0xe2d521(0x149)]!=null&&_0x59e51f[_0xe2d521(0x149)]!=null;if(_0x10fd8b){if(_0x42cd8f[_0xe2d521(0x149)]!==_0x59e51f['pageVersion'])throw CliErrors[_0xe2d521(0x137)](_0xe2d521(0x11b)+_0x22d221+_0xe2d521(0x13b),_0xe2d521(0x12c)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x22d221+_0xe2d521(0x15c));}else{const _0x5a1abf=computeSerializedSchemaHash(_0x59e51f[_0xe2d521(0x156)]);if(_0x5a1abf!==_0x42cd8f[_0xe2d521(0x127)])throw CliErrors['validation'](_0xe2d521(0x11b)+_0x22d221+_0xe2d521(0x13b),'Run\x20`'+CLI_BIN_NAME+_0xe2d521(0x14b)+_0x22d221+_0xe2d521(0x15c));}const _0x5ac3c9=await prepareLrSmartJsxForPush(_0x3c7e37,_0x59e51f[_0xe2d521(0x156)],transpileLrSmartJsx);return{'lockEntry':_0x42cd8f,'localPath':_0x1ce09e,'localContent':_0x5ac3c9['content'],'localHash':computePageContentHash(_0x5ac3c9[_0xe2d521(0x15a)]),'preparedChanges':_0x5ac3c9[_0xe2d521(0x14f)]>0x0,'remoteDetail':_0x59e51f};}function a211_0x4037(_0x12a796,_0x591d0d){_0x12a796=_0x12a796-0x113;const _0x34e65e=a211_0x34e6();let _0x403767=_0x34e65e[_0x12a796];return _0x403767;}async function pushPreparedPage(_0x14de2f,_0x16c731){const _0x3b146a=a211_0x39d431,_0x2d8603=await updatePage(_0x14de2f[_0x3b146a(0x11e)],_0x16c731[_0x3b146a(0x14c)][_0x3b146a(0x160)],_0x16c731[_0x3b146a(0x138)],_0x16c731[_0x3b146a(0x14c)][_0x3b146a(0x133)]);if(!_0x2d8603)throw CliErrors[_0x3b146a(0x13d)](_0x3b146a(0x139)+_0x16c731['remoteDetail'][_0x3b146a(0x160)]);const _0xf3dec2=await loadPageDetailForPage(_0x14de2f,_0x16c731[_0x3b146a(0x14c)][_0x3b146a(0x160)]),_0x421fef=serializePageSchemaForFile(_0xf3dec2['code']);return await writeFile(_0x16c731['localPath'],_0x421fef,_0x3b146a(0x12f)),{'pageId':_0xf3dec2[_0x3b146a(0x160)],'type':_0xf3dec2[_0x3b146a(0x14e)],'title':_0xf3dec2[_0x3b146a(0x140)],'normalized':_0x421fef!==serializePageSchemaForFile(_0x16c731[_0x3b146a(0x138)]),'nextLockEntry':{'hash':computePageContentHash(_0x421fef),'pageId':_0xf3dec2[_0x3b146a(0x160)],'pageVersion':_0xf3dec2['pageVersion'],'type':_0xf3dec2[_0x3b146a(0x14e)],'title':_0xf3dec2['name'],'datasetIds':_0xf3dec2[_0x3b146a(0x133)],'versionTag':_0xf3dec2[_0x3b146a(0x15f)]}};}
1
+ const a211_0x2c3323=a211_0x1062;(function(_0x56e408,_0x7573ad){const _0x298863=a211_0x1062,_0x1babb7=_0x56e408();while(!![]){try{const _0x37e7ed=-parseInt(_0x298863(0xfa))/0x1*(parseInt(_0x298863(0x117))/0x2)+parseInt(_0x298863(0x127))/0x3+parseInt(_0x298863(0x123))/0x4+parseInt(_0x298863(0x108))/0x5*(-parseInt(_0x298863(0x149))/0x6)+parseInt(_0x298863(0x13e))/0x7*(-parseInt(_0x298863(0x101))/0x8)+parseInt(_0x298863(0x125))/0x9*(-parseInt(_0x298863(0x129))/0xa)+parseInt(_0x298863(0x130))/0xb;if(_0x37e7ed===_0x7573ad)break;else _0x1babb7['push'](_0x1babb7['shift']());}catch(_0x261368){_0x1babb7['push'](_0x1babb7['shift']());}}}(a211_0x3079,0xce2bc));import{readFile,writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{CLI_BIN_NAME}from'../../constant/cli.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{transpileLrSmartJsx,updatePage}from'../../core/api-client.js';import{computePageContentHash,computeSerializedSchemaHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{prepareLrSmartJsxForPush}from'../../core/page/lr-smart-jsx.js';function a211_0x1062(_0x4d9bbc,_0xe5183b){_0x4d9bbc=_0x4d9bbc-0xf8;const _0x3079d6=a211_0x3079();let _0x106263=_0x3079d6[_0x4d9bbc];return _0x106263;}import{CliErrors}from'../../errors.js';export const pagePush={'service':'page','command':a211_0x2c3323(0x11f),'description':a211_0x2c3323(0x119),'risk':'write','defaultOutputFormat':a211_0x2c3323(0xfc),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a211_0x2c3323(0x12a),'description':a211_0x2c3323(0x12f)},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a211_0x2c3323(0x10f),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a211_0x2c3323(0x11a),'type':'string','description':'Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)'}],async 'validate'(_0xceda75){validatePageTargetSelector(_0xceda75);},async 'dryRun'(_0x253a05){const _0xc5f6e3=a211_0x2c3323,_0x369ee8=await buildPushPreview(_0x253a05);return{'method':'POST','url':_0xc5f6e3(0x11b),'body':{'appCode':_0x253a05['appCode'],'mode':_0x369ee8[_0xc5f6e3(0x11c)],'datasetCode':_0x369ee8['datasetCode']??null,'pages':_0x369ee8[_0xc5f6e3(0x142)]},'description':serializeDryRunDescription({'mode':_0x369ee8[_0xc5f6e3(0x11c)],'datasetCode':_0x369ee8['datasetCode']??null,'totalWouldPush':_0x369ee8[_0xc5f6e3(0x142)][_0xc5f6e3(0x120)](_0x4f9c53=>_0x4f9c53[_0xc5f6e3(0xfb)]===_0xc5f6e3(0x10c))[_0xc5f6e3(0x139)],'totalUnchanged':_0x369ee8[_0xc5f6e3(0x142)][_0xc5f6e3(0x120)](_0x4d0a73=>_0x4d0a73[_0xc5f6e3(0xfb)]===_0xc5f6e3(0x138))[_0xc5f6e3(0x139)],'totalConflicts':_0x369ee8[_0xc5f6e3(0x142)][_0xc5f6e3(0x120)](_0x169338=>_0x169338[_0xc5f6e3(0xfb)]===_0xc5f6e3(0x133)||_0x169338[_0xc5f6e3(0xfb)]===_0xc5f6e3(0x109))[_0xc5f6e3(0x139)]})};},async 'execute'(_0x57d90d){const _0x8ea74a=a211_0x2c3323,_0x1630c7=loadPageProjectConfig(_0x57d90d[_0x8ea74a(0x10b)]),_0x4d4b43=await readPageLockFile(_0x1630c7[_0x8ea74a(0x10e)]),{lockData:_0x4e3259,appLock:_0x100e2e}=ensurePageLockScope(_0x4d4b43??createEmptyPageLock(),_0x57d90d['appCode']),_0x443aad=getPageIdFlag(_0x57d90d);if(_0x443aad!==undefined){const _0x55c032=await prepareSinglePush(_0x57d90d,_0x1630c7,_0x100e2e[_0x8ea74a(0x103)][String(_0x443aad)],_0x443aad),_0x1b1d8d=await pushPreparedPage(_0x57d90d,_0x55c032);return _0x100e2e[_0x8ea74a(0x103)][String(_0x1b1d8d['pageId'])]=_0x1b1d8d[_0x8ea74a(0x11e)],_0x100e2e['lastSync']=new Date()[_0x8ea74a(0x13a)](),await writePageLockFile(_0x1630c7['lockFilePath'],_0x4e3259),{'ok':!![],'message':_0x1b1d8d[_0x8ea74a(0x111)]?_0x8ea74a(0x115):_0x8ea74a(0x147),'data':{'appCode':_0x57d90d[_0x8ea74a(0x10b)],'pushedPages':[{'pageId':_0x1b1d8d['pageId'],'type':_0x1b1d8d['type'],'title':_0x1b1d8d[_0x8ea74a(0x12e)],'normalized':_0x1b1d8d[_0x8ea74a(0x111)]}],'skippedPages':[],'failedPages':[],'totalPushed':0x1,'totalSkipped':0x0,'totalFailed':0x0}};}const _0x533b2e=await buildBatchPushPlan(_0x57d90d,_0x100e2e['pages']),_0xd962b6=[],_0x4182ed=[],_0x30b4a3=[];for(const _0x100a5c of _0x533b2e[_0x8ea74a(0x107)]){try{const _0x5f0a3b=await prepareSinglePush(_0x57d90d,_0x1630c7,_0x100e2e['pages'][String(_0x100a5c[_0x8ea74a(0x144)])],_0x100a5c[_0x8ea74a(0x144)],_0x533b2e[_0x8ea74a(0x141)]);if(!_0x5f0a3b['preparedChanges']&&_0x5f0a3b[_0x8ea74a(0x121)]===_0x5f0a3b[_0x8ea74a(0x128)]['hash']){_0x4182ed[_0x8ea74a(0x11f)]({'pageId':_0x100a5c[_0x8ea74a(0x144)],'type':_0x100a5c[_0x8ea74a(0x13d)],'title':_0x100a5c[_0x8ea74a(0x12e)],'reason':_0x8ea74a(0x13b)});continue;}const _0x1dbb42=await pushPreparedPage(_0x57d90d,_0x5f0a3b);_0x100e2e['pages'][String(_0x1dbb42[_0x8ea74a(0x144)])]=_0x1dbb42[_0x8ea74a(0x11e)],_0xd962b6[_0x8ea74a(0x11f)]({'pageId':_0x1dbb42[_0x8ea74a(0x144)],'type':_0x1dbb42[_0x8ea74a(0x13d)],'title':_0x1dbb42['title'],'normalized':_0x1dbb42[_0x8ea74a(0x111)]});}catch(_0x577f9c){_0x30b4a3[_0x8ea74a(0x11f)]({'pageId':_0x100a5c['pageId'],'type':_0x100a5c[_0x8ea74a(0x13d)],'title':_0x100a5c['title'],'reason':_0x577f9c instanceof Error?_0x577f9c[_0x8ea74a(0x131)]:String(_0x577f9c)});}}return _0x100e2e['lastSync']=new Date()[_0x8ea74a(0x13a)](),await writePageLockFile(_0x1630c7['lockFilePath'],_0x4e3259),{'ok':_0x30b4a3[_0x8ea74a(0x139)]===0x0||_0xd962b6['length']>0x0||_0x4182ed[_0x8ea74a(0x139)]>0x0,'message':_0x30b4a3[_0x8ea74a(0x139)]>0x0&&_0xd962b6[_0x8ea74a(0x139)]>0x0?_0x8ea74a(0x13f):_0xd962b6[_0x8ea74a(0x139)]>0x0?_0x8ea74a(0x147):_0x4182ed['length']>0x0&&_0x30b4a3[_0x8ea74a(0x139)]===0x0?_0x8ea74a(0xfd):_0x30b4a3[0x0]?.[_0x8ea74a(0x118)]||'Push\x20failed','data':{'appCode':_0x57d90d[_0x8ea74a(0x10b)],'pushedPages':_0xd962b6,'skippedPages':_0x4182ed,'failedPages':_0x30b4a3,'totalPushed':_0xd962b6[_0x8ea74a(0x139)],'totalSkipped':_0x4182ed['length'],'totalFailed':_0x30b4a3[_0x8ea74a(0x139)]}};}};async function buildPushPreview(_0x4aff07){const _0x25d394=a211_0x2c3323,_0x153f77=loadPageProjectConfig(_0x4aff07['appCode']),_0x1a576c=await readPageLockFile(_0x153f77[_0x25d394(0x10e)]),{appLock:_0x1323d9}=ensurePageLockScope(_0x1a576c??createEmptyPageLock(),_0x4aff07[_0x25d394(0x10b)]),_0x5ef6d1=getPageIdFlag(_0x4aff07);if(_0x5ef6d1!==undefined)return{'mode':_0x25d394(0xf9),'items':[await inspectPushPage(_0x4aff07,_0x153f77,_0x1323d9[_0x25d394(0x103)][String(_0x5ef6d1)],_0x5ef6d1)]};const _0x3ce4ca=await buildBatchPushPlan(_0x4aff07,_0x1323d9[_0x25d394(0x103)]);return{'mode':'batch','datasetCode':_0x3ce4ca['datasetCode'],'items':await Promise[_0x25d394(0x148)](_0x3ce4ca['candidates']['map'](_0x3c1717=>inspectPushPage(_0x4aff07,_0x153f77,_0x1323d9[_0x25d394(0x103)][String(_0x3c1717[_0x25d394(0x144)])],_0x3c1717[_0x25d394(0x144)],_0x3ce4ca[_0x25d394(0x141)])))};}async function buildBatchPushPlan(_0x2c3bfc,_0x3ef32e){const _0x1e1234=a211_0x2c3323,_0x27a2a8=await loadDatasetDetailForPage(_0x2c3bfc),_0x48686b=_0x27a2a8['id'],_0xe3122c=new Set(_0x27a2a8[_0x1e1234(0x10d)]['filter'](_0x20d342=>!_0x20d342['deleted'])[_0x1e1234(0x140)](_0x3f743d=>_0x3f743d['id'])),_0x53d477=Object['values'](_0x3ef32e)[_0x1e1234(0x120)](_0x3849e0=>_0x3849e0[_0x1e1234(0x136)]['includes'](_0x48686b)&&_0xe3122c['has'](_0x3849e0[_0x1e1234(0x144)]));if(_0x53d477[_0x1e1234(0x139)]===0x0)throw CliErrors[_0x1e1234(0x145)]('No\x20local\x20pages\x20found\x20for\x20dataset\x20\x22'+_0x27a2a8['code']+'\x22.',_0x1e1234(0x114)+CLI_BIN_NAME+_0x1e1234(0x102)+_0x27a2a8[_0x1e1234(0xf8)]+_0x1e1234(0x106));const _0x1e9c28=selectVersionTagGroup(_0x53d477,_0x33e950=>_0x33e950['versionTag']??null,_0x2c3bfc[_0x1e1234(0x132)](_0x1e1234(0x11a))),_0xb18fcb=[];for(const _0x3f77f1 of _0x1e9c28[_0x1e1234(0x142)]){_0xb18fcb[_0x1e1234(0x11f)]({'pageId':_0x3f77f1[_0x1e1234(0x144)],'type':_0x3f77f1[_0x1e1234(0x13d)],'title':_0x3f77f1[_0x1e1234(0x12e)]});}return{'datasetCode':_0x27a2a8[_0x1e1234(0xf8)],'datasetId':_0x48686b,'candidates':_0xb18fcb};}async function inspectPushPage(_0x305de3,_0x2c32df,_0x31e098,_0x107618,_0x4c6e16){const _0xc4abf0=a211_0x2c3323;if(!_0x31e098)return{'pageId':_0x107618,'type':_0xc4abf0(0x113),'title':'page-'+_0x107618,'localPath':resolvePageFilePath(_0x2c32df,_0x107618,_0xc4abf0(0x113)),'status':_0xc4abf0(0x109),'reason':_0xc4abf0(0x114)+CLI_BIN_NAME+_0xc4abf0(0x135)+_0x107618+_0xc4abf0(0x126)};const _0x296349=resolvePageFilePath(_0x2c32df,_0x107618,_0x31e098['type']);if(!await fileExists(_0x296349))return{'pageId':_0x107618,'type':_0x31e098[_0xc4abf0(0x13d)],'title':_0x31e098[_0xc4abf0(0x12e)],'localPath':_0x296349,'status':_0xc4abf0(0x109),'reason':_0xc4abf0(0x104)+_0x296349};const _0x478a2a=await readFile(_0x296349,'utf8');try{JSON['parse'](_0x478a2a);}catch{return{'pageId':_0x107618,'type':_0x31e098[_0xc4abf0(0x13d)],'title':_0x31e098[_0xc4abf0(0x12e)],'localPath':_0x296349,'status':_0xc4abf0(0x109),'reason':_0xc4abf0(0x116)};}try{const _0x36bbfb=await loadPageDetailForPage(_0x305de3,_0x107618);if(_0x4c6e16!=null&&!_0x36bbfb[_0xc4abf0(0x136)][_0xc4abf0(0x13c)](_0x4c6e16))return{'pageId':_0x107618,'type':_0x31e098['type'],'title':_0x31e098[_0xc4abf0(0x12e)],'localPath':_0x296349,'status':_0xc4abf0(0x133),'reason':_0xc4abf0(0x12c)+_0x107618+_0xc4abf0(0x12d)};const _0x4b0424=_0x31e098[_0xc4abf0(0x124)]!=null&&_0x36bbfb['pageVersion']!=null;if(_0x4b0424&&_0x31e098['pageVersion']!==_0x36bbfb[_0xc4abf0(0x124)])return{'pageId':_0x107618,'type':_0x31e098[_0xc4abf0(0x13d)],'title':_0x31e098['title'],'localPath':_0x296349,'status':_0xc4abf0(0x133),'reason':'remote\x20pageVersion\x20changed'};if(!_0x4b0424&&computeSerializedSchemaHash(_0x36bbfb[_0xc4abf0(0xf8)])!==_0x31e098[_0xc4abf0(0x134)])return{'pageId':_0x107618,'type':_0x31e098['type'],'title':_0x31e098[_0xc4abf0(0x12e)],'localPath':_0x296349,'status':_0xc4abf0(0x133),'reason':_0xc4abf0(0x100)};const _0x193032=await prepareLrSmartJsxForPush(_0x478a2a,_0x36bbfb[_0xc4abf0(0xf8)],transpileLrSmartJsx);if(_0x193032[_0xc4abf0(0x112)]===0x0&&computePageContentHash(_0x193032[_0xc4abf0(0x11d)])===_0x31e098[_0xc4abf0(0x134)])return{'pageId':_0x107618,'type':_0x31e098[_0xc4abf0(0x13d)],'title':_0x31e098[_0xc4abf0(0x12e)],'localPath':_0x296349,'status':_0xc4abf0(0x138),'reason':_0xc4abf0(0x13b)};}catch(_0x4710b6){return{'pageId':_0x107618,'type':_0x31e098[_0xc4abf0(0x13d)],'title':_0x31e098[_0xc4abf0(0x12e)],'localPath':_0x296349,'status':_0xc4abf0(0x109),'reason':_0x4710b6 instanceof Error?_0x4710b6[_0xc4abf0(0x131)]:String(_0x4710b6)};}return{'pageId':_0x107618,'type':_0x31e098['type'],'title':_0x31e098[_0xc4abf0(0x12e)],'localPath':_0x296349,'status':_0xc4abf0(0x10c)};}async function prepareSinglePush(_0x38e90d,_0x2eca7b,_0x59e1a1,_0x484f4b,_0x595d1c){const _0x5117d8=a211_0x2c3323;if(!_0x59e1a1)throw CliErrors[_0x5117d8(0x145)]('No\x20lock\x20record\x20found\x20for\x20page\x20'+_0x484f4b+'.',_0x5117d8(0x114)+CLI_BIN_NAME+_0x5117d8(0x135)+_0x484f4b+'`\x20first.');const _0x3aa44b=resolvePageFilePath(_0x2eca7b,_0x484f4b,_0x59e1a1[_0x5117d8(0x13d)]);if(!await fileExists(_0x3aa44b))throw CliErrors[_0x5117d8(0x145)](_0x5117d8(0x104)+_0x3aa44b,_0x5117d8(0x114)+CLI_BIN_NAME+_0x5117d8(0x135)+_0x484f4b+'`\x20first.');const _0x557507=await readFile(_0x3aa44b,_0x5117d8(0x110));try{JSON[_0x5117d8(0x146)](_0x557507);}catch{throw CliErrors[_0x5117d8(0x145)]('Invalid\x20JSON\x20in\x20local\x20page\x20file:\x20'+_0x3aa44b);}const _0x499cc0=await loadPageDetailForPage(_0x38e90d,_0x484f4b);if(_0x595d1c!=null&&!_0x499cc0['datasetIds']['includes'](_0x595d1c))throw CliErrors[_0x5117d8(0x145)](_0x5117d8(0x12c)+_0x484f4b+_0x5117d8(0xff));const _0x277ff4=_0x59e1a1[_0x5117d8(0x124)]!=null&&_0x499cc0[_0x5117d8(0x124)]!=null;if(_0x277ff4){if(_0x59e1a1[_0x5117d8(0x124)]!==_0x499cc0[_0x5117d8(0x124)])throw CliErrors['validation'](_0x5117d8(0x137)+_0x484f4b+_0x5117d8(0x105),'Run\x20`'+CLI_BIN_NAME+_0x5117d8(0x135)+_0x484f4b+'`\x20first.');}else{const _0x542efd=computeSerializedSchemaHash(_0x499cc0[_0x5117d8(0xf8)]);if(_0x542efd!==_0x59e1a1['hash'])throw CliErrors['validation'](_0x5117d8(0x137)+_0x484f4b+_0x5117d8(0x105),_0x5117d8(0x114)+CLI_BIN_NAME+_0x5117d8(0x135)+_0x484f4b+_0x5117d8(0x106));}const _0x25016c=await prepareLrSmartJsxForPush(_0x557507,_0x499cc0[_0x5117d8(0xf8)],transpileLrSmartJsx);return{'lockEntry':_0x59e1a1,'localPath':_0x3aa44b,'localContent':_0x25016c[_0x5117d8(0x11d)],'localHash':computePageContentHash(_0x25016c[_0x5117d8(0x11d)]),'preparedChanges':_0x25016c['normalizedNodes']>0x0,'remoteDetail':_0x499cc0};}function a211_0x3079(){const _0x169c98=['Push\x20succeeded;\x20server\x20normalized\x20the\x20schema','local\x20JSON\x20is\x20invalid','82hTyzSm','reason','Push\x20local\x20page\x20schema\x20back\x20to\x20remote','version-tag','/smartapi/lovrabet/update-page','mode','content','nextLockEntry','push','filter','localHash','remoteDetail','1017824NptoGi','pageVersion','5661612bzVusg','`\x20first','2947809UhWCdR','lockEntry','20MFRTvR','number','name','Page\x20','\x20no\x20longer\x20belongs\x20to\x20the\x20target\x20dataset','title','Page\x20ID','49558036ywaMUI','message','str','conflict','hash','\x20page\x20pull\x20--id\x20','datasetIds','Remote\x20page\x20','unchanged','length','toISOString','no\x20changes','includes','type','705887TTLWgS','Some\x20pages\x20failed\x20to\x20push','map','datasetId','items','localContent','pageId','validation','parse','Push\x20succeeded','all','6EvuPWi','code','single','26927MmhZKF','status','compress','No\x20changes\x20to\x20push','versionTag','\x20no\x20longer\x20belongs\x20to\x20the\x20selected\x20dataset.','remote\x20schema\x20changed','88kKwnJg','\x20page\x20pull\x20--datasetcode\x20','pages','Local\x20file\x20not\x20found:\x20','\x20has\x20changed\x20since\x20last\x20pull.','`\x20first.','candidates','7132325lMfLqU','blocked','apiError','appCode','would_push','relatedPages','lockFilePath','string','utf8','normalized','normalizedNodes','UNKNOWN','Run\x20`'];a211_0x3079=function(){return _0x169c98;};return a211_0x3079();}async function pushPreparedPage(_0x4205ce,_0x5ca677){const _0x37a055=a211_0x2c3323,_0x42b399=await updatePage(_0x4205ce[_0x37a055(0x10b)],_0x5ca677[_0x37a055(0x122)][_0x37a055(0x144)],_0x5ca677[_0x37a055(0x143)],_0x5ca677[_0x37a055(0x122)][_0x37a055(0x136)]);if(!_0x42b399)throw CliErrors[_0x37a055(0x10a)]('Page\x20update\x20failed:\x20'+_0x5ca677[_0x37a055(0x122)][_0x37a055(0x144)]);const _0x40e8f5=await loadPageDetailForPage(_0x4205ce,_0x5ca677[_0x37a055(0x122)]['pageId']),_0x3bb4ed=serializePageSchemaForFile(_0x40e8f5[_0x37a055(0xf8)]);return await writeFile(_0x5ca677['localPath'],_0x3bb4ed,_0x37a055(0x110)),{'pageId':_0x40e8f5[_0x37a055(0x144)],'type':_0x40e8f5[_0x37a055(0x13d)],'title':_0x40e8f5[_0x37a055(0x12b)],'normalized':_0x3bb4ed!==serializePageSchemaForFile(_0x5ca677['localContent']),'nextLockEntry':{'hash':computePageContentHash(_0x3bb4ed),'pageId':_0x40e8f5[_0x37a055(0x144)],'pageVersion':_0x40e8f5[_0x37a055(0x124)],'type':_0x40e8f5[_0x37a055(0x13d)],'title':_0x40e8f5[_0x37a055(0x12b)],'datasetIds':_0x40e8f5[_0x37a055(0x136)],'versionTag':_0x40e8f5[_0x37a055(0xfe)]}};}