@lovrabet/rabetbase-cli 2.5.4 → 2.5.5-beta.2

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 (379) 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/detail.js +1 -1
  77. package/lib/commands/dataset/extend-update.js +1 -1
  78. package/lib/commands/dataset/field-restore.js +1 -1
  79. package/lib/commands/dataset/field-update.js +1 -1
  80. package/lib/commands/dataset/generate.js +1 -1
  81. package/lib/commands/dataset/index.js +1 -1
  82. package/lib/commands/dataset/list.js +1 -1
  83. package/lib/commands/dataset/operations.js +1 -1
  84. package/lib/commands/dataset/relation-audit.js +1 -1
  85. package/lib/commands/dataset/relation-create.js +1 -1
  86. package/lib/commands/dataset/relation-delete.js +1 -1
  87. package/lib/commands/dataset/relation-shared.js +1 -1
  88. package/lib/commands/dataset/relation-update.js +1 -1
  89. package/lib/commands/dataset/relations.js +1 -1
  90. package/lib/commands/dataset/rename.js +1 -1
  91. package/lib/commands/dataset/restore.js +1 -1
  92. package/lib/commands/dataset/user-deleted-field-list.js +1 -1
  93. package/lib/commands/db/analysis-batching.js +1 -1
  94. package/lib/commands/db/analyze-batch-plan.js +1 -1
  95. package/lib/commands/db/analyze-cancel.js +1 -1
  96. package/lib/commands/db/analyze-start.js +1 -1
  97. package/lib/commands/db/analyze-status.js +1 -1
  98. package/lib/commands/db/create.js +1 -1
  99. package/lib/commands/db/delete.js +1 -1
  100. package/lib/commands/db/detail.js +1 -1
  101. package/lib/commands/db/diff-refresh-start.js +1 -1
  102. package/lib/commands/db/diff-refresh-status.js +1 -1
  103. package/lib/commands/db/diff.js +1 -1
  104. package/lib/commands/db/index.js +1 -1
  105. package/lib/commands/db/list.js +1 -1
  106. package/lib/commands/db/shared.js +1 -1
  107. package/lib/commands/db/table-diff-shared.js +1 -1
  108. package/lib/commands/db/tables.js +1 -1
  109. package/lib/commands/db/test.js +1 -1
  110. package/lib/commands/db/update.js +1 -1
  111. package/lib/commands/deployment/index.js +1 -1
  112. package/lib/commands/deployment/sync-all.js +1 -1
  113. package/lib/commands/deployment/sync-jobs.js +1 -1
  114. package/lib/commands/deployment/sync-status.js +1 -1
  115. package/lib/commands/doctor.js +1 -1
  116. package/lib/commands/file/index.js +1 -1
  117. package/lib/commands/flow/create.js +1 -1
  118. package/lib/commands/flow/detail.js +1 -1
  119. package/lib/commands/flow/index.js +1 -1
  120. package/lib/commands/flow/list.js +1 -1
  121. package/lib/commands/flow/publish.js +1 -1
  122. package/lib/commands/flow/runtime-resources-shared.js +1 -1
  123. package/lib/commands/flow/runtime-role-list.js +1 -1
  124. package/lib/commands/flow/runtime-role-user-list.js +1 -1
  125. package/lib/commands/flow/runtime-user-search.js +1 -1
  126. package/lib/commands/flow/shared.js +1 -1
  127. package/lib/commands/flow/update.js +1 -1
  128. package/lib/commands/flow/validate.js +1 -1
  129. package/lib/commands/instant-api-policy/current.js +1 -1
  130. package/lib/commands/instant-api-policy/index.js +1 -1
  131. package/lib/commands/instant-api-policy/init.js +1 -1
  132. package/lib/commands/instant-api-policy/publish.js +1 -1
  133. package/lib/commands/instant-api-policy/pull.js +1 -1
  134. package/lib/commands/instant-api-policy/revision.js +1 -1
  135. package/lib/commands/instant-api-policy/revisions.js +1 -1
  136. package/lib/commands/instant-api-policy/rollback.js +1 -1
  137. package/lib/commands/instant-api-policy/shared.js +1 -1
  138. package/lib/commands/instant-api-policy/validate.js +1 -1
  139. package/lib/commands/issue/index.js +1 -1
  140. package/lib/commands/issue/nudge.js +1 -1
  141. package/lib/commands/issue/report.js +1 -1
  142. package/lib/commands/issue/shared.js +1 -1
  143. package/lib/commands/kb/create.js +1 -1
  144. package/lib/commands/kb/delete.js +1 -1
  145. package/lib/commands/kb/detail.js +1 -1
  146. package/lib/commands/kb/index.js +1 -1
  147. package/lib/commands/kb/list.js +1 -1
  148. package/lib/commands/kb/search.js +1 -1
  149. package/lib/commands/kb/shared.js +1 -1
  150. package/lib/commands/kb/update.js +1 -1
  151. package/lib/commands/logs/index.js +1 -1
  152. package/lib/commands/menu/asset-update.js +1 -1
  153. package/lib/commands/menu/delete.js +1 -1
  154. package/lib/commands/menu/external-link-create.js +1 -1
  155. package/lib/commands/menu/external-link-update.js +1 -1
  156. package/lib/commands/menu/group-create.js +1 -1
  157. package/lib/commands/menu/group-update.js +1 -1
  158. package/lib/commands/menu/index.js +1 -1
  159. package/lib/commands/menu/list.js +1 -1
  160. package/lib/commands/menu/move.js +1 -1
  161. package/lib/commands/menu/regroup-start.js +1 -1
  162. package/lib/commands/menu/rename.js +1 -1
  163. package/lib/commands/menu/shared/compare-table.js +1 -1
  164. package/lib/commands/menu/shared/delete-plan.js +1 -1
  165. package/lib/commands/menu/shared/facts.js +1 -1
  166. package/lib/commands/menu/shared/index.js +1 -1
  167. package/lib/commands/menu/shared/inquirer.js +1 -1
  168. package/lib/commands/menu/shared/local-pages.js +1 -1
  169. package/lib/commands/menu/shared/logic.js +1 -1
  170. package/lib/commands/menu/shared/mutations.js +1 -1
  171. package/lib/commands/menu/shared/path.js +1 -1
  172. package/lib/commands/menu/shared/service.js +1 -1
  173. package/lib/commands/menu/shared/subapp-assets.js +1 -1
  174. package/lib/commands/menu/shared/sync-core.js +1 -1
  175. package/lib/commands/menu/shared/update-core.js +1 -1
  176. package/lib/commands/menu/shared/valid-url.js +1 -1
  177. package/lib/commands/menu/subapp-assets-status.js +1 -1
  178. package/lib/commands/menu/subapp-assets-update.js +1 -1
  179. package/lib/commands/menu/sync.js +1 -1
  180. package/lib/commands/menu/visibility-update.js +1 -1
  181. package/lib/commands/notification/config-create.js +1 -1
  182. package/lib/commands/notification/config-delete.js +1 -1
  183. package/lib/commands/notification/config-list.js +1 -1
  184. package/lib/commands/notification/config-update.js +1 -1
  185. package/lib/commands/notification/index.js +1 -1
  186. package/lib/commands/notification/shared.js +1 -1
  187. package/lib/commands/ocr/index.js +1 -1
  188. package/lib/commands/page/create.js +1 -1
  189. package/lib/commands/page/custom/detail.js +1 -1
  190. package/lib/commands/page/custom/list.js +1 -1
  191. package/lib/commands/page/custom/publish.js +1 -1
  192. package/lib/commands/page/custom/shared.js +1 -1
  193. package/lib/commands/page/custom/syntax.js +1 -1
  194. package/lib/commands/page/custom/update.js +1 -1
  195. package/lib/commands/page/data-list-status.js +1 -1
  196. package/lib/commands/page/generate-start.js +1 -1
  197. package/lib/commands/page/generate-status.js +1 -1
  198. package/lib/commands/page/index.js +1 -1
  199. package/lib/commands/page/pull.js +1 -1
  200. package/lib/commands/page/push.js +1 -1
  201. package/lib/commands/page/relation-audit.js +1 -1
  202. package/lib/commands/page/restore.js +1 -1
  203. package/lib/commands/page/shared.js +1 -1
  204. package/lib/commands/page/sync.js +1 -1
  205. package/lib/commands/project/api-architecture-upgrade.js +1 -1
  206. package/lib/commands/project/create/enhanced-guided-create.js +1 -1
  207. package/lib/commands/project/create/format-elapsed.js +1 -1
  208. package/lib/commands/project/create/main.js +1 -1
  209. package/lib/commands/project/create/materialize-project-template.js +1 -1
  210. package/lib/commands/project/create/project-name.js +1 -1
  211. package/lib/commands/project/create/project-template-archive.js +1 -1
  212. package/lib/commands/project/create/project-template-path.js +1 -1
  213. package/lib/commands/project/create/use-copy-project-template.js +1 -1
  214. package/lib/commands/project/create/use-format-code.js +1 -1
  215. package/lib/commands/project/create/use-install-dependencies.js +1 -1
  216. package/lib/commands/project/domain-routing-sync.js +1 -1
  217. package/lib/commands/project/index.js +1 -1
  218. package/lib/commands/project/upgrade.js +1 -1
  219. package/lib/commands/registry.js +1 -1
  220. package/lib/commands/role/delete.js +1 -1
  221. package/lib/commands/role/detail.js +1 -1
  222. package/lib/commands/role/index.js +1 -1
  223. package/lib/commands/role/list.js +1 -1
  224. package/lib/commands/role/shared.js +1 -1
  225. package/lib/commands/role/update.js +1 -1
  226. package/lib/commands/role/user-add.js +1 -1
  227. package/lib/commands/role/user-remove.js +1 -1
  228. package/lib/commands/role/user-resolve.js +1 -1
  229. package/lib/commands/rule/get.js +1 -1
  230. package/lib/commands/rule/index.js +1 -1
  231. package/lib/commands/rule/list.js +1 -1
  232. package/lib/commands/rule/set.js +1 -1
  233. package/lib/commands/rule/shared.js +1 -1
  234. package/lib/commands/run/index.js +1 -1
  235. package/lib/commands/schema.js +1 -1
  236. package/lib/commands/sql/create.js +1 -1
  237. package/lib/commands/sql/delete.js +1 -1
  238. package/lib/commands/sql/detail.js +1 -1
  239. package/lib/commands/sql/exec.js +1 -1
  240. package/lib/commands/sql/index.js +1 -1
  241. package/lib/commands/sql/list.js +1 -1
  242. package/lib/commands/sql/pull.js +1 -1
  243. package/lib/commands/sql/push.js +1 -1
  244. package/lib/commands/sql/shared.js +1 -1
  245. package/lib/commands/sql/status.js +1 -1
  246. package/lib/commands/sql/validate.js +1 -1
  247. package/lib/commands/task/index.js +1 -1
  248. package/lib/commands/task/status.js +1 -1
  249. package/lib/commands/tenant/index.js +1 -1
  250. package/lib/commands/tenant/members-list.js +1 -1
  251. package/lib/commands/tenant/shared.js +1 -1
  252. package/lib/commands/user-account/dingding-sandbox-bind.js +1 -1
  253. package/lib/commands/user-account/feishu-bind.js +1 -1
  254. package/lib/commands/user-account/index.js +1 -1
  255. package/lib/commands/workspace/add.js +1 -1
  256. package/lib/commands/workspace/index.js +1 -1
  257. package/lib/commands/workspace/remove.js +1 -1
  258. package/lib/config/domain-config.js +1 -1
  259. package/lib/config/project-domain-routing.js +1 -1
  260. package/lib/config/region-config.js +1 -1
  261. package/lib/config/schema.js +1 -1
  262. package/lib/constant/cdn.js +1 -1
  263. package/lib/constant/cli.js +1 -1
  264. package/lib/constant/defaults.js +1 -1
  265. package/lib/constant/domain.js +1 -1
  266. package/lib/constant/env.js +1 -1
  267. package/lib/constant/output.js +1 -1
  268. package/lib/constant/paths.js +1 -1
  269. package/lib/constant/region.js +1 -1
  270. package/lib/constant/risk.js +1 -1
  271. package/lib/constant/routing-profile.js +1 -1
  272. package/lib/context/app-resolver.js +1 -1
  273. package/lib/context/auth-resolver.js +1 -1
  274. package/lib/context/config-loader.js +1 -1
  275. package/lib/context.js +1 -1
  276. package/lib/core/alias-resolver.js +1 -1
  277. package/lib/core/api-client.js +1 -1
  278. package/lib/core/bff/config.js +1 -1
  279. package/lib/core/bff/file-system.js +1 -1
  280. package/lib/core/bff/hash.js +1 -1
  281. package/lib/core/bff/hook-directory.js +1 -1
  282. package/lib/core/bff/lock.js +1 -1
  283. package/lib/core/bff/utils.js +1 -1
  284. package/lib/core/cross-db-relation.js +1 -1
  285. package/lib/core/db-resolver.js +1 -1
  286. package/lib/core/flow-config.js +1 -1
  287. package/lib/core/instant-api-policy/config.js +1 -1
  288. package/lib/core/kb-search-client.js +1 -1
  289. package/lib/core/page/file-system.js +1 -1
  290. package/lib/core/page/hash.js +1 -1
  291. package/lib/core/page/lock.js +1 -1
  292. package/lib/core/page/lr-smart-jsx.js +1 -1
  293. package/lib/core/sql-index-auditor.js +1 -1
  294. package/lib/core/sql-sync/config.js +1 -1
  295. package/lib/core/sql-sync/file-system.js +1 -1
  296. package/lib/core/sql-sync/hash.js +1 -1
  297. package/lib/core/sql-sync/lock.js +1 -1
  298. package/lib/core/sql-sync/utils.js +1 -1
  299. package/lib/core/sql-validator.js +1 -1
  300. package/lib/errors.js +1 -1
  301. package/lib/framework/build-all-flags.js +1 -1
  302. package/lib/framework/error-output.js +1 -1
  303. package/lib/framework/explicit-yes.js +1 -1
  304. package/lib/framework/flags.js +1 -1
  305. package/lib/framework/help.js +1 -1
  306. package/lib/framework/index.js +1 -1
  307. package/lib/framework/output.js +1 -1
  308. package/lib/framework/response.js +1 -1
  309. package/lib/framework/runner-alias.js +1 -1
  310. package/lib/framework/runner.js +1 -1
  311. package/lib/framework/schema-export.js +1 -1
  312. package/lib/framework/supported-flags.js +1 -1
  313. package/lib/framework/types.js +1 -1
  314. package/lib/generated/build-info.d.ts +4 -4
  315. package/lib/generated/build-info.js +1 -1
  316. package/lib/generated/official-routing.js +1 -1
  317. package/lib/generated/routing-contract.js +1 -1
  318. package/lib/help.js +1 -1
  319. package/lib/postinstall.js +1 -1
  320. package/lib/runtime/confirmation.js +1 -1
  321. package/lib/runtime/event.js +1 -1
  322. package/lib/runtime/index.js +1 -1
  323. package/lib/runtime/queue.js +1 -1
  324. package/lib/runtime/resolve.js +1 -1
  325. package/lib/skills/builtin-skill.js +1 -1
  326. package/lib/skills/main.js +1 -1
  327. package/lib/skills/npx-skills-add.js +1 -1
  328. package/lib/skills/skill-presence.js +1 -1
  329. package/lib/telemetry/cli-command-trace.js +1 -1
  330. package/lib/telemetry/cli-help-trace.js +1 -1
  331. package/lib/telemetry/ensure-cli-otel-config.js +1 -1
  332. package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
  333. package/lib/telemetry/send-cli-trace-log.js +1 -1
  334. package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
  335. package/lib/utils/ai_config.js +1 -1
  336. package/lib/utils/apply-jq-filter.js +1 -1
  337. package/lib/utils/cdn-config.js +1 -1
  338. package/lib/utils/check-sdk-version.js +1 -1
  339. package/lib/utils/cli-version-check.js +1 -1
  340. package/lib/utils/cli-version-policy.js +1 -1
  341. package/lib/utils/config.js +1 -1
  342. package/lib/utils/entity-with-id.js +1 -1
  343. package/lib/utils/file-utils.js +1 -1
  344. package/lib/utils/guides-cdn.js +1 -1
  345. package/lib/utils/http-client.js +1 -1
  346. package/lib/utils/is-non-interactive.js +1 -1
  347. package/lib/utils/logger.js +1 -1
  348. package/lib/utils/params.js +1 -1
  349. package/lib/utils/platform.js +1 -1
  350. package/lib/utils/sleep.js +1 -1
  351. package/lib/utils/template-replacer.js +1 -1
  352. package/lib/utils/update-notice.js +1 -1
  353. package/lib/utils/version.js +1 -1
  354. package/lib/utils/with-active-cookie.js +1 -1
  355. package/lib/utils/write-cli-side-channel.js +1 -1
  356. package/package.json +2 -1
  357. package/skills/rabetbase/SKILL.md +1 -1
  358. package/skills/rabetbase-page-generation/SKILL.md +39 -0
  359. package/skills/rabetbase-page-generation/references/component-baseline.md +18 -0
  360. package/skills/rabetbase-page-generation/references/generation.md +126 -0
  361. package/skills/rabetbase-page-generation/templates/onepage/build.mjs +48 -0
  362. package/skills/rabetbase-page-generation/templates/onepage/create/README.md +20 -0
  363. package/skills/rabetbase-page-generation/templates/onepage/create/index.jsx +4 -0
  364. package/skills/rabetbase-page-generation/templates/onepage/create/preview.png +0 -0
  365. package/skills/rabetbase-page-generation/templates/onepage/detail/README.md +20 -0
  366. package/skills/rabetbase-page-generation/templates/onepage/detail/index.jsx +194 -0
  367. package/skills/rabetbase-page-generation/templates/onepage/detail/preview.png +0 -0
  368. package/skills/rabetbase-page-generation/templates/onepage/list/README.md +20 -0
  369. package/skills/rabetbase-page-generation/templates/onepage/list/index.jsx +721 -0
  370. package/skills/rabetbase-page-generation/templates/onepage/list/preview.png +0 -0
  371. package/skills/rabetbase-page-generation/templates/onepage/shared/editor.jsx +395 -0
  372. package/skills/rabetbase-page-generation/templates/onepage/shared/model.js +141 -0
  373. package/skills/rabetbase-page-generation/templates/onepage/shared/page.css +377 -0
  374. package/skills/rabetbase-page-generation/templates/onepage/shared/record-layout.jsx +90 -0
  375. package/skills/rabetbase-page-generation/templates/onepage/shared/responsive.jsx +70 -0
  376. package/skills/rabetbase-page-generation/templates/onepage/update/README.md +21 -0
  377. package/skills/rabetbase-page-generation/templates/onepage/update/index.jsx +4 -0
  378. package/skills/rabetbase-page-generation/templates/onepage/update/preview.png +0 -0
  379. package/skills/rabetbase.manifest.json +3 -3
@@ -1 +1 @@
1
- function a190_0x5e23(){const _0x491d16=['4OmyjXR','208995TEtRmt','2712EcCgKy','846jJgHNj','Found\x20','1358IrcPjw','type','1131528NHIzjO','15TnjTpE','1393106MPasLI','path','79993hQmCIq','menus','label','6740TSPxob','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','\x20Custom\x20Page(s).','cookie','flatMap','pageId','128092dFEXra','appCode','custom-list','length','read','react','compress'];a190_0x5e23=function(){return _0x491d16;};return a190_0x5e23();}const a190_0x532139=a190_0x5b2c;(function(_0x2011c3,_0x2cc219){const _0x1f5ca2=a190_0x5b2c,_0x2067a3=_0x2011c3();while(!![]){try{const _0x49a1ab=-parseInt(_0x1f5ca2(0x171))/0x1+-parseInt(_0x1f5ca2(0x166))/0x2*(parseInt(_0x1f5ca2(0x167))/0x3)+parseInt(_0x1f5ca2(0x17a))/0x4*(parseInt(_0x1f5ca2(0x16e))/0x5)+parseInt(_0x1f5ca2(0x168))/0x6*(-parseInt(_0x1f5ca2(0x16b))/0x7)+parseInt(_0x1f5ca2(0x16d))/0x8+parseInt(_0x1f5ca2(0x169))/0x9*(parseInt(_0x1f5ca2(0x174))/0xa)+parseInt(_0x1f5ca2(0x16f))/0xb;if(_0x49a1ab===_0x2cc219)break;else _0x2067a3['push'](_0x2067a3['shift']());}catch(_0x29451d){_0x2067a3['push'](_0x2067a3['shift']());}}}(a190_0x5e23,0x1d6b5));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';import{buildCustomPageDevelopmentUrl,buildCustomPageEditUrl,buildCustomPageRuntimeUrl}from'./shared.js';function a190_0x5b2c(_0x3b74a0,_0x540399){_0x3b74a0=_0x3b74a0-0x163;const _0x5e23f7=a190_0x5e23();let _0x5b2cf3=_0x5e23f7[_0x3b74a0];return _0x5b2cf3;}export const pageCustomList={'service':'page','command':a190_0x532139(0x17c),'description':a190_0x532139(0x175),'risk':a190_0x532139(0x163),'defaultOutputFormat':a190_0x532139(0x165),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0xd06a17){const _0x374dd1=a190_0x532139,_0x27f294=(await fetchMenuSnapshot(_0xd06a17[_0x374dd1(0x17b)],_0xd06a17[_0x374dd1(0x177)]))[_0x374dd1(0x172)][_0x374dd1(0x178)](_0x10d997=>{const _0x148219=_0x374dd1;if(_0x10d997[_0x148219(0x16c)]!==_0x148219(0x164)||_0x10d997[_0x148219(0x179)]==null)return[];const _0x453e1b=buildCustomPageDevelopmentUrl(_0xd06a17[_0x148219(0x17b)],_0x10d997[_0x148219(0x170)]),_0x4baee7=buildCustomPageRuntimeUrl(_0xd06a17[_0x148219(0x17b)],_0x10d997[_0x148219(0x170)]),_0x49f860=buildCustomPageEditUrl(_0xd06a17[_0x148219(0x17b)],_0x10d997[_0x148219(0x179)]);return[{'pageId':_0x10d997[_0x148219(0x179)],'label':_0x10d997[_0x148219(0x173)],'path':_0x10d997['path'],..._0x453e1b?{'pageUrl':_0x453e1b}:{},..._0x4baee7?{'runtimePageUrl':_0x4baee7}:{},..._0x49f860?{'editPageUrl':_0x49f860}:{}}];});return{'ok':!![],'data':{'pages':_0x27f294},'message':_0x27f294[_0x374dd1(0x17d)]===0x0?'No\x20Custom\x20Pages\x20found.':_0x374dd1(0x16a)+_0x27f294[_0x374dd1(0x17d)]+_0x374dd1(0x176)};}};
1
+ function a190_0x5913(_0x5def8f,_0x5d267c){_0x5def8f=_0x5def8f-0x1da;const _0x5cf7c5=a190_0x5cf7();let _0x591351=_0x5cf7c5[_0x5def8f];return _0x591351;}const a190_0x10d11f=a190_0x5913;(function(_0x5f3cf2,_0x401f7f){const _0x1a4652=a190_0x5913,_0x2ba967=_0x5f3cf2();while(!![]){try{const _0x187faf=parseInt(_0x1a4652(0x1e9))/0x1+parseInt(_0x1a4652(0x1dd))/0x2+parseInt(_0x1a4652(0x1e0))/0x3*(-parseInt(_0x1a4652(0x1e1))/0x4)+parseInt(_0x1a4652(0x1e4))/0x5*(-parseInt(_0x1a4652(0x1e6))/0x6)+parseInt(_0x1a4652(0x1ed))/0x7*(parseInt(_0x1a4652(0x1df))/0x8)+-parseInt(_0x1a4652(0x1e2))/0x9+-parseInt(_0x1a4652(0x1da))/0xa*(-parseInt(_0x1a4652(0x1e8))/0xb);if(_0x187faf===_0x401f7f)break;else _0x2ba967['push'](_0x2ba967['shift']());}catch(_0x49bbbc){_0x2ba967['push'](_0x2ba967['shift']());}}}(a190_0x5cf7,0x9bc59));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':a190_0x10d11f(0x1e5),'command':a190_0x10d11f(0x1f3),'description':a190_0x10d11f(0x1f2),'risk':a190_0x10d11f(0x1ec),'defaultOutputFormat':a190_0x10d11f(0x1ef),'structuredErrors':!![],'flags':[APPCODE_FLAG_OPTIONAL],async 'execute'(_0x193be4){const _0x2c9ee1=a190_0x10d11f,_0x44cb0c=(await fetchMenuSnapshot(_0x193be4[_0x2c9ee1(0x1f0)],_0x193be4['cookie']))['menus'][_0x2c9ee1(0x1ee)](_0x5b3a95=>{const _0x16163e=_0x2c9ee1;if(_0x5b3a95[_0x16163e(0x1eb)]!==_0x16163e(0x1e3)||_0x5b3a95[_0x16163e(0x1ea)]==null)return[];const _0x542cff=buildCustomPageDevelopmentUrl(_0x193be4[_0x16163e(0x1f0)],_0x5b3a95[_0x16163e(0x1db)]),_0x1a9b1c=buildCustomPageRuntimeUrl(_0x193be4[_0x16163e(0x1f0)],_0x5b3a95[_0x16163e(0x1db)]),_0x144731=buildCustomPageEditUrl(_0x193be4[_0x16163e(0x1f0)],_0x5b3a95['pageId']);return[{'pageId':_0x5b3a95[_0x16163e(0x1ea)],'label':_0x5b3a95[_0x16163e(0x1f1)],'path':_0x5b3a95[_0x16163e(0x1db)],..._0x542cff?{'pageUrl':_0x542cff}:{},..._0x1a9b1c?{'runtimePageUrl':_0x1a9b1c}:{},..._0x144731?{'editPageUrl':_0x144731}:{}}];});return{'ok':!![],'data':{'pages':_0x44cb0c},'message':_0x44cb0c[_0x2c9ee1(0x1dc)]===0x0?_0x2c9ee1(0x1de):'Found\x20'+_0x44cb0c['length']+_0x2c9ee1(0x1e7)};}};function a190_0x5cf7(){const _0x2f7202=['pageId','type','read','228851YqCeZa','flatMap','compress','appCode','label','List\x20Custom\x20Pages\x20in\x20the\x20current\x20app','custom-list','10068950SiozuZ','path','length','909610aNMJBB','No\x20Custom\x20Pages\x20found.','208qJxMHn','19032bSIpBz','636ZNyFSi','9335295rvdJQh','react','125vOMySM','page','17562xXCukR','\x20Custom\x20Page(s).','11CCaLkD','445449YQjfZy'];a190_0x5cf7=function(){return _0x2f7202;};return a190_0x5cf7();}
@@ -1 +1 @@
1
- const a191_0x57f81d=a191_0x414a;(function(_0x48c2c4,_0x905ede){const _0x16861f=a191_0x414a,_0x42e8fd=_0x48c2c4();while(!![]){try{const _0x1e42da=parseInt(_0x16861f(0xb9))/0x1+-parseInt(_0x16861f(0xc3))/0x2*(parseInt(_0x16861f(0xcd))/0x3)+parseInt(_0x16861f(0xb4))/0x4+-parseInt(_0x16861f(0xb6))/0x5+parseInt(_0x16861f(0xbb))/0x6*(parseInt(_0x16861f(0xd1))/0x7)+parseInt(_0x16861f(0xba))/0x8*(-parseInt(_0x16861f(0xcb))/0x9)+parseInt(_0x16861f(0xd3))/0xa;if(_0x1e42da===_0x905ede)break;else _0x42e8fd['push'](_0x42e8fd['shift']());}catch(_0x201ab9){_0x42e8fd['push'](_0x42e8fd['shift']());}}}(a191_0x1a4d,0x76c8f));import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';import{CliErrors}from'../../../errors.js';function a191_0x414a(_0x7e389,_0x50ea08){_0x7e389=_0x7e389-0xb3;const _0x1a4d69=a191_0x1a4d();let _0x414a7f=_0x1a4d69[_0x7e389];return _0x414a7f;}import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';function a191_0x1a4d(){const _0x459a84=['remark','pageId','FORMAL','223404ysSGqz','warnings','appCode','Published\x20Custom\x20Page\x20','Custom\x20Page\x20ID','compress','string','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','36DZNqUm','Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.','15ZNUbig','status','number','apiError','1001ngamRV','runtimePageUrl','603290tEBsSU','page','write','2279936ygEWtl','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','2245540hUkiHR','/smartapi/webcode/file/publish','trim','619430VXFopR','309104AaOdGL','16740uVMPNm','push','pageCode','Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page'];a191_0x1a4d=function(){return _0x459a84;};return a191_0x1a4d();}export const pageCustomPublish={'service':a191_0x57f81d(0xd4),'command':'custom-publish','description':a191_0x57f81d(0xbf),'risk':a191_0x57f81d(0xb3),'defaultOutputFormat':a191_0x57f81d(0xc8),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a191_0x57f81d(0xcf),'required':!![],'description':a191_0x57f81d(0xc7)},{'name':a191_0x57f81d(0xc0),'type':a191_0x57f81d(0xc9),'description':'Optional\x20publish\x20remark'}],async 'validate'(_0x44e0dc){readCustomPageId(_0x44e0dc);},async 'dryRun'(_0x6d110c){const _0x2c85bc=a191_0x57f81d,_0xe90fb8=readInput(_0x6d110c);return{'method':'POST','url':_0x2c85bc(0xb7),'body':{'id':_0xe90fb8[_0x2c85bc(0xc1)],..._0xe90fb8['remark']?{'remark':_0xe90fb8['remark']}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0xe90fb8[_0x2c85bc(0xc1)]+'.'};},async 'execute'(_0x580708){const _0x22900e=a191_0x57f81d,_0x3b3c1f=readInput(_0x580708);await getCustomPageSource(_0x3b3c1f[_0x22900e(0xc1)]);const _0x48703c=await publishCustomPage(_0x3b3c1f);if(!Number['isInteger'](_0x48703c)||_0x48703c!==_0x3b3c1f['pageId'])throw CliErrors[_0x22900e(0xd0)](_0x22900e(0xcc));const _0x31163d=await getCustomPageSource(_0x3b3c1f[_0x22900e(0xc1)]);if(_0x31163d[_0x22900e(0xce)]!==_0x22900e(0xc2))throw CliErrors['apiError'](_0x22900e(0xbe)+(_0x31163d[_0x22900e(0xce)]??'unknown')+'.');const _0x1cf451=_0x31163d['appCode']?.[_0x22900e(0xb8)](),_0x34410f=buildCustomPageEditUrl(_0x1cf451,_0x3b3c1f[_0x22900e(0xc1)]),_0x51a9f7=await resolveCustomPageDevelopmentUrl(_0x1cf451,_0x3b3c1f[_0x22900e(0xc1)],_0x580708['cookie']),_0x4ef744=buildMutationData(_0x3b3c1f,!![],_0x51a9f7,_0x34410f);_0x1cf451&&!_0x51a9f7&&_0x4ef744[_0x22900e(0xc4)][_0x22900e(0xbc)](_0x22900e(0xb5));const _0x4fbdc4=buildCustomPageRuntimeUrl(_0x31163d[_0x22900e(0xc5)],_0x31163d[_0x22900e(0xbd)]);return _0x4fbdc4?_0x4ef744[_0x22900e(0xd2)]=_0x4fbdc4:_0x4ef744[_0x22900e(0xc4)][_0x22900e(0xbc)](_0x22900e(0xca)),{'ok':!![],'data':_0x4ef744,'message':_0x22900e(0xc6)+_0x3b3c1f[_0x22900e(0xc1)]+'.'};}};function readInput(_0x493446){const _0xda1986=a191_0x57f81d,_0x10a3d4=readCustomPageId(_0x493446),_0x3af597=_0x493446['str']('remark')[_0xda1986(0xb8)]();return{'pageId':_0x10a3d4,..._0x3af597?{'remark':_0x3af597}:{}};}function buildMutationData(_0x215062,_0x3c5f3=![],_0x6b3e76,_0x580880){const _0x5c24f7=a191_0x57f81d;return{'operation':'page.custom-publish','selector':{'pageId':_0x215062[_0x5c24f7(0xc1)]},'before':null,'after':{'pageId':_0x215062[_0x5c24f7(0xc1)],'status':_0x5c24f7(0xc2)},'dryRun':!_0x3c5f3,'request':_0x215062,..._0x6b3e76?{'pageUrl':_0x6b3e76}:{},..._0x580880?{'editPageUrl':_0x580880}:{},'warnings':[]};}
1
+ const a191_0x359e06=a191_0xee60;(function(_0x5dab3c,_0x35c924){const _0x18e2fc=a191_0xee60,_0x1786fd=_0x5dab3c();while(!![]){try{const _0x18a2cf=parseInt(_0x18e2fc(0x193))/0x1*(parseInt(_0x18e2fc(0x17a))/0x2)+parseInt(_0x18e2fc(0x179))/0x3*(parseInt(_0x18e2fc(0x16e))/0x4)+parseInt(_0x18e2fc(0x181))/0x5*(parseInt(_0x18e2fc(0x186))/0x6)+parseInt(_0x18e2fc(0x177))/0x7*(parseInt(_0x18e2fc(0x18d))/0x8)+-parseInt(_0x18e2fc(0x17f))/0x9+-parseInt(_0x18e2fc(0x17c))/0xa+-parseInt(_0x18e2fc(0x18a))/0xb;if(_0x18a2cf===_0x35c924)break;else _0x1786fd['push'](_0x1786fd['shift']());}catch(_0xbf247f){_0x1786fd['push'](_0x1786fd['shift']());}}}(a191_0xd149,0x9827b));function a191_0xd149(){const _0x2938d2=['Custom\x20Page\x20ID','1184442rWHjuH','appCode','94038HwRAlF','2GHvCot','custom-publish','9745280wCHNHQ','POST','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20published\x20page\x20could\x20not\x20be\x20generated.','2807730tHsNgn','page','5929615PxOndw','write','Optional\x20publish\x20remark','push','runtimePageUrl','6Ijkqcm','str','pageCode','Published\x20Custom\x20Page\x20','5924215sQIINM','remark','string','16NGDSxr','FORMAL','Published\x20successfully,\x20but\x20a\x20link\x20to\x20the\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','status','warnings','number','485111KhwbFU','cookie','56JlHSiE','Publish\x20the\x20latest\x20saved\x20content\x20of\x20a\x20Custom\x20Page','compress','trim','page.custom-publish','apiError','pageId','isInteger'];a191_0xd149=function(){return _0x2938d2;};return a191_0xd149();}import{getCustomPageSource,publishCustomPage}from'../../../core/api-client.js';function a191_0xee60(_0x4b081f,_0x4506ef){_0x4b081f=_0x4b081f-0x16e;const _0xd1499c=a191_0xd149();let _0xee607e=_0xd1499c[_0x4b081f];return _0xee607e;}import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,buildCustomPageRuntimeUrl,readCustomPageId,resolveCustomPageDevelopmentUrl}from'./shared.js';export const pageCustomPublish={'service':a191_0x359e06(0x180),'command':a191_0x359e06(0x17b),'description':a191_0x359e06(0x16f),'risk':a191_0x359e06(0x182),'defaultOutputFormat':a191_0x359e06(0x170),'structuredErrors':!![],'requiresAppCode':![],'flags':[{'name':'id','type':a191_0x359e06(0x192),'required':!![],'description':a191_0x359e06(0x176)},{'name':'remark','type':a191_0x359e06(0x18c),'description':a191_0x359e06(0x183)}],async 'validate'(_0x517817){readCustomPageId(_0x517817);},async 'dryRun'(_0x461be7){const _0x532dee=a191_0x359e06,_0x5ded9c=readInput(_0x461be7);return{'method':_0x532dee(0x17d),'url':'/smartapi/webcode/file/publish','body':{'id':_0x5ded9c[_0x532dee(0x174)],..._0x5ded9c[_0x532dee(0x18b)]?{'remark':_0x5ded9c[_0x532dee(0x18b)]}:{}},'description':'Would\x20publish\x20Custom\x20Page\x20'+_0x5ded9c['pageId']+'.'};},async 'execute'(_0x326586){const _0x1e62ef=a191_0x359e06,_0xe317e5=readInput(_0x326586);await getCustomPageSource(_0xe317e5['pageId']);const _0x3d7123=await publishCustomPage(_0xe317e5);if(!Number[_0x1e62ef(0x175)](_0x3d7123)||_0x3d7123!==_0xe317e5['pageId'])throw CliErrors[_0x1e62ef(0x173)]('Custom\x20Page\x20publish\x20did\x20not\x20return\x20the\x20expected\x20page\x20ID.');const _0x2079ec=await getCustomPageSource(_0xe317e5['pageId']);if(_0x2079ec[_0x1e62ef(0x190)]!==_0x1e62ef(0x18e))throw CliErrors[_0x1e62ef(0x173)]('Custom\x20Page\x20publish\x20did\x20not\x20reach\x20published\x20status:\x20'+(_0x2079ec['status']??'unknown')+'.');const _0x50de97=_0x2079ec[_0x1e62ef(0x178)]?.[_0x1e62ef(0x171)](),_0x289e2d=buildCustomPageEditUrl(_0x50de97,_0xe317e5[_0x1e62ef(0x174)]),_0x59d3f1=await resolveCustomPageDevelopmentUrl(_0x50de97,_0xe317e5[_0x1e62ef(0x174)],_0x326586[_0x1e62ef(0x194)]),_0x21f387=buildMutationData(_0xe317e5,!![],_0x59d3f1,_0x289e2d);_0x50de97&&!_0x59d3f1&&_0x21f387[_0x1e62ef(0x191)][_0x1e62ef(0x184)](_0x1e62ef(0x18f));const _0x1f89c0=buildCustomPageRuntimeUrl(_0x2079ec[_0x1e62ef(0x178)],_0x2079ec[_0x1e62ef(0x188)]);return _0x1f89c0?_0x21f387[_0x1e62ef(0x185)]=_0x1f89c0:_0x21f387['warnings'][_0x1e62ef(0x184)](_0x1e62ef(0x17e)),{'ok':!![],'data':_0x21f387,'message':_0x1e62ef(0x189)+_0xe317e5[_0x1e62ef(0x174)]+'.'};}};function readInput(_0x246ac9){const _0x33f934=a191_0x359e06,_0x169a23=readCustomPageId(_0x246ac9),_0x312920=_0x246ac9[_0x33f934(0x187)]('remark')['trim']();return{'pageId':_0x169a23,..._0x312920?{'remark':_0x312920}:{}};}function buildMutationData(_0x228dd7,_0x293504=![],_0x417288,_0x418d75){const _0x4b1816=a191_0x359e06;return{'operation':_0x4b1816(0x172),'selector':{'pageId':_0x228dd7[_0x4b1816(0x174)]},'before':null,'after':{'pageId':_0x228dd7[_0x4b1816(0x174)],'status':'FORMAL'},'dryRun':!_0x293504,'request':_0x228dd7,..._0x417288?{'pageUrl':_0x417288}:{},..._0x418d75?{'editPageUrl':_0x418d75}:{},'warnings':[]};}
@@ -1 +1 @@
1
- function a192_0x1af7(){const _0x5f27fb=['path','733565sGBRGR','validation','type','/ide/','1066792rpKofM','516766AmVYpA','15762HPVrag','30eUjUkx','length','message','find','--id\x20must\x20be\x20a\x20positive\x20integer.','file','6KCPjTE','join','9438708pqjKrO','Invalid\x20Custom\x20Page\x20content:\x20','menus','pageId','9bNsFKe','936465MIomVX','map','856801TqrNWG','1VCKfve','4LmHRYW'];a192_0x1af7=function(){return _0x5f27fb;};return a192_0x1af7();}(function(_0x230ca2,_0x2f1706){const _0x38d476=a192_0x27ae,_0x125626=_0x230ca2();while(!![]){try{const _0x5ba124=-parseInt(_0x38d476(0x9c))/0x1*(parseInt(_0x38d476(0xa4))/0x2)+-parseInt(_0x38d476(0xa5))/0x3*(-parseInt(_0x38d476(0x9d))/0x4)+-parseInt(_0x38d476(0x99))/0x5+-parseInt(_0x38d476(0x92))/0x6*(parseInt(_0x38d476(0x9f))/0x7)+parseInt(_0x38d476(0xa3))/0x8*(parseInt(_0x38d476(0x98))/0x9)+-parseInt(_0x38d476(0xa6))/0xa*(parseInt(_0x38d476(0x9b))/0xb)+parseInt(_0x38d476(0x94))/0xc;if(_0x5ba124===_0x2f1706)break;else _0x125626['push'](_0x125626['shift']());}catch(_0x5b1d8a){_0x125626['push'](_0x125626['shift']());}}}(a192_0x1af7,0x226da));import{APPCODE_FLAG_OPTIONAL}from'../../../commands/common/flags.js';import{fetchMenuSnapshot}from'../../../commands/menu/shared/facts.js';function a192_0x27ae(_0x3e8b4c,_0x36a6e5){_0x3e8b4c=_0x3e8b4c-0x8d;const _0x1af78f=a192_0x1af7();let _0x27ae7d=_0x1af78f[_0x3e8b4c];return _0x27ae7d;}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':'Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted'};function trimOptional(_0x1d7e02){return _0x1d7e02?.['trim']()||undefined;}export function buildCustomPageRuntimeUrl(_0x50c44b,_0x50d033){const _0x619d7f=trimOptional(_0x50c44b),_0xa3f83=trimOptional(_0x50d033);if(!_0x619d7f||!_0xa3f83)return undefined;return getPublishedAppDomain(_0x619d7f)+'/'+encodeURIComponent(_0xa3f83);}export function buildCustomPageDevelopmentUrl(_0x2ed2dd,_0x1ab8ff){const _0x4ed895=trimOptional(_0x2ed2dd),_0x17fd2a=trimOptional(_0x1ab8ff);if(!_0x4ed895||!_0x17fd2a)return undefined;return getAppBaseUrl(_0x4ed895)+'/pages/'+encodeURIComponent(_0x17fd2a);}export async function resolveCustomPageDevelopmentUrl(_0x14f099,_0x34877d,_0x5db9fe){const _0x507632=a192_0x27ae,_0x427dad=trimOptional(_0x14f099);if(!_0x427dad)return undefined;try{const _0xc44261=(await fetchMenuSnapshot(_0x427dad,_0x5db9fe))[_0x507632(0x96)][_0x507632(0x8f)](_0x1c0ba5=>_0x1c0ba5[_0x507632(0xa1)]==='react'&&_0x1c0ba5[_0x507632(0x97)]===_0x34877d);return buildCustomPageDevelopmentUrl(_0x427dad,_0xc44261?.[_0x507632(0x9e)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x2b7691,_0x1e1989){const _0x15c2c3=a192_0x27ae,_0x1ed16c=trimOptional(_0x2b7691);if(!_0x1ed16c)return;const _0x1cc753=trimOptional(String(_0x1e1989??''));if(!_0x1cc753)return;return getAppBaseUrl(_0x1ed16c)+_0x15c2c3(0xa2)+encodeURIComponent(_0x1cc753);}export async function validateCustomPageContent(_0x38d6ee){const _0x42eb5a=a192_0x27ae,_0x7500e3=await validateCustomPageSourceFiles(_0x38d6ee);if(_0x7500e3[_0x42eb5a(0x8d)]>0x0)throw CliErrors[_0x42eb5a(0xa0)](_0x42eb5a(0x95)+_0x7500e3[_0x42eb5a(0x9a)](_0x575e20=>_0x575e20[_0x42eb5a(0x91)]+':\x20'+_0x575e20[_0x42eb5a(0x8e)])[_0x42eb5a(0x93)](';\x20'));}export function readCustomPageId(_0x31c106){const _0x31c792=a192_0x27ae,_0x28d8bb=_0x31c106['num']('id');if(!Number['isInteger'](_0x28d8bb)||_0x28d8bb<=0x0)throw CliErrors['validation'](_0x31c792(0x90));return _0x28d8bb;}
1
+ const a192_0x329015=a192_0x3864;(function(_0x4c5f81,_0x469e0f){const _0x3dccbf=a192_0x3864,_0x4ac595=_0x4c5f81();while(!![]){try{const _0x2ef960=parseInt(_0x3dccbf(0x184))/0x1+parseInt(_0x3dccbf(0x192))/0x2*(parseInt(_0x3dccbf(0x188))/0x3)+parseInt(_0x3dccbf(0x18d))/0x4+-parseInt(_0x3dccbf(0x180))/0x5+parseInt(_0x3dccbf(0x17f))/0x6+-parseInt(_0x3dccbf(0x194))/0x7*(parseInt(_0x3dccbf(0x17d))/0x8)+-parseInt(_0x3dccbf(0x186))/0x9;if(_0x2ef960===_0x469e0f)break;else _0x4ac595['push'](_0x4ac595['shift']());}catch(_0x540b13){_0x4ac595['push'](_0x4ac595['shift']());}}}(a192_0x2527,0x70267));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';function a192_0x3864(_0x50a403,_0x390461){_0x50a403=_0x50a403-0x17d;const _0x25272d=a192_0x2527();let _0x386455=_0x25272d[_0x50a403];return _0x386455;}export const CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL={...APPCODE_FLAG_OPTIONAL,'description':a192_0x329015(0x18a)};function a192_0x2527(){const _0x14c7f9=['8ZbkJke','file','5045562zjmtrM','658440BXWcHE','length','find','Invalid\x20Custom\x20Page\x20content:\x20','806387WRURPd','path','14574465SaAsgh','join','1989519hDFpMZ','/ide/','Optional\x20app\x20code\x20resolved\x20from\x20page\x20ID\x20when\x20omitted','menus','pageId','2196624XBDYcv','num','/pages/','--id\x20must\x20be\x20a\x20positive\x20integer.','react','2wwHPCs','validation','4544421xbSwZc','trim'];a192_0x2527=function(){return _0x14c7f9;};return a192_0x2527();}function trimOptional(_0x263770){const _0xdc62b2=a192_0x329015;return _0x263770?.[_0xdc62b2(0x195)]()||undefined;}export function buildCustomPageRuntimeUrl(_0x412936,_0x253f45){const _0x23399f=trimOptional(_0x412936),_0x37fbbf=trimOptional(_0x253f45);if(!_0x23399f||!_0x37fbbf)return undefined;return getPublishedAppDomain(_0x23399f)+'/'+encodeURIComponent(_0x37fbbf);}export function buildCustomPageDevelopmentUrl(_0x4700d8,_0x22ca0f){const _0x3ef578=a192_0x329015,_0x4c293a=trimOptional(_0x4700d8),_0x57f818=trimOptional(_0x22ca0f);if(!_0x4c293a||!_0x57f818)return undefined;return getAppBaseUrl(_0x4c293a)+_0x3ef578(0x18f)+encodeURIComponent(_0x57f818);}export async function resolveCustomPageDevelopmentUrl(_0x2562ae,_0x310b2e,_0x4ba8d7){const _0x5b0187=a192_0x329015,_0x3c71f4=trimOptional(_0x2562ae);if(!_0x3c71f4)return undefined;try{const _0x4205d2=(await fetchMenuSnapshot(_0x3c71f4,_0x4ba8d7))[_0x5b0187(0x18b)][_0x5b0187(0x182)](_0x572bfa=>_0x572bfa['type']===_0x5b0187(0x191)&&_0x572bfa[_0x5b0187(0x18c)]===_0x310b2e);return buildCustomPageDevelopmentUrl(_0x3c71f4,_0x4205d2?.[_0x5b0187(0x185)]);}catch{return undefined;}}export function buildCustomPageEditUrl(_0x11ca57,_0x1adccf){const _0x23f6fc=a192_0x329015,_0xaad8f9=trimOptional(_0x11ca57);if(!_0xaad8f9)return;const _0x545614=trimOptional(String(_0x1adccf??''));if(!_0x545614)return;return getAppBaseUrl(_0xaad8f9)+_0x23f6fc(0x189)+encodeURIComponent(_0x545614);}export async function validateCustomPageContent(_0x2779d9){const _0xfdc7fa=a192_0x329015,_0x5b6cc1=await validateCustomPageSourceFiles(_0x2779d9);if(_0x5b6cc1[_0xfdc7fa(0x181)]>0x0)throw CliErrors[_0xfdc7fa(0x193)](_0xfdc7fa(0x183)+_0x5b6cc1['map'](_0x45502f=>_0x45502f[_0xfdc7fa(0x17e)]+':\x20'+_0x45502f['message'])[_0xfdc7fa(0x187)](';\x20'));}export function readCustomPageId(_0xf8764d){const _0x3863a3=a192_0x329015,_0x1d44ee=_0xf8764d[_0x3863a3(0x18e)]('id');if(!Number['isInteger'](_0x1d44ee)||_0x1d44ee<=0x0)throw CliErrors[_0x3863a3(0x193)](_0x3863a3(0x190));return _0x1d44ee;}
@@ -1 +1 @@
1
- function a193_0x3a67(_0x245434,_0x261ac7){_0x245434=_0x245434-0x185;const _0x3a8d53=a193_0x3a8d();let _0x3a6781=_0x3a8d53[_0x245434];return _0x3a6781;}const a193_0x5c9638=a193_0x3a67;function a193_0x3a8d(){const _0x423e4c=['8uzVDaF','map','9397451uvOpmE','entries','97930dYEluu','.tsx','1255952cAIvfu','5484005UrXtRl','6RKBgZC','page\x20files','all','message','6sXWhlo','filter','toLowerCase','160791BngwwR','endsWith','29153883UJnZlW','trim','babel','typescript','805668apjzEF','1089xgLllX','some'];a193_0x3a8d=function(){return _0x423e4c;};return a193_0x3a8d();}(function(_0x1ce7dd,_0x480889){const _0x1d22b4=a193_0x3a67,_0x155ab3=_0x1ce7dd();while(!![]){try{const _0x3915ae=parseInt(_0x1d22b4(0x198))/0x1+parseInt(_0x1d22b4(0x186))/0x2*(-parseInt(_0x1d22b4(0x195))/0x3)+-parseInt(_0x1d22b4(0x18f))/0x4+-parseInt(_0x1d22b4(0x190))/0x5*(parseInt(_0x1d22b4(0x191))/0x6)+parseInt(_0x1d22b4(0x18b))/0x7*(parseInt(_0x1d22b4(0x189))/0x8)+-parseInt(_0x1d22b4(0x187))/0x9*(parseInt(_0x1d22b4(0x18d))/0xa)+parseInt(_0x1d22b4(0x19a))/0xb;if(_0x3915ae===_0x480889)break;else _0x155ab3['push'](_0x155ab3['shift']());}catch(_0x4ded4b){_0x155ab3['push'](_0x155ab3['shift']());}}}(a193_0x3a8d,0xb7a63));import{format}from'prettier';const SOURCE_PARSERS={'.js':a193_0x5c9638(0x19c),'.jsx':a193_0x5c9638(0x19c),'.ts':'typescript','.tsx':a193_0x5c9638(0x185)},CUSTOM_PAGE_EXTENSIONS=['.jsx',a193_0x5c9638(0x18e)];export async function validateCustomPageSourceFiles(_0x44fb7d){const _0x2985a6=a193_0x5c9638,_0x423a7f=Object[_0x2985a6(0x18c)](_0x44fb7d)[_0x2985a6(0x196)](([_0x50734f])=>getParser(_0x50734f));if(!_0x423a7f[_0x2985a6(0x188)](([_0x3dfece])=>isReactSourceFile(_0x3dfece)))return[{'file':_0x2985a6(0x192),'message':'Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx'}];const _0x4fe90a=await Promise[_0x2985a6(0x193)](_0x423a7f[_0x2985a6(0x18a)](async([_0xb94c89,_0x540b21])=>{const _0x300642=_0x2985a6;try{return await format(_0x540b21,{'parser':getParser(_0xb94c89)}),undefined;}catch(_0x4f759e){return{'file':_0xb94c89,'message':_0x4f759e instanceof Error?_0x4f759e[_0x300642(0x194)]:String(_0x4f759e)};}}));return _0x4fe90a[_0x2985a6(0x196)](_0x5541c8=>_0x5541c8!==undefined);}function getParser(_0x4003f3){const _0x22ea39=a193_0x5c9638,_0x2b6a1d=_0x4003f3[_0x22ea39(0x19b)]()['toLowerCase']();return Object['entries'](SOURCE_PARSERS)['find'](([_0x140b8f])=>_0x2b6a1d[_0x22ea39(0x199)](_0x140b8f))?.[0x1];}function isReactSourceFile(_0x17d7af){const _0x4e6ff5=a193_0x5c9638,_0x4cb5c9=_0x17d7af['trim']()[_0x4e6ff5(0x197)]();return CUSTOM_PAGE_EXTENSIONS[_0x4e6ff5(0x188)](_0xe4b8f2=>_0x4cb5c9[_0x4e6ff5(0x199)](_0xe4b8f2));}
1
+ const a193_0x2d225=a193_0x5879;(function(_0x5d59be,_0x3bb6f4){const _0x77404f=a193_0x5879,_0x535cf0=_0x5d59be();while(!![]){try{const _0xd423b4=-parseInt(_0x77404f(0x6c))/0x1*(-parseInt(_0x77404f(0x79))/0x2)+-parseInt(_0x77404f(0x72))/0x3+parseInt(_0x77404f(0x76))/0x4*(parseInt(_0x77404f(0x75))/0x5)+-parseInt(_0x77404f(0x68))/0x6+parseInt(_0x77404f(0x67))/0x7+-parseInt(_0x77404f(0x77))/0x8+-parseInt(_0x77404f(0x6b))/0x9*(parseInt(_0x77404f(0x70))/0xa);if(_0xd423b4===_0x3bb6f4)break;else _0x535cf0['push'](_0x535cf0['shift']());}catch(_0x5ee286){_0x535cf0['push'](_0x535cf0['shift']());}}}(a193_0x1a40,0x3a169));function a193_0x5879(_0x3934c1,_0x58c5ae){_0x3934c1=_0x3934c1-0x64;const _0x1a4096=a193_0x1a40();let _0x587959=_0x1a4096[_0x3934c1];return _0x587959;}import{format}from'prettier';function a193_0x1a40(){const _0x31baee=['toLowerCase','page\x20files','2502976HbhdKB','887904FzaDzB','Missing\x20React\x20source\x20file\x20with\x20extension\x20.jsx\x20or\x20.tsx','filter','267903lOgOny','2sGwCwW','.tsx','message','trim','30ZzxMFz','entries','397701QEiSAU','all','map','50cVqdMP','7804SoPQre','794536PsGvkU','some','330020DoxNwu','endsWith','typescript','babel'];a193_0x1a40=function(){return _0x31baee;};return a193_0x1a40();}const SOURCE_PARSERS={'.js':a193_0x2d225(0x64),'.jsx':'babel','.ts':a193_0x2d225(0x7b),'.tsx':'typescript'},CUSTOM_PAGE_EXTENSIONS=['.jsx',a193_0x2d225(0x6d)];export async function validateCustomPageSourceFiles(_0x2f20e5){const _0x450f78=a193_0x2d225,_0x565ab9=Object[_0x450f78(0x71)](_0x2f20e5)[_0x450f78(0x6a)](([_0x368492])=>getParser(_0x368492));if(!_0x565ab9[_0x450f78(0x78)](([_0x3b5d1a])=>isReactSourceFile(_0x3b5d1a)))return[{'file':_0x450f78(0x66),'message':_0x450f78(0x69)}];const _0x32c932=await Promise[_0x450f78(0x73)](_0x565ab9[_0x450f78(0x74)](async([_0x187a62,_0x389af4])=>{const _0x1a276f=_0x450f78;try{return await format(_0x389af4,{'parser':getParser(_0x187a62)}),undefined;}catch(_0x121b77){return{'file':_0x187a62,'message':_0x121b77 instanceof Error?_0x121b77[_0x1a276f(0x6e)]:String(_0x121b77)};}}));return _0x32c932[_0x450f78(0x6a)](_0x2a7f3c=>_0x2a7f3c!==undefined);}function getParser(_0x510f75){const _0x49850e=a193_0x2d225,_0x10832b=_0x510f75[_0x49850e(0x6f)]()[_0x49850e(0x65)]();return Object[_0x49850e(0x71)](SOURCE_PARSERS)['find'](([_0x289db4])=>_0x10832b['endsWith'](_0x289db4))?.[0x1];}function isReactSourceFile(_0x251b28){const _0x348bfb=a193_0x2d225,_0x38adec=_0x251b28[_0x348bfb(0x6f)]()['toLowerCase']();return CUSTOM_PAGE_EXTENSIONS[_0x348bfb(0x78)](_0x4dd2bb=>_0x38adec[_0x348bfb(0x7a)](_0x4dd2bb));}
@@ -1 +1 @@
1
- function a194_0x7af4(_0x1ef09f,_0x5ec0a2){_0x1ef09f=_0x1ef09f-0x1ce;const _0x112bf6=a194_0x112b();let _0x7af4a=_0x112bf6[_0x1ef09f];return _0x7af4a;}const a194_0x70ac56=a194_0x7af4;(function(_0xdbe073,_0x4db89a){const _0x439c07=a194_0x7af4,_0x334d5a=_0xdbe073();while(!![]){try{const _0x10c7ab=-parseInt(_0x439c07(0x1ec))/0x1+parseInt(_0x439c07(0x1e2))/0x2+parseInt(_0x439c07(0x1ee))/0x3*(parseInt(_0x439c07(0x1f1))/0x4)+-parseInt(_0x439c07(0x1df))/0x5+-parseInt(_0x439c07(0x1cf))/0x6*(-parseInt(_0x439c07(0x1d2))/0x7)+parseInt(_0x439c07(0x1d7))/0x8+-parseInt(_0x439c07(0x1dd))/0x9;if(_0x10c7ab===_0x4db89a)break;else _0x334d5a['push'](_0x334d5a['shift']());}catch(_0x4b93d0){_0x334d5a['push'](_0x334d5a['shift']());}}}(a194_0x112b,0x965f7));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';function a194_0x112b(){const _0x1b3f97=['appCode','6101905TCzcsW','Custom\x20Page\x20ID','string','1194482dUcPpC','pageContent','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','page-content','Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.','page-dir','write','page','Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.','page.custom-update','1106234pFFGwp','/smartapi/webcode/page/update/content','3PocSUe','page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','trim','2556712UhWPZf','Directory\x20containing\x20all\x20complete\x20page\x20files','custom-update','18jblzBo','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','number','2092538XeKaVT','validation','isInteger','newVersion','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','8121112jUAcxr','apiError','POST','appcode','str','pageId','1852362ccyrJa'];a194_0x112b=function(){return _0x1b3f97;};return a194_0x112b();}import{readCustomPageDirectory}from'../../../core/page/file-system.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a194_0x70ac56(0x1e9),'command':a194_0x70ac56(0x1ce),'description':'Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','risk':a194_0x70ac56(0x1e8),'defaultOutputFormat':'compress','structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a194_0x70ac56(0x1e5),'message':a194_0x70ac56(0x1ef),'hint':a194_0x70ac56(0x1e6)}],'flags':[{'name':'id','type':a194_0x70ac56(0x1d1),'required':!![],'description':a194_0x70ac56(0x1e0)},{'name':a194_0x70ac56(0x1e7),'type':a194_0x70ac56(0x1e1),'required':!![],'description':a194_0x70ac56(0x1f2)},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x4426f2){readCustomPageId(_0x4426f2),await readValidatedPageContent(_0x4426f2);},async 'dryRun'(_0x2e4aef){const _0x44e279=a194_0x70ac56,_0xfe1301=await readInput(_0x2e4aef);return{'method':_0x44e279(0x1d9),'url':_0x44e279(0x1ed),'body':{'id':_0xfe1301[_0x44e279(0x1dc)],'codeContent':_0xfe1301[_0x44e279(0x1e3)]},'description':_0x44e279(0x1d0)+_0xfe1301[_0x44e279(0x1dc)]+'.'};},async 'execute'(_0x19ecd5){const _0x11e2bf=a194_0x70ac56,_0x1a78cd=await readInput(_0x19ecd5),_0x47eeb2=await updateCustomPageContent({'pageId':_0x1a78cd['pageId'],'pageContent':_0x1a78cd[_0x11e2bf(0x1e3)]});if(!Number[_0x11e2bf(0x1d4)](_0x47eeb2[_0x11e2bf(0x1d5)])||_0x47eeb2[_0x11e2bf(0x1d5)]<=0x0)throw CliErrors[_0x11e2bf(0x1d8)](_0x11e2bf(0x1e4));const _0x41a3ea=buildCustomPageEditUrl(_0x1a78cd[_0x11e2bf(0x1de)],_0x1a78cd[_0x11e2bf(0x1dc)]),_0x3b145d=await resolveCustomPageDevelopmentUrl(_0x1a78cd[_0x11e2bf(0x1de)],_0x1a78cd[_0x11e2bf(0x1dc)],_0x19ecd5['cookie']);return{'ok':!![],'data':{'operation':_0x11e2bf(0x1eb),'selector':{'appCode':_0x1a78cd[_0x11e2bf(0x1de)],'pageId':_0x1a78cd[_0x11e2bf(0x1dc)]},'before':null,'after':{'pageId':_0x47eeb2[_0x11e2bf(0x1dc)],'version':_0x47eeb2[_0x11e2bf(0x1d5)],'pageContent':_0x1a78cd[_0x11e2bf(0x1e3)]},'dryRun':![],'request':_0x1a78cd,..._0x3b145d?{'pageUrl':_0x3b145d}:{},..._0x41a3ea?{'editPageUrl':_0x41a3ea}:{},'warnings':_0x3b145d?[]:[_0x11e2bf(0x1ea)]},'message':'Updated\x20Custom\x20Page\x20'+_0x1a78cd['pageId']+'.'};}};async function readInput(_0x56efff){const _0x53b505=a194_0x70ac56,_0x513cb8=readCustomPageId(_0x56efff),_0x21e16e=_0x56efff[_0x53b505(0x1db)](_0x53b505(0x1da))[_0x53b505(0x1f0)]()||(await getCustomPageSource(_0x513cb8))[_0x53b505(0x1de)]?.['trim']();if(!_0x21e16e)throw CliErrors[_0x53b505(0x1d3)](_0x53b505(0x1d6)+_0x513cb8+'.');return{'appCode':_0x21e16e,'pageId':_0x513cb8,'pageContent':await readValidatedPageContent(_0x56efff)};}async function readValidatedPageContent(_0x53d40a){const _0x43d661=a194_0x70ac56,_0x11ba32=await readCustomPageDirectory(_0x53d40a[_0x43d661(0x1db)](_0x43d661(0x1e7)));return await validateCustomPageContent(_0x11ba32),_0x11ba32;}
1
+ const a194_0x6e23cc=a194_0x292e;(function(_0x1be62e,_0x301d77){const _0x7dbd8a=a194_0x292e,_0x3d8f23=_0x1be62e();while(!![]){try{const _0x506ec6=-parseInt(_0x7dbd8a(0x199))/0x1+parseInt(_0x7dbd8a(0x1ae))/0x2+-parseInt(_0x7dbd8a(0x1a0))/0x3+-parseInt(_0x7dbd8a(0x1a7))/0x4*(-parseInt(_0x7dbd8a(0x1a5))/0x5)+parseInt(_0x7dbd8a(0x1b6))/0x6*(parseInt(_0x7dbd8a(0x1b0))/0x7)+-parseInt(_0x7dbd8a(0x198))/0x8*(parseInt(_0x7dbd8a(0x1b8))/0x9)+-parseInt(_0x7dbd8a(0x19e))/0xa*(-parseInt(_0x7dbd8a(0x1a8))/0xb);if(_0x506ec6===_0x301d77)break;else _0x3d8f23['push'](_0x3d8f23['shift']());}catch(_0x59f02f){_0x3d8f23['push'](_0x3d8f23['shift']());}}}(a194_0x5da8,0xe1c56));import{getCustomPageSource,updateCustomPageContent}from'../../../core/api-client.js';function a194_0x292e(_0x1ec113,_0x545fa5){_0x1ec113=_0x1ec113-0x195;const _0x5da830=a194_0x5da8();let _0x292eca=_0x5da830[_0x1ec113];return _0x292eca;}import{readCustomPageDirectory}from'../../../core/page/file-system.js';import{CliErrors}from'../../../errors.js';import{buildCustomPageEditUrl,resolveCustomPageDevelopmentUrl,readCustomPageId,CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL,validateCustomPageContent}from'./shared.js';export const pageCustomUpdate={'service':a194_0x6e23cc(0x19b),'command':a194_0x6e23cc(0x1a4),'description':a194_0x6e23cc(0x196),'risk':a194_0x6e23cc(0x1a9),'defaultOutputFormat':a194_0x6e23cc(0x1b7),'structuredErrors':!![],'requiresAppCode':![],'rejectedFlags':[{'name':a194_0x6e23cc(0x19a),'message':'page\x20custom-update\x20no\x20longer\x20accepts\x20--page-content.','hint':'Write\x20the\x20complete\x20page\x20files\x20to\x20a\x20local\x20directory\x20and\x20use\x20--page-dir\x20<dir>.'}],'flags':[{'name':'id','type':a194_0x6e23cc(0x1a3),'required':!![],'description':a194_0x6e23cc(0x1b1)},{'name':a194_0x6e23cc(0x1b4),'type':a194_0x6e23cc(0x1b9),'required':!![],'description':'Directory\x20containing\x20all\x20complete\x20page\x20files'},CUSTOM_PAGE_APPCODE_FLAG_OPTIONAL],async 'validate'(_0x5a8a4c){readCustomPageId(_0x5a8a4c),await readValidatedPageContent(_0x5a8a4c);},async 'dryRun'(_0x5e837a){const _0x5e4f7a=a194_0x6e23cc,_0xefcbbc=await readInput(_0x5e837a);return{'method':_0x5e4f7a(0x1ad),'url':_0x5e4f7a(0x1ac),'body':{'id':_0xefcbbc['pageId'],'codeContent':_0xefcbbc[_0x5e4f7a(0x19c)]},'description':_0x5e4f7a(0x1b5)+_0xefcbbc[_0x5e4f7a(0x1a6)]+'.'};},async 'execute'(_0x1ae01b){const _0x18362f=a194_0x6e23cc,_0x460966=await readInput(_0x1ae01b),_0x544709=await updateCustomPageContent({'pageId':_0x460966[_0x18362f(0x1a6)],'pageContent':_0x460966[_0x18362f(0x19c)]});if(!Number[_0x18362f(0x197)](_0x544709[_0x18362f(0x1b3)])||_0x544709[_0x18362f(0x1b3)]<=0x0)throw CliErrors['apiError'](_0x18362f(0x1af));const _0x2915ae=buildCustomPageEditUrl(_0x460966['appCode'],_0x460966[_0x18362f(0x1a6)]),_0x914473=await resolveCustomPageDevelopmentUrl(_0x460966[_0x18362f(0x195)],_0x460966[_0x18362f(0x1a6)],_0x1ae01b[_0x18362f(0x1ab)]);return{'ok':!![],'data':{'operation':_0x18362f(0x1aa),'selector':{'appCode':_0x460966[_0x18362f(0x195)],'pageId':_0x460966[_0x18362f(0x1a6)]},'before':null,'after':{'pageId':_0x544709['pageId'],'version':_0x544709['newVersion'],'pageContent':_0x460966[_0x18362f(0x19c)]},'dryRun':![],'request':_0x460966,..._0x914473?{'pageUrl':_0x914473}:{},..._0x2915ae?{'editPageUrl':_0x2915ae}:{},'warnings':_0x914473?[]:['Custom\x20Page\x20was\x20updated,\x20but\x20a\x20link\x20to\x20its\x20latest\x20saved\x20content\x20could\x20not\x20be\x20generated.']},'message':_0x18362f(0x19f)+_0x460966[_0x18362f(0x1a6)]+'.'};}};async function readInput(_0x5354f0){const _0x3196c9=a194_0x6e23cc,_0x1a4e1f=readCustomPageId(_0x5354f0),_0xf9f2fc=_0x5354f0['str'](_0x3196c9(0x19d))['trim']()||(await getCustomPageSource(_0x1a4e1f))[_0x3196c9(0x195)]?.['trim']();if(!_0xf9f2fc)throw CliErrors[_0x3196c9(0x1a2)](_0x3196c9(0x1a1)+_0x1a4e1f+'.');return{'appCode':_0xf9f2fc,'pageId':_0x1a4e1f,'pageContent':await readValidatedPageContent(_0x5354f0)};}async function readValidatedPageContent(_0x57bedc){const _0x224ccd=a194_0x6e23cc,_0x5afc4e=await readCustomPageDirectory(_0x57bedc[_0x224ccd(0x1b2)](_0x224ccd(0x1b4)));return await validateCustomPageContent(_0x5afc4e),_0x5afc4e;}function a194_0x5da8(){const _0x4f3bcf=['newVersion','page-dir','Would\x20save\x20all\x20files\x20of\x20Custom\x20Page\x20','6Glqkgp','compress','9GzGxLV','string','appCode','Save\x20all\x20files\x20of\x20a\x20Custom\x20Page','isInteger','9404936NNPQsR','1782258NzvDji','page-content','page','pageContent','appcode','10prOwCZ','Updated\x20Custom\x20Page\x20','5399181qbckCd','Cannot\x20determine\x20the\x20appCode\x20for\x20Custom\x20Page\x20','validation','number','custom-update','2085085nYvVLE','pageId','16kWdEIp','32464465kdryDP','write','page.custom-update','cookie','/smartapi/webcode/page/update/content','POST','1695968OtrVlR','Custom\x20Page\x20update\x20did\x20not\x20create\x20a\x20new\x20version.','1504951wgjPjv','Custom\x20Page\x20ID','str'];a194_0x5da8=function(){return _0x4f3bcf;};return a194_0x5da8();}
@@ -1 +1 @@
1
- const a195_0x92175e=a195_0x3cab;function a195_0x3cab(_0x51ff05,_0x4ad430){_0x51ff05=_0x51ff05-0xde;const _0x1fb60e=a195_0x1fb6();let _0x3cabe0=_0x1fb60e[_0x51ff05];return _0x3cabe0;}(function(_0x4658c0,_0x7ff845){const _0x489e58=a195_0x3cab,_0x3ba3b3=_0x4658c0();while(!![]){try{const _0x43db98=parseInt(_0x489e58(0xe9))/0x1+parseInt(_0x489e58(0xe5))/0x2+parseInt(_0x489e58(0xeb))/0x3*(-parseInt(_0x489e58(0xde))/0x4)+parseInt(_0x489e58(0xef))/0x5+parseInt(_0x489e58(0xe8))/0x6+-parseInt(_0x489e58(0xf7))/0x7+-parseInt(_0x489e58(0xe3))/0x8*(parseInt(_0x489e58(0xf4))/0x9);if(_0x43db98===_0x7ff845)break;else _0x3ba3b3['push'](_0x3ba3b3['shift']());}catch(_0x20672e){_0x3ba3b3['push'](_0x3ba3b3['shift']());}}}(a195_0x1fb6,0xef63f));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':a195_0x92175e(0xe0),'command':a195_0x92175e(0xf5),'description':a195_0x92175e(0xf0),'risk':'read','defaultOutputFormat':a195_0x92175e(0xe6),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a195_0x92175e(0xf1),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'}],async 'validate'(_0x49ef3c){validateDatasetSelector(_0x49ef3c);},async 'dryRun'(_0x307c86){const _0x548936=a195_0x92175e,_0x119384=await loadDatasetDetailForPage(_0x307c86);return{'method':_0x548936(0xed),'url':_0x548936(0xea)+_0x119384['code']+_0x548936(0xf6)+encodeURIComponent(_0x307c86[_0x548936(0xf2)]),'description':serializeDryRunDescription({'dataset':{'id':_0x119384['id'],'code':_0x119384[_0x548936(0xe7)],'name':_0x119384[_0x548936(0xe1)]},'action':'query-data-list-status'})};},async 'execute'(_0x2954b1){const _0x233af9=a195_0x92175e,_0x2dceda=await loadDatasetDetailForPage(_0x2954b1),_0x261953=await loadDataListPageStatusForGenerate(_0x2954b1,_0x2dceda[_0x233af9(0xe7)]),_0x4bb99c=getUndeletedRelatedPages(_0x2dceda),_0x21e521=assessDataListPageState(_0x2dceda['code'],_0x261953,{'fallbackUndeletedPages':_0x4bb99c});return{'ok':!![],'data':{'datasetCode':_0x2dceda[_0x233af9(0xe7)],'precheckSource':_0x261953?.[_0x233af9(0xf3)]??_0x233af9(0xee),'status':_0x21e521[_0x233af9(0xf8)],'manualResolutionRequired':_0x21e521[_0x233af9(0xec)],'nextAction':_0x21e521[_0x233af9(0xe4)],'dataListPageStatus':_0x261953,'relatedPages':{'total':_0x2dceda[_0x233af9(0xe2)][_0x233af9(0xdf)],'undeletedCount':_0x4bb99c['length']}}};}};function a195_0x1fb6(){const _0xa6aecc=['18OlrofF','data-list-status','/standard-page-status?appCode=','10380097xleiNB','status','4536340XMbHBj','length','page','name','relatedPages','3798688IymrAH','nextAction','3340606rVfEJV','compress','code','2434740pwMEaO','1004447whEjNa','/smartapi/lovrabet/dataset/','3DrIERs','manualResolutionRequired','GET','related-pages-fallback','7333155DuPyUi','Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','alias','appCode','source'];a195_0x1fb6=function(){return _0xa6aecc;};return a195_0x1fb6();}
1
+ const a195_0x1f2fb8=a195_0x4ce0;function a195_0x4ce0(_0x333ce3,_0x5191c7){_0x333ce3=_0x333ce3-0x1bb;const _0x427fc8=a195_0x427f();let _0x4ce036=_0x427fc8[_0x333ce3];return _0x4ce036;}(function(_0x3aa30a,_0x4a1597){const _0x328f7a=a195_0x4ce0,_0x340ec1=_0x3aa30a();while(!![]){try{const _0x538a93=-parseInt(_0x328f7a(0x1bd))/0x1+parseInt(_0x328f7a(0x1c2))/0x2+-parseInt(_0x328f7a(0x1c5))/0x3+parseInt(_0x328f7a(0x1d1))/0x4+parseInt(_0x328f7a(0x1c6))/0x5+-parseInt(_0x328f7a(0x1bc))/0x6+-parseInt(_0x328f7a(0x1c0))/0x7;if(_0x538a93===_0x4a1597)break;else _0x340ec1['push'](_0x340ec1['shift']());}catch(_0xc6fb6e){_0x340ec1['push'](_0x340ec1['shift']());}}}(a195_0x427f,0xc183e));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessDataListPageState,getUndeletedRelatedPages,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';function a195_0x427f(){const _0x49cee5=['source','length','compress','nextAction','/standard-page-status?appCode=','code','read','2573468sOgMOd','status','manualResolutionRequired','1876344mDkTag','635667DoOZBE','string','relatedPages','4940866DVHSBu','query-data-list-status','2952154LYTNiI','alias','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','458037edWcTc','2400510GryWDA','page','data-list-status','GET'];a195_0x427f=function(){return _0x49cee5;};return a195_0x427f();}export const pageDataListStatus={'service':a195_0x1f2fb8(0x1c7),'command':a195_0x1f2fb8(0x1c8),'description':'Query\x20Data\x20List\x20Page\x20facts\x20for\x20a\x20dataset','risk':a195_0x1f2fb8(0x1d0),'defaultOutputFormat':a195_0x1f2fb8(0x1cc),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a195_0x1f2fb8(0x1c3),'type':a195_0x1f2fb8(0x1be),'description':a195_0x1f2fb8(0x1c4)}],async 'validate'(_0x242b0d){validateDatasetSelector(_0x242b0d);},async 'dryRun'(_0x4e3961){const _0x2b5ba3=a195_0x1f2fb8,_0x20eaf0=await loadDatasetDetailForPage(_0x4e3961);return{'method':_0x2b5ba3(0x1c9),'url':'/smartapi/lovrabet/dataset/'+_0x20eaf0[_0x2b5ba3(0x1cf)]+_0x2b5ba3(0x1ce)+encodeURIComponent(_0x4e3961['appCode']),'description':serializeDryRunDescription({'dataset':{'id':_0x20eaf0['id'],'code':_0x20eaf0[_0x2b5ba3(0x1cf)],'name':_0x20eaf0['name']},'action':_0x2b5ba3(0x1c1)})};},async 'execute'(_0x1d4e0a){const _0x1bdc37=a195_0x1f2fb8,_0x24a858=await loadDatasetDetailForPage(_0x1d4e0a),_0x16b961=await loadDataListPageStatusForGenerate(_0x1d4e0a,_0x24a858[_0x1bdc37(0x1cf)]),_0x17f220=getUndeletedRelatedPages(_0x24a858),_0x411bb5=assessDataListPageState(_0x24a858[_0x1bdc37(0x1cf)],_0x16b961,{'fallbackUndeletedPages':_0x17f220});return{'ok':!![],'data':{'datasetCode':_0x24a858[_0x1bdc37(0x1cf)],'precheckSource':_0x16b961?.[_0x1bdc37(0x1ca)]??'related-pages-fallback','status':_0x411bb5[_0x1bdc37(0x1d2)],'manualResolutionRequired':_0x411bb5[_0x1bdc37(0x1bb)],'nextAction':_0x411bb5[_0x1bdc37(0x1cd)],'dataListPageStatus':_0x16b961,'relatedPages':{'total':_0x24a858[_0x1bdc37(0x1bf)]['length'],'undeletedCount':_0x17f220[_0x1bdc37(0x1cb)]}}};}};
@@ -1 +1 @@
1
- const a196_0x4f79fc=a196_0x1a8c;(function(_0x25da12,_0x1af063){const _0x481acc=a196_0x1a8c,_0x2155c6=_0x25da12();while(!![]){try{const _0x4f2464=-parseInt(_0x481acc(0x18c))/0x1*(parseInt(_0x481acc(0x179))/0x2)+-parseInt(_0x481acc(0x186))/0x3*(-parseInt(_0x481acc(0x175))/0x4)+parseInt(_0x481acc(0x18f))/0x5*(parseInt(_0x481acc(0x170))/0x6)+parseInt(_0x481acc(0x188))/0x7*(parseInt(_0x481acc(0x177))/0x8)+parseInt(_0x481acc(0x17e))/0x9*(parseInt(_0x481acc(0x198))/0xa)+-parseInt(_0x481acc(0x169))/0xb+parseInt(_0x481acc(0x18e))/0xc*(-parseInt(_0x481acc(0x196))/0xd);if(_0x4f2464===_0x1af063)break;else _0x2155c6['push'](_0x2155c6['shift']());}catch(_0x357f28){_0x2155c6['push'](_0x2155c6['shift']());}}}(a196_0x4158,0x20683));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 a196_0x4158(){const _0xcc8f0e=['boolean','1571778qqppij','Submitted\x20a\x20generate\x20task','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','number','20biqMhT','allowGenerate','12280FdjrBt','clientOperationId','44662zeXSle','apply','string','nextAction','generate-start','18LomeXY','page-type','operationId','DATA_LIST','related-pages-fallback','status','currentStep','alias','88014FtHYgB','/generate-standard-pages/start','119HLQfzj','code','fieldCount','precheck','1LOAkjU','bool','516lVUJUC','5BhRqaj','page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','appCode','Reusing\x20an\x20existing\x20generate\x20task','dryRun','progressRate','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','64298SPcaFa','POST','132740YaHHsU','/smartapi/lovrabet/dataset/','reused','taskId','source','write','manualResolutionRequired','1029028MvSzUB','dataset','dataListPageStatus','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','page','message'];a196_0x4158=function(){return _0xcc8f0e;};return a196_0x4158();}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a196_0x4f79fc(0x16d),'command':'generate-start','description':a196_0x4f79fc(0x16c),'risk':a196_0x4f79fc(0x19d),'defaultOutputFormat':'compress','rejectedFlags':[{'name':a196_0x4f79fc(0x17f),'message':a196_0x4f79fc(0x190),'hint':'This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.'},{'name':'page-pattern','message':a196_0x4f79fc(0x195),'hint':'DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.'}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a196_0x4f79fc(0x185),'type':a196_0x4f79fc(0x17b),'description':a196_0x4f79fc(0x172)},{'name':a196_0x4f79fc(0x17a),'type':a196_0x4f79fc(0x16f),'description':a196_0x4f79fc(0x173)}],async 'validate'(_0x50cfe5){validateDatasetSelector(_0x50cfe5);},async 'dryRun'(_0x21ae3c){const _0x2ffc15=a196_0x4f79fc,_0x21d9fe=await prepare(_0x21ae3c);return{'method':_0x2ffc15(0x197),'url':_0x2ffc15(0x199)+_0x21d9fe[_0x2ffc15(0x16a)][_0x2ffc15(0x189)]+_0x2ffc15(0x187),'body':{'appCode':_0x21ae3c['appCode'],'clientOperationId':_0x21d9fe['clientOperationId']},'description':serializeDryRunDescription({'dataset':{'id':_0x21d9fe[_0x2ffc15(0x16a)]['id'],'code':_0x21d9fe[_0x2ffc15(0x16a)]['code'],'name':_0x21d9fe[_0x2ffc15(0x16a)]['name'],'fieldCount':_0x21d9fe[_0x2ffc15(0x16a)][_0x2ffc15(0x18a)]},'precheckSource':_0x21d9fe[_0x2ffc15(0x16b)]?.[_0x2ffc15(0x19c)]??_0x2ffc15(0x182),'action':_0x2ffc15(0x17d),'clientOperationId':_0x21d9fe[_0x2ffc15(0x178)],'plannedStatus':_0x21d9fe['precheck']['status'],'reason':_0x21d9fe[_0x2ffc15(0x18b)][_0x2ffc15(0x16e)]})};},async 'execute'(_0x21c380){const _0x2fdea8=a196_0x4f79fc;if(!_0x21c380[_0x2fdea8(0x18d)](_0x2fdea8(0x17a))){const _0x49b0b0=await pageGenerateStart[_0x2fdea8(0x193)](_0x21c380);return{'ok':!![],'message':'Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','data':_0x49b0b0};}const _0x1d7289=await prepare(_0x21c380);if(!_0x1d7289[_0x2fdea8(0x18b)][_0x2fdea8(0x176)])return{'ok':![],'message':_0x1d7289['precheck'][_0x2fdea8(0x16e)],'data':{'datasetCode':_0x1d7289['dataset'][_0x2fdea8(0x189)],'pageType':_0x2fdea8(0x181),'pagePattern':'CRUD_PAGE_SET','clientOperationId':_0x1d7289[_0x2fdea8(0x178)],'precheckSource':_0x1d7289[_0x2fdea8(0x16b)]?.['source']??_0x2fdea8(0x182),'status':_0x1d7289[_0x2fdea8(0x18b)][_0x2fdea8(0x183)],'manualResolutionRequired':_0x1d7289[_0x2fdea8(0x18b)][_0x2fdea8(0x19e)],'nextAction':_0x1d7289['precheck'][_0x2fdea8(0x17c)],'query':{'command':buildDataListPageStatusQueryCommand(_0x1d7289[_0x2fdea8(0x16a)]['code'],_0x21c380[_0x2fdea8(0x191)])},'dataListPageStatus':_0x1d7289[_0x2fdea8(0x16b)]}};const _0x466420=await startGenerateDataListPages(_0x21c380[_0x2fdea8(0x191)],_0x1d7289['dataset'][_0x2fdea8(0x189)],{'clientOperationId':_0x1d7289[_0x2fdea8(0x178)]}),_0x4040d0=_0x466420[_0x2fdea8(0x183)]==='SUCCESS'||_0x466420[_0x2fdea8(0x183)]==='PARTIAL_SUCCESS'?await loadDataListPageStatusForGenerate(_0x21c380,_0x1d7289['dataset'][_0x2fdea8(0x189)]):null,_0xfb15c2=assessGenerateOperationState(_0x1d7289[_0x2fdea8(0x16a)][_0x2fdea8(0x189)],_0x466420[_0x2fdea8(0x183)],_0x4040d0);return{'ok':!![],'message':_0x466420[_0x2fdea8(0x19a)]?_0x2fdea8(0x192):_0x2fdea8(0x171),'data':{'datasetCode':_0x1d7289['dataset'][_0x2fdea8(0x189)],'appCode':_0x21c380[_0x2fdea8(0x191)],'pageType':'DATA_LIST','pagePattern':'CRUD_PAGE_SET','taskId':_0x466420['taskId']??null,'operationId':_0x466420[_0x2fdea8(0x180)]??null,'clientOperationId':_0x1d7289['clientOperationId'],'jobStatus':_0x466420[_0x2fdea8(0x183)]??null,'progressRate':typeof _0x466420[_0x2fdea8(0x194)]===_0x2fdea8(0x174)?_0x466420[_0x2fdea8(0x194)]:null,'currentStep':_0x466420[_0x2fdea8(0x184)]??null,'reused':_0x466420[_0x2fdea8(0x19a)]===!![],'status':_0xfb15c2[_0x2fdea8(0x183)],'manualResolutionRequired':_0xfb15c2[_0x2fdea8(0x19e)],'nextAction':_0xfb15c2[_0x2fdea8(0x17c)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x1d7289[_0x2fdea8(0x16a)][_0x2fdea8(0x189)],{'appCode':_0x21c380['appCode'],'taskId':_0x466420[_0x2fdea8(0x19b)],'operationId':_0x466420[_0x2fdea8(0x180)],'clientOperationId':_0x1d7289['clientOperationId']})},'dataListPageStatus':_0x4040d0}};}};function a196_0x1a8c(_0x173780,_0x1338c0){_0x173780=_0x173780-0x169;const _0x41582c=a196_0x4158();let _0x1a8c95=_0x41582c[_0x173780];return _0x1a8c95;}async function prepare(_0x234531){const _0x29e15e=a196_0x4f79fc,_0x2de219=await loadDatasetDetailForPage(_0x234531),_0x336aa1=await loadDataListPageStatusForGenerate(_0x234531,_0x2de219[_0x29e15e(0x189)]),_0x33f0ca=getUndeletedRelatedPages(_0x2de219);return{'dataset':_0x2de219,'dataListPageStatus':_0x336aa1,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x2de219[_0x29e15e(0x189)],_0x336aa1,{'fallbackUndeletedPages':_0x33f0ca})};}
1
+ const a196_0x1d2506=a196_0x262e;(function(_0x3665b7,_0x22feae){const _0x8272ef=a196_0x262e,_0x3c368b=_0x3665b7();while(!![]){try{const _0x4d4791=-parseInt(_0x8272ef(0x1f7))/0x1*(parseInt(_0x8272ef(0x1e6))/0x2)+parseInt(_0x8272ef(0x1df))/0x3*(-parseInt(_0x8272ef(0x1e3))/0x4)+parseInt(_0x8272ef(0x1d0))/0x5*(-parseInt(_0x8272ef(0x1d2))/0x6)+-parseInt(_0x8272ef(0x1ff))/0x7+-parseInt(_0x8272ef(0x1d9))/0x8+parseInt(_0x8272ef(0x1da))/0x9+-parseInt(_0x8272ef(0x1e5))/0xa*(-parseInt(_0x8272ef(0x1f1))/0xb);if(_0x4d4791===_0x22feae)break;else _0x3c368b['push'](_0x3c368b['shift']());}catch(_0x38f97b){_0x3c368b['push'](_0x3c368b['shift']());}}}(a196_0x34ba,0xbcad5));function a196_0x262e(_0x738091,_0x2a7429){_0x738091=_0x738091-0x1cc;const _0x34babc=a196_0x34ba();let _0x262ed7=_0x34babc[_0x738091];return _0x262ed7;}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 a196_0x34ba(){const _0x4fd86b=['CRUD_PAGE_SET','9771904JvwZud','10410111IRxUYP','appCode','This\x20command\x20always\x20generates\x20a\x20DATA_LIST\x20page\x20from\x20a\x20dataset.','fieldCount','related-pages-fallback','222333KOIJxz','page-type','message','nextAction','36OGpOcd','status','6100370MrRLah','1484762KhRVqv','DATA_LIST','write','source','compress','manualResolutionRequired','precheck','/generate-standard-pages/start','currentStep','clientOperationId','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','66DgfQqv','allowGenerate','boolean','page\x20generate-start\x20does\x20not\x20accept\x20--page-pattern.','SUCCESS','reused','2DXKwBC','apply','dataListPageStatus','generate-start','PARTIAL_SUCCESS','alias','operationId','progressRate','3600695OmghcP','DATA_LIST\x20currently\x20has\x20one\x20fixed\x20pattern:\x20CRUD_PAGE_SET.','dataset','taskId','dryRun','page','5AivKvM','Reusing\x20an\x20existing\x20generate\x20task','938676nLzRwv','/smartapi/lovrabet/dataset/','code','Start\x20async\x20Data\x20List\x20Page\x20generation\x20from\x20a\x20dataset','number','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)'];a196_0x34ba=function(){return _0x4fd86b;};return a196_0x34ba();}import{startGenerateDataListPages}from'../../core/api-client.js';export const pageGenerateStart={'service':a196_0x1d2506(0x1cf),'command':a196_0x1d2506(0x1fa),'description':a196_0x1d2506(0x1d5),'risk':a196_0x1d2506(0x1e8),'defaultOutputFormat':a196_0x1d2506(0x1ea),'rejectedFlags':[{'name':a196_0x1d2506(0x1e0),'message':'page\x20generate-start\x20does\x20not\x20accept\x20--page-type.','hint':a196_0x1d2506(0x1dc)},{'name':'page-pattern','message':a196_0x1d2506(0x1f4),'hint':a196_0x1d2506(0x200)}],'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a196_0x1d2506(0x1fc),'type':'string','description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':'apply','type':a196_0x1d2506(0x1f3),'description':a196_0x1d2506(0x1f0)}],async 'validate'(_0x441d8d){validateDatasetSelector(_0x441d8d);},async 'dryRun'(_0x1ce7a1){const _0x4b3499=a196_0x1d2506,_0x158b32=await prepare(_0x1ce7a1);return{'method':'POST','url':_0x4b3499(0x1d3)+_0x158b32[_0x4b3499(0x1cc)][_0x4b3499(0x1d4)]+_0x4b3499(0x1ed),'body':{'appCode':_0x1ce7a1[_0x4b3499(0x1db)],'clientOperationId':_0x158b32[_0x4b3499(0x1ef)]},'description':serializeDryRunDescription({'dataset':{'id':_0x158b32[_0x4b3499(0x1cc)]['id'],'code':_0x158b32[_0x4b3499(0x1cc)]['code'],'name':_0x158b32[_0x4b3499(0x1cc)]['name'],'fieldCount':_0x158b32[_0x4b3499(0x1cc)][_0x4b3499(0x1dd)]},'precheckSource':_0x158b32[_0x4b3499(0x1f9)]?.[_0x4b3499(0x1e9)]??_0x4b3499(0x1de),'action':_0x4b3499(0x1fa),'clientOperationId':_0x158b32[_0x4b3499(0x1ef)],'plannedStatus':_0x158b32[_0x4b3499(0x1ec)][_0x4b3499(0x1e4)],'reason':_0x158b32[_0x4b3499(0x1ec)][_0x4b3499(0x1e1)]})};},async 'execute'(_0x440080){const _0x45fdaa=a196_0x1d2506;if(!_0x440080['bool'](_0x45fdaa(0x1f8))){const _0x49a93a=await pageGenerateStart[_0x45fdaa(0x1ce)](_0x440080);return{'ok':!![],'message':_0x45fdaa(0x1d7),'data':_0x49a93a};}const _0x222709=await prepare(_0x440080);if(!_0x222709[_0x45fdaa(0x1ec)][_0x45fdaa(0x1f2)])return{'ok':![],'message':_0x222709['precheck'][_0x45fdaa(0x1e1)],'data':{'datasetCode':_0x222709['dataset'][_0x45fdaa(0x1d4)],'pageType':'DATA_LIST','pagePattern':_0x45fdaa(0x1d8),'clientOperationId':_0x222709['clientOperationId'],'precheckSource':_0x222709['dataListPageStatus']?.[_0x45fdaa(0x1e9)]??'related-pages-fallback','status':_0x222709[_0x45fdaa(0x1ec)][_0x45fdaa(0x1e4)],'manualResolutionRequired':_0x222709[_0x45fdaa(0x1ec)][_0x45fdaa(0x1eb)],'nextAction':_0x222709['precheck']['nextAction'],'query':{'command':buildDataListPageStatusQueryCommand(_0x222709['dataset'][_0x45fdaa(0x1d4)],_0x440080[_0x45fdaa(0x1db)])},'dataListPageStatus':_0x222709[_0x45fdaa(0x1f9)]}};const _0x40c112=await startGenerateDataListPages(_0x440080[_0x45fdaa(0x1db)],_0x222709[_0x45fdaa(0x1cc)][_0x45fdaa(0x1d4)],{'clientOperationId':_0x222709['clientOperationId']}),_0x1568cd=_0x40c112[_0x45fdaa(0x1e4)]===_0x45fdaa(0x1f5)||_0x40c112[_0x45fdaa(0x1e4)]===_0x45fdaa(0x1fb)?await loadDataListPageStatusForGenerate(_0x440080,_0x222709[_0x45fdaa(0x1cc)][_0x45fdaa(0x1d4)]):null,_0x2b0dbd=assessGenerateOperationState(_0x222709['dataset'][_0x45fdaa(0x1d4)],_0x40c112[_0x45fdaa(0x1e4)],_0x1568cd);return{'ok':!![],'message':_0x40c112[_0x45fdaa(0x1f6)]?_0x45fdaa(0x1d1):'Submitted\x20a\x20generate\x20task','data':{'datasetCode':_0x222709[_0x45fdaa(0x1cc)]['code'],'appCode':_0x440080[_0x45fdaa(0x1db)],'pageType':_0x45fdaa(0x1e7),'pagePattern':'CRUD_PAGE_SET','taskId':_0x40c112['taskId']??null,'operationId':_0x40c112[_0x45fdaa(0x1fd)]??null,'clientOperationId':_0x222709[_0x45fdaa(0x1ef)],'jobStatus':_0x40c112[_0x45fdaa(0x1e4)]??null,'progressRate':typeof _0x40c112['progressRate']===_0x45fdaa(0x1d6)?_0x40c112[_0x45fdaa(0x1fe)]:null,'currentStep':_0x40c112[_0x45fdaa(0x1ee)]??null,'reused':_0x40c112['reused']===!![],'status':_0x2b0dbd[_0x45fdaa(0x1e4)],'manualResolutionRequired':_0x2b0dbd[_0x45fdaa(0x1eb)],'nextAction':_0x2b0dbd[_0x45fdaa(0x1e2)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x222709[_0x45fdaa(0x1cc)][_0x45fdaa(0x1d4)],{'appCode':_0x440080[_0x45fdaa(0x1db)],'taskId':_0x40c112[_0x45fdaa(0x1cd)],'operationId':_0x40c112[_0x45fdaa(0x1fd)],'clientOperationId':_0x222709[_0x45fdaa(0x1ef)]})},'dataListPageStatus':_0x1568cd}};}};async function prepare(_0x4ff64e){const _0x36c22a=a196_0x1d2506,_0x48b135=await loadDatasetDetailForPage(_0x4ff64e),_0x2e0548=await loadDataListPageStatusForGenerate(_0x4ff64e,_0x48b135[_0x36c22a(0x1d4)]),_0x479a4e=getUndeletedRelatedPages(_0x48b135);return{'dataset':_0x48b135,'dataListPageStatus':_0x2e0548,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessDataListPageState(_0x48b135[_0x36c22a(0x1d4)],_0x2e0548,{'fallbackUndeletedPages':_0x479a4e})};}
@@ -1 +1 @@
1
- function a197_0x4d93(_0x5e0537,_0x25acf1){_0x5e0537=_0x5e0537-0x162;const _0x5a464f=a197_0x5a46();let _0x4d93e4=_0x5a464f[_0x5e0537];return _0x4d93e4;}const a197_0x37169a=a197_0x4d93;(function(_0x46c394,_0xbd584a){const _0x6d43c6=a197_0x4d93,_0x4c4eef=_0x46c394();while(!![]){try{const _0x3f0e7a=parseInt(_0x6d43c6(0x17b))/0x1*(parseInt(_0x6d43c6(0x187))/0x2)+parseInt(_0x6d43c6(0x162))/0x3+-parseInt(_0x6d43c6(0x182))/0x4*(-parseInt(_0x6d43c6(0x178))/0x5)+-parseInt(_0x6d43c6(0x16f))/0x6*(-parseInt(_0x6d43c6(0x17d))/0x7)+-parseInt(_0x6d43c6(0x17f))/0x8*(parseInt(_0x6d43c6(0x173))/0x9)+parseInt(_0x6d43c6(0x18a))/0xa+parseInt(_0x6d43c6(0x18b))/0xb*(-parseInt(_0x6d43c6(0x184))/0xc);if(_0x3f0e7a===_0xbd584a)break;else _0x4c4eef['push'](_0x4c4eef['shift']());}catch(_0x5c5cdf){_0x4c4eef['push'](_0x4c4eef['shift']());}}}(a197_0x5a46,0xbdd5d));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';function a197_0x5a46(){const _0x1bb88b=['string','progressRate','errorMsg','appCode','338855INmlkB','code','client-operation-id','608519njaxlv','page','1099JEnkFr','manualResolutionRequired','16ZQyOuP','result','generate-status','52tCGBVA','clientOperationId','41196HMhZPJ','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','/generate-standard-pages/status?','4WQXUzE','alias','operation-id','4865920FjexdM','12023qqOEEn','str','SUCCESS','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','2823900ObqAGA','query-generate-operation-status','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','operationId','operation_failed','status','taskId','compress','read','nextAction','/smartapi/lovrabet/dataset/','currentStep','task-id','45906EBbOYJ','number','set','GET','887967ZivQuD'];a197_0x5a46=function(){return _0x1bb88b;};return a197_0x5a46();}import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a197_0x37169a(0x17c),'command':a197_0x37169a(0x181),'description':'Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','risk':a197_0x37169a(0x16a),'defaultOutputFormat':a197_0x37169a(0x169),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a197_0x37169a(0x188),'type':a197_0x37169a(0x174),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':a197_0x37169a(0x16e),'type':a197_0x37169a(0x174),'description':a197_0x37169a(0x18e)},{'name':a197_0x37169a(0x189),'type':'string','description':a197_0x37169a(0x185)},{'name':a197_0x37169a(0x17a),'type':'string','description':a197_0x37169a(0x164)}],async 'validate'(_0x49a13c){validateDatasetSelector(_0x49a13c),validateGenerateOperationSelector(_0x49a13c);},async 'dryRun'(_0x5a9002){const _0x4c60db=a197_0x37169a,_0x11a47b=await loadDatasetDetailForPage(_0x5a9002),_0xd99f54=_0x5a9002[_0x4c60db(0x18c)]('task-id'),_0xe5d394=_0x5a9002[_0x4c60db(0x18c)]('operation-id'),_0x40de06=_0x5a9002[_0x4c60db(0x18c)](_0x4c60db(0x17a)),_0x326a76=new URLSearchParams({'appCode':_0x5a9002[_0x4c60db(0x177)]});return _0xd99f54&&_0x326a76[_0x4c60db(0x171)](_0x4c60db(0x168),_0xd99f54),_0xe5d394&&_0x326a76['set'](_0x4c60db(0x165),_0xe5d394),_0x40de06&&_0x326a76['set'](_0x4c60db(0x183),_0x40de06),{'method':_0x4c60db(0x172),'url':_0x4c60db(0x16c)+_0x11a47b[_0x4c60db(0x179)]+_0x4c60db(0x186)+_0x326a76['toString'](),'description':serializeDryRunDescription({'dataset':{'id':_0x11a47b['id'],'code':_0x11a47b[_0x4c60db(0x179)],'name':_0x11a47b['name']},'action':_0x4c60db(0x163),'taskId':_0xd99f54||undefined,'operationId':_0xe5d394||undefined,'clientOperationId':_0x40de06||undefined})};},async 'execute'(_0xc89416){const _0x4ad7dc=a197_0x37169a,_0x6dc196=await loadDatasetDetailForPage(_0xc89416),_0x2e8afd=_0xc89416[_0x4ad7dc(0x18c)](_0x4ad7dc(0x16e)),_0x39eb7a=_0xc89416[_0x4ad7dc(0x18c)]('operation-id'),_0x5a59a3=_0xc89416[_0x4ad7dc(0x18c)](_0x4ad7dc(0x17a)),_0x52d42d=await getGenerateDataListPagesStatus(_0xc89416[_0x4ad7dc(0x177)],_0x6dc196[_0x4ad7dc(0x179)],{'taskId':_0x2e8afd||undefined,'operationId':_0x39eb7a||undefined,'clientOperationId':_0x5a59a3||undefined}),_0x143869=_0x52d42d[_0x4ad7dc(0x167)]===_0x4ad7dc(0x18d)||_0x52d42d['status']==='PARTIAL_SUCCESS',_0x3c7e89=_0x143869?await loadDataListPageStatusForGenerate(_0xc89416,_0x6dc196[_0x4ad7dc(0x179)]):null,_0x27addd=assessGenerateOperationState(_0x6dc196[_0x4ad7dc(0x179)],_0x52d42d[_0x4ad7dc(0x167)],_0x3c7e89),_0x14a617=_0x52d42d[_0x4ad7dc(0x168)]??_0x2e8afd??undefined,_0x3351fc=_0x52d42d[_0x4ad7dc(0x165)]??_0x39eb7a??undefined,_0x14f592=_0x52d42d['clientOperationId']??_0x5a59a3??undefined;return{'ok':!![],'message':_0x27addd[_0x4ad7dc(0x167)]===_0x4ad7dc(0x166)?_0x52d42d[_0x4ad7dc(0x176)]||_0x27addd['message']:_0x27addd['message'],'data':{'datasetCode':_0x6dc196[_0x4ad7dc(0x179)],'appCode':_0xc89416[_0x4ad7dc(0x177)],'taskId':_0x14a617,'operationId':_0x3351fc,'clientOperationId':_0x14f592,'jobStatus':_0x52d42d['status']??null,'progressRate':typeof _0x52d42d[_0x4ad7dc(0x175)]===_0x4ad7dc(0x170)?_0x52d42d[_0x4ad7dc(0x175)]:null,'currentStep':_0x52d42d[_0x4ad7dc(0x16d)]??null,'errorMsg':_0x52d42d[_0x4ad7dc(0x176)]??null,'status':_0x27addd[_0x4ad7dc(0x167)],'manualResolutionRequired':_0x27addd[_0x4ad7dc(0x17e)],'nextAction':_0x27addd[_0x4ad7dc(0x16b)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x6dc196[_0x4ad7dc(0x179)],{'appCode':_0xc89416[_0x4ad7dc(0x177)],'taskId':_0x14a617,'operationId':_0x3351fc,'clientOperationId':_0x14f592})},'dataListPageStatus':_0x3c7e89,'result':_0x52d42d[_0x4ad7dc(0x180)]??null}};}};
1
+ function a197_0x27e8(){const _0x5d1c62=['1wyiAGE','GET','49699ZjKIYO','taskId','20clzuln','1662876rKTYos','/smartapi/lovrabet/dataset/','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','5CZqfLA','str','Generic\x20task\x20id\x20returned\x20by\x20page\x20generate-start','2218484tNPyMI','status','progressRate','operationId','587100cSHUyX','appCode','manualResolutionRequired','string','14LYDhMQ','toString','query-generate-operation-status','762184UnDFNK','name','result','operation-id','SUCCESS','code','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','clientOperationId','1154131BRQPeD','task-id','page','alias','compress','client-operation-id','currentStep','59553aGWEYZ','Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost','set','message','PARTIAL_SUCCESS','number','660yNdxjv','584Moljyz','errorMsg'];a197_0x27e8=function(){return _0x5d1c62;};return a197_0x27e8();}const a197_0x51c373=a197_0x5385;(function(_0x13a7ba,_0xcc3ae){const _0x135a62=a197_0x5385,_0x2aba7a=_0x13a7ba();while(!![]){try{const _0x756634=parseInt(_0x135a62(0x134))/0x1*(parseInt(_0x135a62(0x11c))/0x2)+-parseInt(_0x135a62(0x139))/0x3+parseInt(_0x135a62(0x13f))/0x4*(-parseInt(_0x135a62(0x13c))/0x5)+parseInt(_0x135a62(0x143))/0x6*(parseInt(_0x135a62(0x147))/0x7)+-parseInt(_0x135a62(0x132))/0x8*(-parseInt(_0x135a62(0x12b))/0x9)+parseInt(_0x135a62(0x138))/0xa*(parseInt(_0x135a62(0x124))/0xb)+parseInt(_0x135a62(0x131))/0xc*(parseInt(_0x135a62(0x136))/0xd);if(_0x756634===_0xcc3ae)break;else _0x2aba7a['push'](_0x2aba7a['shift']());}catch(_0x119fe1){_0x2aba7a['push'](_0x2aba7a['shift']());}}}(a197_0x27e8,0x5a953));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';function a197_0x5385(_0x47bdc7,_0x2b9fb4){_0x47bdc7=_0x47bdc7-0x11c;const _0x27e8ea=a197_0x27e8();let _0x538512=_0x27e8ea[_0x47bdc7];return _0x538512;}import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadDataListPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateDataListPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a197_0x51c373(0x126),'command':'generate-status','description':'Query\x20Data\x20List\x20Page\x20generate\x20operation\x20status','risk':'read','defaultOutputFormat':a197_0x51c373(0x128),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a197_0x51c373(0x127),'type':a197_0x51c373(0x146),'description':a197_0x51c373(0x122)},{'name':a197_0x51c373(0x125),'type':a197_0x51c373(0x146),'description':a197_0x51c373(0x13e)},{'name':a197_0x51c373(0x11f),'type':a197_0x51c373(0x146),'description':a197_0x51c373(0x13b)},{'name':'client-operation-id','type':a197_0x51c373(0x146),'description':a197_0x51c373(0x12c)}],async 'validate'(_0x183276){validateDatasetSelector(_0x183276),validateGenerateOperationSelector(_0x183276);},async 'dryRun'(_0x38aeff){const _0x5b0fb3=a197_0x51c373,_0x2fe154=await loadDatasetDetailForPage(_0x38aeff),_0xf4db87=_0x38aeff[_0x5b0fb3(0x13d)](_0x5b0fb3(0x125)),_0x58aaef=_0x38aeff['str']('operation-id'),_0x16c244=_0x38aeff[_0x5b0fb3(0x13d)](_0x5b0fb3(0x129)),_0x79255d=new URLSearchParams({'appCode':_0x38aeff[_0x5b0fb3(0x144)]});return _0xf4db87&&_0x79255d[_0x5b0fb3(0x12d)](_0x5b0fb3(0x137),_0xf4db87),_0x58aaef&&_0x79255d[_0x5b0fb3(0x12d)](_0x5b0fb3(0x142),_0x58aaef),_0x16c244&&_0x79255d[_0x5b0fb3(0x12d)]('clientOperationId',_0x16c244),{'method':_0x5b0fb3(0x135),'url':_0x5b0fb3(0x13a)+_0x2fe154[_0x5b0fb3(0x121)]+'/generate-standard-pages/status?'+_0x79255d[_0x5b0fb3(0x148)](),'description':serializeDryRunDescription({'dataset':{'id':_0x2fe154['id'],'code':_0x2fe154[_0x5b0fb3(0x121)],'name':_0x2fe154[_0x5b0fb3(0x11d)]},'action':_0x5b0fb3(0x149),'taskId':_0xf4db87||undefined,'operationId':_0x58aaef||undefined,'clientOperationId':_0x16c244||undefined})};},async 'execute'(_0x1a29d7){const _0x1a1c3f=a197_0x51c373,_0x518df2=await loadDatasetDetailForPage(_0x1a29d7),_0x1910fe=_0x1a29d7['str']('task-id'),_0x37ea8e=_0x1a29d7['str'](_0x1a1c3f(0x11f)),_0x312d0b=_0x1a29d7[_0x1a1c3f(0x13d)]('client-operation-id'),_0x162a70=await getGenerateDataListPagesStatus(_0x1a29d7[_0x1a1c3f(0x144)],_0x518df2[_0x1a1c3f(0x121)],{'taskId':_0x1910fe||undefined,'operationId':_0x37ea8e||undefined,'clientOperationId':_0x312d0b||undefined}),_0x522b35=_0x162a70[_0x1a1c3f(0x140)]===_0x1a1c3f(0x120)||_0x162a70[_0x1a1c3f(0x140)]===_0x1a1c3f(0x12f),_0x491232=_0x522b35?await loadDataListPageStatusForGenerate(_0x1a29d7,_0x518df2[_0x1a1c3f(0x121)]):null,_0x15f1ab=assessGenerateOperationState(_0x518df2[_0x1a1c3f(0x121)],_0x162a70[_0x1a1c3f(0x140)],_0x491232),_0x423cb3=_0x162a70['taskId']??_0x1910fe??undefined,_0xaa7f24=_0x162a70[_0x1a1c3f(0x142)]??_0x37ea8e??undefined,_0x144a7d=_0x162a70[_0x1a1c3f(0x123)]??_0x312d0b??undefined;return{'ok':!![],'message':_0x15f1ab['status']==='operation_failed'?_0x162a70[_0x1a1c3f(0x133)]||_0x15f1ab[_0x1a1c3f(0x12e)]:_0x15f1ab[_0x1a1c3f(0x12e)],'data':{'datasetCode':_0x518df2['code'],'appCode':_0x1a29d7[_0x1a1c3f(0x144)],'taskId':_0x423cb3,'operationId':_0xaa7f24,'clientOperationId':_0x144a7d,'jobStatus':_0x162a70['status']??null,'progressRate':typeof _0x162a70[_0x1a1c3f(0x141)]===_0x1a1c3f(0x130)?_0x162a70[_0x1a1c3f(0x141)]:null,'currentStep':_0x162a70[_0x1a1c3f(0x12a)]??null,'errorMsg':_0x162a70[_0x1a1c3f(0x133)]??null,'status':_0x15f1ab[_0x1a1c3f(0x140)],'manualResolutionRequired':_0x15f1ab[_0x1a1c3f(0x145)],'nextAction':_0x15f1ab['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x518df2[_0x1a1c3f(0x121)],{'appCode':_0x1a29d7['appCode'],'taskId':_0x423cb3,'operationId':_0xaa7f24,'clientOperationId':_0x144a7d})},'dataListPageStatus':_0x491232,'result':_0x162a70[_0x1a1c3f(0x11e)]??null}};}};
@@ -1 +1 @@
1
- (function(_0x53609b,_0x2b61bf){const _0xc3f87f=a198_0x2e33,_0x3a2ee0=_0x53609b();while(!![]){try{const _0x55ca37=-parseInt(_0xc3f87f(0x129))/0x1*(parseInt(_0xc3f87f(0x128))/0x2)+parseInt(_0xc3f87f(0x131))/0x3*(parseInt(_0xc3f87f(0x12a))/0x4)+parseInt(_0xc3f87f(0x12c))/0x5*(-parseInt(_0xc3f87f(0x130))/0x6)+parseInt(_0xc3f87f(0x12f))/0x7+-parseInt(_0xc3f87f(0x132))/0x8+parseInt(_0xc3f87f(0x12d))/0x9+parseInt(_0xc3f87f(0x12b))/0xa*(parseInt(_0xc3f87f(0x12e))/0xb);if(_0x55ca37===_0x2b61bf)break;else _0x3a2ee0['push'](_0x3a2ee0['shift']());}catch(_0x34e1b4){_0x3a2ee0['push'](_0x3a2ee0['shift']());}}}(a198_0x3a03,0x28706));function a198_0x3a03(){const _0x5ac57f=['104867ZuCKbs','18UoyNLd','4593OyVFKA','1573232OcAhvh','1040iXPrLS','144KnwvQp','148POlvXW','344170TyJxiH','444485occlkN','114561gQcSIS','198Gjboib'];a198_0x3a03=function(){return _0x5ac57f;};return a198_0x3a03();}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';function a198_0x2e33(_0x415774,_0x5ee785){_0x415774=_0x415774-0x128;const _0x3a03e5=a198_0x3a03();let _0x2e3338=_0x3a03e5[_0x415774];return _0x2e3338;}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
+ (function(_0x465b55,_0x253a84){const _0x55e8cc=a198_0xa5ff,_0xfa423=_0x465b55();while(!![]){try{const _0x2a8e87=-parseInt(_0x55e8cc(0xad))/0x1+-parseInt(_0x55e8cc(0xa6))/0x2+-parseInt(_0x55e8cc(0xa8))/0x3+parseInt(_0x55e8cc(0xa7))/0x4*(-parseInt(_0x55e8cc(0xa4))/0x5)+-parseInt(_0x55e8cc(0xab))/0x6*(-parseInt(_0x55e8cc(0xae))/0x7)+parseInt(_0x55e8cc(0xaa))/0x8*(parseInt(_0x55e8cc(0xa5))/0x9)+parseInt(_0x55e8cc(0xac))/0xa*(parseInt(_0x55e8cc(0xa9))/0xb);if(_0x2a8e87===_0x253a84)break;else _0xfa423['push'](_0xfa423['shift']());}catch(_0x23560b){_0xfa423['push'](_0xfa423['shift']());}}}(a198_0x4a5b,0xa3817));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';function a198_0xa5ff(_0x133966,_0x2e94ad){_0x133966=_0x133966-0xa4;const _0x4a5b6f=a198_0x4a5b();let _0xa5ff6e=_0x4a5b6f[_0x133966];return _0xa5ff6e;}import{pagePull}from'../../commands/page/pull.js';import{pagePush}from'../../commands/page/push.js';import{pageRelationAudit}from'../../commands/page/relation-audit.js';import{pageRestore}from'../../commands/page/restore.js';import{pageCreate}from'../../commands/page/create.js';import{pageCustomDetail}from'../../commands/page/custom/detail.js';import{pageCustomList}from'../../commands/page/custom/list.js';function a198_0x4a5b(){const _0x56d554=['136iFayCg','767235MkhCvZ','55rWhoTu','1136moihHA','186924sLHSxN','3809090UGBSXR','1317647WhoxJj','91EUSLIG','10745WjmRzB','28737AXeirc','893552wPtlZp'];a198_0x4a5b=function(){return _0x56d554;};return a198_0x4a5b();}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 a199_0x36a567=a199_0x138d;(function(_0x549dab,_0x1573ee){const _0x5b9b5e=a199_0x138d,_0x38aa0e=_0x549dab();while(!![]){try{const _0x22ba77=parseInt(_0x5b9b5e(0x1d3))/0x1*(-parseInt(_0x5b9b5e(0x1bb))/0x2)+-parseInt(_0x5b9b5e(0x1df))/0x3*(parseInt(_0x5b9b5e(0x1de))/0x4)+parseInt(_0x5b9b5e(0x1a6))/0x5+parseInt(_0x5b9b5e(0x1a3))/0x6*(-parseInt(_0x5b9b5e(0x1ae))/0x7)+parseInt(_0x5b9b5e(0x1d7))/0x8*(parseInt(_0x5b9b5e(0x1ad))/0x9)+-parseInt(_0x5b9b5e(0x1c4))/0xa*(parseInt(_0x5b9b5e(0x1cd))/0xb)+-parseInt(_0x5b9b5e(0x1a0))/0xc*(-parseInt(_0x5b9b5e(0x1c7))/0xd);if(_0x22ba77===_0x1573ee)break;else _0x38aa0e['push'](_0x38aa0e['shift']());}catch(_0x1021b2){_0x38aa0e['push'](_0x38aa0e['shift']());}}}(a199_0x4711,0xc9dcc));import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';function a199_0x4711(){const _0xcc1cda=['\x20pulled,\x20','Pull\x20page\x20schema\x20to\x20local\x20files','boolean','Dataset\x20\x22','5212JyPTBS','3663CofXUm','conflict','pull','reason','force','version-tag','validation','17558664rZBwRB','datasetCode','relatedPages','751614dpzHuI','hash','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','5802400DMvZUn','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','number','versionTag','read','detail','would_pull','16839TYHODO','77MpDwHh','filter','pages','items','compress','length','str','toISOString','Use\x20--force\x20to\x20overwrite\x20local\x20changes.','\x20skipped','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','lockFilePath','all','255220eHyOZo','alias','name','pageVersion','batch','single','local\x20unsynced\x20changes','lastSync','GET','56790UngQcS','page','bool','26wUVhQQ','pageId','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','code','datasetIds','map','2123BkBEqg','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','deleted','status','Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist','string','4luKuDt','mode','type','appCode','5624MsnXIW','localPath','push'];a199_0x4711=function(){return _0xcc1cda;};return a199_0x4711();}function a199_0x138d(_0x1bfec9,_0x55750b){_0x1bfec9=_0x1bfec9-0x19b;const _0x471121=a199_0x4711();let _0x138dd3=_0x471121[_0x1bfec9];return _0x138dd3;}import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';import{CliErrors}from'../../errors.js';export const pagePull={'service':a199_0x36a567(0x1c5),'command':a199_0x36a567(0x19b),'description':a199_0x36a567(0x1db),'risk':a199_0x36a567(0x1aa),'defaultOutputFormat':a199_0x36a567(0x1b2),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a199_0x36a567(0x1a8),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':a199_0x36a567(0x1bc),'type':a199_0x36a567(0x1d2),'description':a199_0x36a567(0x1a5)},{'name':a199_0x36a567(0x19e),'type':a199_0x36a567(0x1d2),'description':a199_0x36a567(0x1c9)},{'name':a199_0x36a567(0x19d),'type':a199_0x36a567(0x1dc),'description':a199_0x36a567(0x1d1)}],async 'validate'(_0xfe67d0){validatePageTargetSelector(_0xfe67d0);},async 'dryRun'(_0xae41fc){const _0xd3bd46=a199_0x36a567,_0x2c0b9c=await buildPullPlan(_0xae41fc);return{'method':_0xd3bd46(0x1c3),'url':_0x2c0b9c['mode']===_0xd3bd46(0x1c0)?'/smartapi/lovrabet/detail?pageId='+(_0x2c0b9c[_0xd3bd46(0x1b1)][0x0]?.[_0xd3bd46(0x1ab)][_0xd3bd46(0x1c8)]??''):_0xd3bd46(0x1b8),'body':{'appCode':_0xae41fc[_0xd3bd46(0x1d6)],'mode':_0x2c0b9c[_0xd3bd46(0x1d4)],'targetDatasetCode':_0x2c0b9c[_0xd3bd46(0x1a1)]??null,'pages':_0x2c0b9c[_0xd3bd46(0x1b1)][_0xd3bd46(0x1cc)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x2c0b9c[_0xd3bd46(0x1d4)],'datasetCode':_0x2c0b9c['datasetCode']??null,'totalCandidates':_0x2c0b9c[_0xd3bd46(0x1b1)][_0xd3bd46(0x1b3)],'totalWouldPull':_0x2c0b9c[_0xd3bd46(0x1b1)][_0xd3bd46(0x1af)](_0x39993b=>_0x39993b[_0xd3bd46(0x1d0)]===_0xd3bd46(0x1ac))[_0xd3bd46(0x1b3)],'totalConflicts':_0x2c0b9c[_0xd3bd46(0x1b1)][_0xd3bd46(0x1af)](_0x4b8b07=>_0x4b8b07['status']==='conflict')[_0xd3bd46(0x1b3)]})};},async 'execute'(_0x5436cb){const _0x2c4de8=a199_0x36a567,_0x2fb5ed=loadPageProjectConfig(_0x5436cb[_0x2c4de8(0x1d6)]),_0xb39146=await readPageLockFile(_0x2fb5ed[_0x2c4de8(0x1b9)]),{lockData:_0x2b19a0,appLock:_0x3d1091}=ensurePageLockScope(_0xb39146??createEmptyPageLock(),_0x5436cb[_0x2c4de8(0x1d6)]),_0x6e0316=await buildPullPlan(_0x5436cb),_0x81b0ff=_0x5436cb[_0x2c4de8(0x1c6)](_0x2c4de8(0x19d));if(_0x6e0316['mode']===_0x2c4de8(0x1c0)&&_0x6e0316[_0x2c4de8(0x1b1)][0x0]?.[_0x2c4de8(0x1d0)]===_0x2c4de8(0x1e0)&&!_0x81b0ff)throw CliErrors[_0x2c4de8(0x19f)](_0x2c4de8(0x1ce)+_0x6e0316[_0x2c4de8(0x1b1)][0x0][_0x2c4de8(0x1d8)],_0x2c4de8(0x1b6));const _0x3590b6=[],_0x6482ac=[];for(const _0xd720ec of _0x6e0316[_0x2c4de8(0x1b1)]){if(_0xd720ec[_0x2c4de8(0x1d0)]===_0x2c4de8(0x1e0)&&!_0x81b0ff){_0x6482ac[_0x2c4de8(0x1d9)]({'pageId':_0xd720ec[_0x2c4de8(0x1ab)][_0x2c4de8(0x1c8)],'type':_0xd720ec[_0x2c4de8(0x1ab)]['type'],'title':_0xd720ec[_0x2c4de8(0x1ab)][_0x2c4de8(0x1bd)],'localPath':_0xd720ec[_0x2c4de8(0x1d8)],'reason':_0xd720ec[_0x2c4de8(0x19c)]??_0x2c4de8(0x1c1)});continue;}await ensureParentDirectory(_0xd720ec[_0x2c4de8(0x1d8)]);const _0x3f8d1b=serializePageSchemaForFile(_0xd720ec[_0x2c4de8(0x1ab)]['code']);await writeFile(_0xd720ec[_0x2c4de8(0x1d8)],_0x3f8d1b,'utf8'),_0x3d1091['pages'][String(_0xd720ec[_0x2c4de8(0x1ab)]['pageId'])]=buildLockEntry(_0xd720ec[_0x2c4de8(0x1ab)],_0x3f8d1b),_0x3590b6[_0x2c4de8(0x1d9)]({'pageId':_0xd720ec[_0x2c4de8(0x1ab)][_0x2c4de8(0x1c8)],'type':_0xd720ec[_0x2c4de8(0x1ab)][_0x2c4de8(0x1d5)],'title':_0xd720ec[_0x2c4de8(0x1ab)]['name'],'localPath':_0xd720ec[_0x2c4de8(0x1d8)]});}return _0x3d1091[_0x2c4de8(0x1c2)]=new Date()[_0x2c4de8(0x1b5)](),await writePageLockFile(_0x2fb5ed[_0x2c4de8(0x1b9)],_0x2b19a0),{'ok':!![],'message':'Pull\x20complete:\x20'+_0x3590b6[_0x2c4de8(0x1b3)]+_0x2c4de8(0x1da)+_0x6482ac[_0x2c4de8(0x1b3)]+_0x2c4de8(0x1b7),'data':{'appCode':_0x5436cb['appCode'],'pulledPages':_0x3590b6,'skippedPages':_0x6482ac,'totalPulled':_0x3590b6[_0x2c4de8(0x1b3)],'totalSkipped':_0x6482ac[_0x2c4de8(0x1b3)]}};}};async function buildPullPlan(_0x411fe4){const _0x5ba3f0=a199_0x36a567,_0xf854af=loadPageProjectConfig(_0x411fe4[_0x5ba3f0(0x1d6)]),_0xd24489=await readPageLockFile(_0xf854af[_0x5ba3f0(0x1b9)]),{appLock:_0x1b30a8}=ensurePageLockScope(_0xd24489??createEmptyPageLock(),_0x411fe4[_0x5ba3f0(0x1d6)]),_0x52a23b=getPageIdFlag(_0x411fe4);if(_0x52a23b!==undefined){const _0x1c6322=await loadPageDetailForPage(_0x411fe4,_0x52a23b);return{'mode':_0x5ba3f0(0x1c0),'items':[await inspectPullTarget(_0xf854af,_0x1b30a8[_0x5ba3f0(0x1b0)][String(_0x1c6322[_0x5ba3f0(0x1c8)])],_0x1c6322)]};}const _0x17abb0=await loadDatasetDetailForPage(_0x411fe4),_0x1a77a8=_0x17abb0[_0x5ba3f0(0x1a2)][_0x5ba3f0(0x1af)](_0xca3a33=>!_0xca3a33[_0x5ba3f0(0x1cf)]);if(_0x1a77a8[_0x5ba3f0(0x1b3)]===0x0)throw CliErrors['validation'](_0x5ba3f0(0x1dd)+_0x17abb0[_0x5ba3f0(0x1ca)]+_0x5ba3f0(0x1a7));const _0xf8ad47=await Promise[_0x5ba3f0(0x1ba)](_0x1a77a8[_0x5ba3f0(0x1cc)](_0x3b691f=>loadPageDetailForPage(_0x411fe4,_0x3b691f['id']))),_0x4bc156=selectVersionTagGroup(_0xf8ad47,_0x341a9d=>_0x341a9d[_0x5ba3f0(0x1a9)],_0x411fe4[_0x5ba3f0(0x1b4)]('version-tag'));return{'mode':_0x5ba3f0(0x1bf),'datasetCode':_0x17abb0['code'],'items':await Promise[_0x5ba3f0(0x1ba)](_0x4bc156['items'][_0x5ba3f0(0x1cc)](_0x4bfdde=>inspectPullTarget(_0xf854af,_0x1b30a8[_0x5ba3f0(0x1b0)][String(_0x4bfdde['pageId'])],_0x4bfdde)))};}async function inspectPullTarget(_0x2bddf0,_0x3c289a,_0x41452d){const _0x5a8b2f=a199_0x36a567,_0x6c5d67=resolvePageFilePath(_0x2bddf0,_0x41452d['pageId'],_0x41452d[_0x5a8b2f(0x1d5)]),_0x45f825=await fileExists(_0x6c5d67);if(!_0x45f825){const _0x3c374a=serializePageSchemaForFile(_0x41452d[_0x5a8b2f(0x1ca)]);return{'detail':_0x41452d,'localPath':_0x6c5d67,'localHash':computePageContentHash(_0x3c374a),'status':_0x5a8b2f(0x1ac)};}const _0x18be2e=await computePageFileHash(_0x6c5d67);if(!_0x3c289a||_0x18be2e!==_0x3c289a[_0x5a8b2f(0x1a4)])return{'detail':_0x41452d,'localPath':_0x6c5d67,'localHash':_0x18be2e,'status':_0x5a8b2f(0x1e0),'reason':_0x5a8b2f(0x1c1)};return{'detail':_0x41452d,'localPath':_0x6c5d67,'localHash':_0x18be2e,'status':_0x5a8b2f(0x1ac)};}function buildLockEntry(_0x4d54b0,_0x35ad5c){const _0x73176b=a199_0x36a567;return{'hash':computePageContentHash(_0x35ad5c),'pageId':_0x4d54b0[_0x73176b(0x1c8)],'pageVersion':_0x4d54b0[_0x73176b(0x1be)],'type':_0x4d54b0[_0x73176b(0x1d5)],'title':_0x4d54b0[_0x73176b(0x1bd)],'datasetIds':_0x4d54b0[_0x73176b(0x1cb)],'versionTag':_0x4d54b0[_0x73176b(0x1a9)]};}function toPreviewItem(_0x1acbe2){const _0x644380=a199_0x36a567;return{'pageId':_0x1acbe2[_0x644380(0x1ab)]['pageId'],'type':_0x1acbe2[_0x644380(0x1ab)][_0x644380(0x1d5)],'title':_0x1acbe2[_0x644380(0x1ab)][_0x644380(0x1bd)],'localPath':_0x1acbe2[_0x644380(0x1d8)],'status':_0x1acbe2[_0x644380(0x1d0)],..._0x1acbe2[_0x644380(0x19c)]?{'reason':_0x1acbe2[_0x644380(0x19c)]}:{}};}
1
+ const a199_0xc905c0=a199_0x44bd;(function(_0x3f2286,_0x5b6014){const _0x28125a=a199_0x44bd,_0xed3687=_0x3f2286();while(!![]){try{const _0x2db491=-parseInt(_0x28125a(0x20f))/0x1+-parseInt(_0x28125a(0x21e))/0x2+-parseInt(_0x28125a(0x21b))/0x3+parseInt(_0x28125a(0x1f6))/0x4*(parseInt(_0x28125a(0x1ea))/0x5)+-parseInt(_0x28125a(0x210))/0x6+-parseInt(_0x28125a(0x216))/0x7*(-parseInt(_0x28125a(0x20c))/0x8)+parseInt(_0x28125a(0x1ee))/0x9*(parseInt(_0x28125a(0x207))/0xa);if(_0x2db491===_0x5b6014)break;else _0xed3687['push'](_0xed3687['shift']());}catch(_0x4ca2d8){_0xed3687['push'](_0xed3687['shift']());}}}(a199_0x6150,0x88cb9));function a199_0x6150(){const _0x37655c=['relatedPages','pageId','278293JriHxl','2776872ocHZqC','name','localPath','pages','pull','\x20skipped','1540882jKUNbU','boolean','type','validation','/smartapi/lovrabet/detail?pageId=','2237721ENXXQY','datasetIds','length','985154veFHGe','Pull\x20complete:\x20','Local\x20page\x20file\x20has\x20unsynced\x20changes:\x20','mode','would_pull','string','GET','items','page','all','detail','279710NHffTo','appCode','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','hash','2310345uQLUaQ','/smartapi/lovrabet/detail\x20(per\x20selected\x20page)','reason','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','number','\x22\x20has\x20no\x20undeleted\x20related\x20pages.','compress','Dataset\x20\x22','40VBiDxk','str','batch','local\x20unsynced\x20changes','version-tag','status','conflict','force','lastSync','filter','utf8','lockFilePath','map','versionTag','pageVersion','Page\x20ID','read','60wuvLUI','Pull\x20page\x20schema\x20to\x20local\x20files','code','push','datasetCode','16cnjgIv'];a199_0x6150=function(){return _0x37655c;};return a199_0x6150();}import{writeFile}from'node:fs/promises';import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{getPageIdFlag,loadDatasetDetailForPage,loadPageDetailForPage,selectVersionTagGroup,serializeDryRunDescription,validatePageTargetSelector}from'../../commands/page/shared.js';import{computePageContentHash,computePageFileHash,serializePageSchemaForFile}from'../../core/page/hash.js';import{ensureParentDirectory,fileExists,loadPageProjectConfig,resolvePageFilePath}from'../../core/page/file-system.js';import{createEmptyPageLock,ensurePageLockScope,readPageLockFile,writePageLockFile}from'../../core/page/lock.js';function a199_0x44bd(_0x4734b0,_0x4565ea){_0x4734b0=_0x4734b0-0x1e4;const _0x615001=a199_0x6150();let _0x44bd01=_0x615001[_0x4734b0];return _0x44bd01;}import{CliErrors}from'../../errors.js';export const pagePull={'service':a199_0xc905c0(0x1e7),'command':a199_0xc905c0(0x214),'description':a199_0xc905c0(0x208),'risk':a199_0xc905c0(0x206),'defaultOutputFormat':a199_0xc905c0(0x1f4),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a199_0xc905c0(0x1f2),'description':a199_0xc905c0(0x205)},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a199_0xc905c0(0x1e4),'description':a199_0xc905c0(0x1f1)},{'name':a199_0xc905c0(0x1fa),'type':a199_0xc905c0(0x1e4),'description':a199_0xc905c0(0x1ec)},{'name':a199_0xc905c0(0x1fd),'type':a199_0xc905c0(0x217),'description':'Overwrite\x20local\x20files\x20even\x20when\x20unsynced\x20local\x20changes\x20exist'}],async 'validate'(_0x9cb91d){validatePageTargetSelector(_0x9cb91d);},async 'dryRun'(_0x4993e8){const _0x33bc4e=a199_0xc905c0,_0x4a0fa4=await buildPullPlan(_0x4993e8);return{'method':_0x33bc4e(0x1e5),'url':_0x4a0fa4[_0x33bc4e(0x221)]==='single'?_0x33bc4e(0x21a)+(_0x4a0fa4[_0x33bc4e(0x1e6)][0x0]?.['detail'][_0x33bc4e(0x20e)]??''):_0x33bc4e(0x1ef),'body':{'appCode':_0x4993e8[_0x33bc4e(0x1eb)],'mode':_0x4a0fa4[_0x33bc4e(0x221)],'targetDatasetCode':_0x4a0fa4[_0x33bc4e(0x20b)]??null,'pages':_0x4a0fa4[_0x33bc4e(0x1e6)][_0x33bc4e(0x202)](toPreviewItem)},'description':serializeDryRunDescription({'mode':_0x4a0fa4['mode'],'datasetCode':_0x4a0fa4[_0x33bc4e(0x20b)]??null,'totalCandidates':_0x4a0fa4[_0x33bc4e(0x1e6)][_0x33bc4e(0x21d)],'totalWouldPull':_0x4a0fa4[_0x33bc4e(0x1e6)]['filter'](_0xecf41f=>_0xecf41f['status']===_0x33bc4e(0x222))[_0x33bc4e(0x21d)],'totalConflicts':_0x4a0fa4['items'][_0x33bc4e(0x1ff)](_0x51e700=>_0x51e700['status']==='conflict')['length']})};},async 'execute'(_0x5ae4ee){const _0x3c3b7b=a199_0xc905c0,_0x3b3799=loadPageProjectConfig(_0x5ae4ee['appCode']),_0x528fcb=await readPageLockFile(_0x3b3799[_0x3c3b7b(0x201)]),{lockData:_0x5702e3,appLock:_0x46ebff}=ensurePageLockScope(_0x528fcb??createEmptyPageLock(),_0x5ae4ee[_0x3c3b7b(0x1eb)]),_0x17cf70=await buildPullPlan(_0x5ae4ee),_0x5c8abb=_0x5ae4ee['bool'](_0x3c3b7b(0x1fd));if(_0x17cf70[_0x3c3b7b(0x221)]==='single'&&_0x17cf70[_0x3c3b7b(0x1e6)][0x0]?.[_0x3c3b7b(0x1fb)]===_0x3c3b7b(0x1fc)&&!_0x5c8abb)throw CliErrors[_0x3c3b7b(0x219)](_0x3c3b7b(0x220)+_0x17cf70[_0x3c3b7b(0x1e6)][0x0][_0x3c3b7b(0x212)],'Use\x20--force\x20to\x20overwrite\x20local\x20changes.');const _0x297c9a=[],_0x242c8a=[];for(const _0xcbc9d0 of _0x17cf70['items']){if(_0xcbc9d0[_0x3c3b7b(0x1fb)]===_0x3c3b7b(0x1fc)&&!_0x5c8abb){_0x242c8a[_0x3c3b7b(0x20a)]({'pageId':_0xcbc9d0[_0x3c3b7b(0x1e9)][_0x3c3b7b(0x20e)],'type':_0xcbc9d0['detail']['type'],'title':_0xcbc9d0[_0x3c3b7b(0x1e9)][_0x3c3b7b(0x211)],'localPath':_0xcbc9d0[_0x3c3b7b(0x212)],'reason':_0xcbc9d0[_0x3c3b7b(0x1f0)]??_0x3c3b7b(0x1f9)});continue;}await ensureParentDirectory(_0xcbc9d0[_0x3c3b7b(0x212)]);const _0x3368e1=serializePageSchemaForFile(_0xcbc9d0['detail'][_0x3c3b7b(0x209)]);await writeFile(_0xcbc9d0[_0x3c3b7b(0x212)],_0x3368e1,_0x3c3b7b(0x200)),_0x46ebff[_0x3c3b7b(0x213)][String(_0xcbc9d0['detail'][_0x3c3b7b(0x20e)])]=buildLockEntry(_0xcbc9d0[_0x3c3b7b(0x1e9)],_0x3368e1),_0x297c9a[_0x3c3b7b(0x20a)]({'pageId':_0xcbc9d0['detail'][_0x3c3b7b(0x20e)],'type':_0xcbc9d0[_0x3c3b7b(0x1e9)][_0x3c3b7b(0x218)],'title':_0xcbc9d0['detail'][_0x3c3b7b(0x211)],'localPath':_0xcbc9d0[_0x3c3b7b(0x212)]});}return _0x46ebff[_0x3c3b7b(0x1fe)]=new Date()['toISOString'](),await writePageLockFile(_0x3b3799[_0x3c3b7b(0x201)],_0x5702e3),{'ok':!![],'message':_0x3c3b7b(0x21f)+_0x297c9a['length']+'\x20pulled,\x20'+_0x242c8a[_0x3c3b7b(0x21d)]+_0x3c3b7b(0x215),'data':{'appCode':_0x5ae4ee[_0x3c3b7b(0x1eb)],'pulledPages':_0x297c9a,'skippedPages':_0x242c8a,'totalPulled':_0x297c9a[_0x3c3b7b(0x21d)],'totalSkipped':_0x242c8a[_0x3c3b7b(0x21d)]}};}};async function buildPullPlan(_0x39670d){const _0x308e1d=a199_0xc905c0,_0x5eb7ec=loadPageProjectConfig(_0x39670d['appCode']),_0x27373c=await readPageLockFile(_0x5eb7ec['lockFilePath']),{appLock:_0x35c2c0}=ensurePageLockScope(_0x27373c??createEmptyPageLock(),_0x39670d[_0x308e1d(0x1eb)]),_0x272bb7=getPageIdFlag(_0x39670d);if(_0x272bb7!==undefined){const _0x463b09=await loadPageDetailForPage(_0x39670d,_0x272bb7);return{'mode':'single','items':[await inspectPullTarget(_0x5eb7ec,_0x35c2c0[_0x308e1d(0x213)][String(_0x463b09[_0x308e1d(0x20e)])],_0x463b09)]};}const _0x292c09=await loadDatasetDetailForPage(_0x39670d),_0x1ebaf9=_0x292c09[_0x308e1d(0x20d)][_0x308e1d(0x1ff)](_0xd9f739=>!_0xd9f739['deleted']);if(_0x1ebaf9[_0x308e1d(0x21d)]===0x0)throw CliErrors[_0x308e1d(0x219)](_0x308e1d(0x1f5)+_0x292c09[_0x308e1d(0x209)]+_0x308e1d(0x1f3));const _0x457ee0=await Promise[_0x308e1d(0x1e8)](_0x1ebaf9['map'](_0xc17af4=>loadPageDetailForPage(_0x39670d,_0xc17af4['id']))),_0x276c9a=selectVersionTagGroup(_0x457ee0,_0x286717=>_0x286717[_0x308e1d(0x203)],_0x39670d[_0x308e1d(0x1f7)](_0x308e1d(0x1fa)));return{'mode':_0x308e1d(0x1f8),'datasetCode':_0x292c09[_0x308e1d(0x209)],'items':await Promise[_0x308e1d(0x1e8)](_0x276c9a['items'][_0x308e1d(0x202)](_0x3e2426=>inspectPullTarget(_0x5eb7ec,_0x35c2c0['pages'][String(_0x3e2426[_0x308e1d(0x20e)])],_0x3e2426)))};}async function inspectPullTarget(_0xfe33b0,_0x32734b,_0x591df1){const _0x9920fe=a199_0xc905c0,_0xe211ca=resolvePageFilePath(_0xfe33b0,_0x591df1[_0x9920fe(0x20e)],_0x591df1[_0x9920fe(0x218)]),_0x1ac71a=await fileExists(_0xe211ca);if(!_0x1ac71a){const _0x2fcedf=serializePageSchemaForFile(_0x591df1[_0x9920fe(0x209)]);return{'detail':_0x591df1,'localPath':_0xe211ca,'localHash':computePageContentHash(_0x2fcedf),'status':_0x9920fe(0x222)};}const _0x205a46=await computePageFileHash(_0xe211ca);if(!_0x32734b||_0x205a46!==_0x32734b[_0x9920fe(0x1ed)])return{'detail':_0x591df1,'localPath':_0xe211ca,'localHash':_0x205a46,'status':_0x9920fe(0x1fc),'reason':'local\x20unsynced\x20changes'};return{'detail':_0x591df1,'localPath':_0xe211ca,'localHash':_0x205a46,'status':_0x9920fe(0x222)};}function buildLockEntry(_0x465099,_0x57c815){const _0x2fb178=a199_0xc905c0;return{'hash':computePageContentHash(_0x57c815),'pageId':_0x465099['pageId'],'pageVersion':_0x465099[_0x2fb178(0x204)],'type':_0x465099[_0x2fb178(0x218)],'title':_0x465099[_0x2fb178(0x211)],'datasetIds':_0x465099[_0x2fb178(0x21c)],'versionTag':_0x465099[_0x2fb178(0x203)]};}function toPreviewItem(_0x27fe69){const _0x1c43cb=a199_0xc905c0;return{'pageId':_0x27fe69[_0x1c43cb(0x1e9)][_0x1c43cb(0x20e)],'type':_0x27fe69[_0x1c43cb(0x1e9)]['type'],'title':_0x27fe69[_0x1c43cb(0x1e9)][_0x1c43cb(0x211)],'localPath':_0x27fe69[_0x1c43cb(0x212)],'status':_0x27fe69[_0x1c43cb(0x1fb)],..._0x27fe69['reason']?{'reason':_0x27fe69[_0x1c43cb(0x1f0)]}:{}};}
@@ -1 +1 @@
1
- const a200_0x3da4d4=a200_0x5ce4;(function(_0x1776bd,_0x4c020a){const _0x41f11b=a200_0x5ce4,_0x62bb2b=_0x1776bd();while(!![]){try{const _0x3e44c4=parseInt(_0x41f11b(0xdc))/0x1+-parseInt(_0x41f11b(0xd3))/0x2+-parseInt(_0x41f11b(0x123))/0x3+parseInt(_0x41f11b(0x101))/0x4*(parseInt(_0x41f11b(0xfd))/0x5)+parseInt(_0x41f11b(0x119))/0x6+parseInt(_0x41f11b(0x10d))/0x7*(-parseInt(_0x41f11b(0xdb))/0x8)+-parseInt(_0x41f11b(0xda))/0x9;if(_0x3e44c4===_0x4c020a)break;else _0x62bb2b['push'](_0x62bb2b['shift']());}catch(_0x5a48f1){_0x62bb2b['push'](_0x62bb2b['shift']());}}}(a200_0x716e,0xf147a));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 a200_0x716e(){const _0x539482=['name','datasetId','Local\x20file\x20not\x20found:\x20','525153SEEsEY','\x20no\x20longer\x20belongs\x20to\x20the\x20target\x20dataset','POST','hash','No\x20local\x20pages\x20found\x20for\x20dataset\x20\x22','\x20no\x20longer\x20belongs\x20to\x20the\x20selected\x20dataset.','pages','No\x20lock\x20record\x20found\x20for\x20page\x20','conflict','length','2445374XHhbGo','remoteDetail','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','Remote\x20page\x20','code','no\x20changes','status','4617495TIgnos','62576amGxIG','1225351wPxyCW','Push\x20succeeded','would_push','version-tag','appCode','title','write','nextLockEntry','parse','datasetCode','localHash','Page\x20update\x20failed:\x20','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','normalizedNodes','local\x20JSON\x20is\x20invalid','Page\x20','`\x20first','toISOString','remote\x20pageVersion\x20changed','str','items','Invalid\x20JSON\x20in\x20local\x20page\x20file:\x20','\x20page\x20pull\x20--id\x20','UNKNOWN','versionTag','push','No\x20changes\x20to\x20push','type','blocked','normalized','includes','lastSync','pageVersion','332770lLeKQy','single','utf8','values','112BWKupS','string','Push\x20local\x20page\x20schema\x20back\x20to\x20remote','Run\x20`','deleted','message','relatedPages','pageId','remote\x20schema\x20changed','datasetIds','lockFilePath','content','1162vASIhv','number','compress','localPath','\x20has\x20changed\x20since\x20last\x20pull.','localContent','mode','Push\x20succeeded;\x20server\x20normalized\x20the\x20schema','candidates','filter','all','reason','6651984VKEQUk','page','`\x20first.','batch','apiError','map','validation'];a200_0x716e=function(){return _0x539482;};return a200_0x716e();}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':a200_0x3da4d4(0x11a),'command':'push','description':a200_0x3da4d4(0x103),'risk':a200_0x3da4d4(0xe2),'defaultOutputFormat':a200_0x3da4d4(0x10f),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':a200_0x3da4d4(0x10e),'description':'Page\x20ID'},DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':a200_0x3da4d4(0x102),'description':a200_0x3da4d4(0xe8)},{'name':a200_0x3da4d4(0xdf),'type':a200_0x3da4d4(0x102),'description':a200_0x3da4d4(0xd5)}],async 'validate'(_0x489277){validatePageTargetSelector(_0x489277);},async 'dryRun'(_0x410919){const _0xe82d5a=a200_0x3da4d4,_0x3bce37=await buildPushPreview(_0x410919);return{'method':_0xe82d5a(0x125),'url':'/smartapi/lovrabet/update-page','body':{'appCode':_0x410919[_0xe82d5a(0xe0)],'mode':_0x3bce37['mode'],'datasetCode':_0x3bce37[_0xe82d5a(0xe5)]??null,'pages':_0x3bce37['items']},'description':serializeDryRunDescription({'mode':_0x3bce37[_0xe82d5a(0x113)],'datasetCode':_0x3bce37[_0xe82d5a(0xe5)]??null,'totalWouldPush':_0x3bce37[_0xe82d5a(0xf0)][_0xe82d5a(0x116)](_0x5cabad=>_0x5cabad[_0xe82d5a(0xd9)]===_0xe82d5a(0xde))[_0xe82d5a(0xd2)],'totalUnchanged':_0x3bce37['items']['filter'](_0x5a5e9e=>_0x5a5e9e[_0xe82d5a(0xd9)]==='unchanged')[_0xe82d5a(0xd2)],'totalConflicts':_0x3bce37[_0xe82d5a(0xf0)][_0xe82d5a(0x116)](_0x10e9f9=>_0x10e9f9[_0xe82d5a(0xd9)]===_0xe82d5a(0xd1)||_0x10e9f9[_0xe82d5a(0xd9)]==='blocked')[_0xe82d5a(0xd2)]})};},async 'execute'(_0x3a506d){const _0x37ff14=a200_0x3da4d4,_0x566a5a=loadPageProjectConfig(_0x3a506d[_0x37ff14(0xe0)]),_0x52c764=await readPageLockFile(_0x566a5a[_0x37ff14(0x10b)]),{lockData:_0x54fd54,appLock:_0x1671c2}=ensurePageLockScope(_0x52c764??createEmptyPageLock(),_0x3a506d[_0x37ff14(0xe0)]),_0x26dc26=getPageIdFlag(_0x3a506d);if(_0x26dc26!==undefined){const _0x45cbc6=await prepareSinglePush(_0x3a506d,_0x566a5a,_0x1671c2['pages'][String(_0x26dc26)],_0x26dc26),_0x429817=await pushPreparedPage(_0x3a506d,_0x45cbc6);return _0x1671c2[_0x37ff14(0x129)][String(_0x429817['pageId'])]=_0x429817[_0x37ff14(0xe3)],_0x1671c2[_0x37ff14(0xfb)]=new Date()[_0x37ff14(0xed)](),await writePageLockFile(_0x566a5a[_0x37ff14(0x10b)],_0x54fd54),{'ok':!![],'message':_0x429817['normalized']?_0x37ff14(0x114):_0x37ff14(0xdd),'data':{'appCode':_0x3a506d[_0x37ff14(0xe0)],'pushedPages':[{'pageId':_0x429817[_0x37ff14(0x108)],'type':_0x429817['type'],'title':_0x429817[_0x37ff14(0xe1)],'normalized':_0x429817[_0x37ff14(0xf9)]}],'skippedPages':[],'failedPages':[],'totalPushed':0x1,'totalSkipped':0x0,'totalFailed':0x0}};}const _0x1125ea=await buildBatchPushPlan(_0x3a506d,_0x1671c2[_0x37ff14(0x129)]),_0x1ea338=[],_0x393ca8=[],_0x2b0921=[];for(const _0x42fa5b of _0x1125ea[_0x37ff14(0x115)]){try{const _0x363d26=await prepareSinglePush(_0x3a506d,_0x566a5a,_0x1671c2[_0x37ff14(0x129)][String(_0x42fa5b['pageId'])],_0x42fa5b['pageId'],_0x1125ea[_0x37ff14(0x121)]);if(!_0x363d26['preparedChanges']&&_0x363d26[_0x37ff14(0xe6)]===_0x363d26['lockEntry'][_0x37ff14(0x126)]){_0x393ca8[_0x37ff14(0xf5)]({'pageId':_0x42fa5b[_0x37ff14(0x108)],'type':_0x42fa5b[_0x37ff14(0xf7)],'title':_0x42fa5b['title'],'reason':_0x37ff14(0xd8)});continue;}const _0x4e2a42=await pushPreparedPage(_0x3a506d,_0x363d26);_0x1671c2[_0x37ff14(0x129)][String(_0x4e2a42[_0x37ff14(0x108)])]=_0x4e2a42['nextLockEntry'],_0x1ea338[_0x37ff14(0xf5)]({'pageId':_0x4e2a42[_0x37ff14(0x108)],'type':_0x4e2a42[_0x37ff14(0xf7)],'title':_0x4e2a42['title'],'normalized':_0x4e2a42[_0x37ff14(0xf9)]});}catch(_0x256be0){_0x2b0921[_0x37ff14(0xf5)]({'pageId':_0x42fa5b[_0x37ff14(0x108)],'type':_0x42fa5b[_0x37ff14(0xf7)],'title':_0x42fa5b[_0x37ff14(0xe1)],'reason':_0x256be0 instanceof Error?_0x256be0[_0x37ff14(0x106)]:String(_0x256be0)});}}return _0x1671c2[_0x37ff14(0xfb)]=new Date()['toISOString'](),await writePageLockFile(_0x566a5a['lockFilePath'],_0x54fd54),{'ok':_0x2b0921[_0x37ff14(0xd2)]===0x0||_0x1ea338[_0x37ff14(0xd2)]>0x0||_0x393ca8['length']>0x0,'message':_0x2b0921[_0x37ff14(0xd2)]>0x0&&_0x1ea338[_0x37ff14(0xd2)]>0x0?'Some\x20pages\x20failed\x20to\x20push':_0x1ea338[_0x37ff14(0xd2)]>0x0?_0x37ff14(0xdd):_0x393ca8[_0x37ff14(0xd2)]>0x0&&_0x2b0921['length']===0x0?_0x37ff14(0xf6):_0x2b0921[0x0]?.[_0x37ff14(0x118)]||'Push\x20failed','data':{'appCode':_0x3a506d[_0x37ff14(0xe0)],'pushedPages':_0x1ea338,'skippedPages':_0x393ca8,'failedPages':_0x2b0921,'totalPushed':_0x1ea338['length'],'totalSkipped':_0x393ca8[_0x37ff14(0xd2)],'totalFailed':_0x2b0921[_0x37ff14(0xd2)]}};}};async function buildPushPreview(_0xc850e3){const _0x3f83b9=a200_0x3da4d4,_0x578e6d=loadPageProjectConfig(_0xc850e3[_0x3f83b9(0xe0)]),_0x3aab6d=await readPageLockFile(_0x578e6d[_0x3f83b9(0x10b)]),{appLock:_0x49dea0}=ensurePageLockScope(_0x3aab6d??createEmptyPageLock(),_0xc850e3[_0x3f83b9(0xe0)]),_0x336737=getPageIdFlag(_0xc850e3);if(_0x336737!==undefined)return{'mode':_0x3f83b9(0xfe),'items':[await inspectPushPage(_0xc850e3,_0x578e6d,_0x49dea0['pages'][String(_0x336737)],_0x336737)]};const _0x539df2=await buildBatchPushPlan(_0xc850e3,_0x49dea0['pages']);return{'mode':_0x3f83b9(0x11c),'datasetCode':_0x539df2[_0x3f83b9(0xe5)],'items':await Promise[_0x3f83b9(0x117)](_0x539df2['candidates']['map'](_0x3205ba=>inspectPushPage(_0xc850e3,_0x578e6d,_0x49dea0[_0x3f83b9(0x129)][String(_0x3205ba[_0x3f83b9(0x108)])],_0x3205ba[_0x3f83b9(0x108)],_0x539df2[_0x3f83b9(0x121)])))};}async function buildBatchPushPlan(_0x285422,_0x304c82){const _0x1312d7=a200_0x3da4d4,_0x27d310=await loadDatasetDetailForPage(_0x285422),_0x2d5f39=_0x27d310['id'],_0x41e6f9=new Set(_0x27d310[_0x1312d7(0x107)]['filter'](_0xbfdba2=>!_0xbfdba2[_0x1312d7(0x105)])[_0x1312d7(0x11e)](_0x1d7e6b=>_0x1d7e6b['id'])),_0x59a91d=Object[_0x1312d7(0x100)](_0x304c82)[_0x1312d7(0x116)](_0x1e0396=>_0x1e0396[_0x1312d7(0x10a)]['includes'](_0x2d5f39)&&_0x41e6f9['has'](_0x1e0396[_0x1312d7(0x108)]));if(_0x59a91d[_0x1312d7(0xd2)]===0x0)throw CliErrors['validation'](_0x1312d7(0x127)+_0x27d310[_0x1312d7(0xd7)]+'\x22.',_0x1312d7(0x104)+CLI_BIN_NAME+'\x20page\x20pull\x20--datasetcode\x20'+_0x27d310['code']+_0x1312d7(0x11b));const _0x2fede4=selectVersionTagGroup(_0x59a91d,_0x36ab05=>_0x36ab05[_0x1312d7(0xf4)]??null,_0x285422[_0x1312d7(0xef)](_0x1312d7(0xdf))),_0x5ec9d3=[];for(const _0x1c7860 of _0x2fede4[_0x1312d7(0xf0)]){_0x5ec9d3[_0x1312d7(0xf5)]({'pageId':_0x1c7860[_0x1312d7(0x108)],'type':_0x1c7860[_0x1312d7(0xf7)],'title':_0x1c7860[_0x1312d7(0xe1)]});}return{'datasetCode':_0x27d310[_0x1312d7(0xd7)],'datasetId':_0x2d5f39,'candidates':_0x5ec9d3};}function a200_0x5ce4(_0x383cfd,_0x3130ad){_0x383cfd=_0x383cfd-0xd1;const _0x716eca=a200_0x716e();let _0x5ce499=_0x716eca[_0x383cfd];return _0x5ce499;}async function inspectPushPage(_0x5f0c4c,_0x1be279,_0x55cee9,_0x281a13,_0x3577f){const _0x1d912c=a200_0x3da4d4;if(!_0x55cee9)return{'pageId':_0x281a13,'type':'UNKNOWN','title':'page-'+_0x281a13,'localPath':resolvePageFilePath(_0x1be279,_0x281a13,_0x1d912c(0xf3)),'status':'blocked','reason':_0x1d912c(0x104)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x281a13+_0x1d912c(0xec)};const _0xb8faf=resolvePageFilePath(_0x1be279,_0x281a13,_0x55cee9[_0x1d912c(0xf7)]);if(!await fileExists(_0xb8faf))return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xf8),'reason':_0x1d912c(0x122)+_0xb8faf};const _0x45034c=await readFile(_0xb8faf,_0x1d912c(0xff));try{JSON[_0x1d912c(0xe4)](_0x45034c);}catch{return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xf8),'reason':_0x1d912c(0xea)};}try{const _0x461d11=await loadPageDetailForPage(_0x5f0c4c,_0x281a13);if(_0x3577f!=null&&!_0x461d11[_0x1d912c(0x10a)][_0x1d912c(0xfa)](_0x3577f))return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9['title'],'localPath':_0xb8faf,'status':'conflict','reason':_0x1d912c(0xeb)+_0x281a13+_0x1d912c(0x124)};const _0x3e204d=_0x55cee9[_0x1d912c(0xfc)]!=null&&_0x461d11['pageVersion']!=null;if(_0x3e204d&&_0x55cee9[_0x1d912c(0xfc)]!==_0x461d11[_0x1d912c(0xfc)])return{'pageId':_0x281a13,'type':_0x55cee9['type'],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xd1),'reason':_0x1d912c(0xee)};if(!_0x3e204d&&computeSerializedSchemaHash(_0x461d11['code'])!==_0x55cee9[_0x1d912c(0x126)])return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xd1),'reason':_0x1d912c(0x109)};const _0x5079aa=await prepareLrSmartJsxForPush(_0x45034c,_0x461d11[_0x1d912c(0xd7)],transpileLrSmartJsx);if(_0x5079aa[_0x1d912c(0xe9)]===0x0&&computePageContentHash(_0x5079aa[_0x1d912c(0x10c)])===_0x55cee9[_0x1d912c(0x126)])return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':'unchanged','reason':_0x1d912c(0xd8)};}catch(_0x41d6bd){return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':_0x1d912c(0xf8),'reason':_0x41d6bd instanceof Error?_0x41d6bd[_0x1d912c(0x106)]:String(_0x41d6bd)};}return{'pageId':_0x281a13,'type':_0x55cee9[_0x1d912c(0xf7)],'title':_0x55cee9[_0x1d912c(0xe1)],'localPath':_0xb8faf,'status':'would_push'};}async function prepareSinglePush(_0x51d82d,_0x183076,_0x2aabf1,_0x588f0a,_0x4a3abd){const _0xa5e1da=a200_0x3da4d4;if(!_0x2aabf1)throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0x12a)+_0x588f0a+'.','Run\x20`'+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x588f0a+_0xa5e1da(0x11b));const _0x406296=resolvePageFilePath(_0x183076,_0x588f0a,_0x2aabf1[_0xa5e1da(0xf7)]);if(!await fileExists(_0x406296))throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0x122)+_0x406296,_0xa5e1da(0x104)+CLI_BIN_NAME+_0xa5e1da(0xf2)+_0x588f0a+_0xa5e1da(0x11b));const _0x1068eb=await readFile(_0x406296,_0xa5e1da(0xff));try{JSON[_0xa5e1da(0xe4)](_0x1068eb);}catch{throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0xf1)+_0x406296);}const _0x52c95e=await loadPageDetailForPage(_0x51d82d,_0x588f0a);if(_0x4a3abd!=null&&!_0x52c95e[_0xa5e1da(0x10a)][_0xa5e1da(0xfa)](_0x4a3abd))throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0xeb)+_0x588f0a+_0xa5e1da(0x128));const _0xe59d7e=_0x2aabf1['pageVersion']!=null&&_0x52c95e[_0xa5e1da(0xfc)]!=null;if(_0xe59d7e){if(_0x2aabf1[_0xa5e1da(0xfc)]!==_0x52c95e[_0xa5e1da(0xfc)])throw CliErrors[_0xa5e1da(0x11f)](_0xa5e1da(0xd6)+_0x588f0a+'\x20has\x20changed\x20since\x20last\x20pull.',_0xa5e1da(0x104)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x588f0a+_0xa5e1da(0x11b));}else{const _0x54e2b1=computeSerializedSchemaHash(_0x52c95e['code']);if(_0x54e2b1!==_0x2aabf1[_0xa5e1da(0x126)])throw CliErrors['validation'](_0xa5e1da(0xd6)+_0x588f0a+_0xa5e1da(0x111),_0xa5e1da(0x104)+CLI_BIN_NAME+_0xa5e1da(0xf2)+_0x588f0a+_0xa5e1da(0x11b));}const _0x30cca2=await prepareLrSmartJsxForPush(_0x1068eb,_0x52c95e[_0xa5e1da(0xd7)],transpileLrSmartJsx);return{'lockEntry':_0x2aabf1,'localPath':_0x406296,'localContent':_0x30cca2[_0xa5e1da(0x10c)],'localHash':computePageContentHash(_0x30cca2['content']),'preparedChanges':_0x30cca2[_0xa5e1da(0xe9)]>0x0,'remoteDetail':_0x52c95e};}async function pushPreparedPage(_0x22a7a1,_0x288f0f){const _0x1be572=a200_0x3da4d4,_0x5857bb=await updatePage(_0x22a7a1[_0x1be572(0xe0)],_0x288f0f[_0x1be572(0xd4)][_0x1be572(0x108)],_0x288f0f['localContent'],_0x288f0f[_0x1be572(0xd4)][_0x1be572(0x10a)]);if(!_0x5857bb)throw CliErrors[_0x1be572(0x11d)](_0x1be572(0xe7)+_0x288f0f[_0x1be572(0xd4)][_0x1be572(0x108)]);const _0x3be86e=await loadPageDetailForPage(_0x22a7a1,_0x288f0f['remoteDetail'][_0x1be572(0x108)]),_0x1fd4bf=serializePageSchemaForFile(_0x3be86e[_0x1be572(0xd7)]);return await writeFile(_0x288f0f[_0x1be572(0x110)],_0x1fd4bf,_0x1be572(0xff)),{'pageId':_0x3be86e[_0x1be572(0x108)],'type':_0x3be86e[_0x1be572(0xf7)],'title':_0x3be86e[_0x1be572(0x120)],'normalized':_0x1fd4bf!==serializePageSchemaForFile(_0x288f0f[_0x1be572(0x112)]),'nextLockEntry':{'hash':computePageContentHash(_0x1fd4bf),'pageId':_0x3be86e[_0x1be572(0x108)],'pageVersion':_0x3be86e['pageVersion'],'type':_0x3be86e[_0x1be572(0xf7)],'title':_0x3be86e[_0x1be572(0x120)],'datasetIds':_0x3be86e[_0x1be572(0x10a)],'versionTag':_0x3be86e['versionTag']}};}
1
+ const a200_0x127e01=a200_0x1baa;(function(_0x2d6194,_0x220c77){const _0x3fcb4a=a200_0x1baa,_0x134383=_0x2d6194();while(!![]){try{const _0x5cc06e=parseInt(_0x3fcb4a(0xa5))/0x1*(parseInt(_0x3fcb4a(0x8c))/0x2)+parseInt(_0x3fcb4a(0xa6))/0x3+-parseInt(_0x3fcb4a(0x99))/0x4+parseInt(_0x3fcb4a(0x6c))/0x5*(parseInt(_0x3fcb4a(0xaa))/0x6)+parseInt(_0x3fcb4a(0x79))/0x7*(-parseInt(_0x3fcb4a(0xad))/0x8)+parseInt(_0x3fcb4a(0xa0))/0x9+-parseInt(_0x3fcb4a(0xac))/0xa*(parseInt(_0x3fcb4a(0x7a))/0xb);if(_0x5cc06e===_0x220c77)break;else _0x134383['push'](_0x134383['shift']());}catch(_0x301f2f){_0x134383['push'](_0x134383['shift']());}}}(a200_0x220e,0x1c635));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';function a200_0x220e(){const _0x5ece5c=['Push\x20local\x20page\x20schema\x20back\x20to\x20remote','utf8','pageId','version-tag','alias','Page\x20group\x20version\x20tag\x20(batch\x20mode\x20only)','conflict','\x20no\x20longer\x20belongs\x20to\x20the\x20target\x20dataset','503096neJmxM','normalized','items','lastSync','No\x20local\x20pages\x20found\x20for\x20dataset\x20\x22','compress','parse','1821969VUvJxU','type','UNKNOWN','datasetId','POST','29gceWHT','657678DYpeHG','appCode','values','nextLockEntry','12RCHfcl','`\x20first','1328190OepLYZ','16RBFFgw','push','blocked','filter','localContent','includes','content','relatedPages','Run\x20`','string','remoteDetail','Page\x20','mode','\x20has\x20changed\x20since\x20last\x20pull.','Remote\x20page\x20','code','Push\x20succeeded;\x20server\x20normalized\x20the\x20schema','Page\x20ID','lockFilePath','489355elyuAo','hash','length','status','\x20page\x20pull\x20--id\x20','localPath','would_push','message','Push\x20succeeded','versionTag','No\x20changes\x20to\x20push','`\x20first.','pageVersion','420259WvhwuJ','33VfJNhf','No\x20lock\x20record\x20found\x20for\x20page\x20','lockEntry','datasetIds','single','local\x20JSON\x20is\x20invalid','remote\x20pageVersion\x20changed','apiError','normalizedNodes','Local\x20file\x20not\x20found:\x20','no\x20changes','deleted','validation','/smartapi/lovrabet/update-page','pages','datasetCode','title','unchanged','9874SkpAMQ','candidates','write','map','name'];a200_0x220e=function(){return _0x5ece5c;};return a200_0x220e();}function a200_0x1baa(_0x39cb1d,_0x386f61){_0x39cb1d=_0x39cb1d-0x6b;const _0x220e14=a200_0x220e();let _0x1baafd=_0x220e14[_0x39cb1d];return _0x1baafd;}import{prepareLrSmartJsxForPush}from'../../core/page/lr-smart-jsx.js';import{CliErrors}from'../../errors.js';export const pagePush={'service':'page','command':'push','description':a200_0x127e01(0x91),'risk':a200_0x127e01(0x8e),'defaultOutputFormat':a200_0x127e01(0x9e),'flags':[APPCODE_FLAG_OPTIONAL,{'name':'id','type':'number','description':a200_0x127e01(0xbe)},DATASETCODE_FLAG_OPTIONAL,{'name':a200_0x127e01(0x95),'type':a200_0x127e01(0xb6),'description':'Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)'},{'name':'version-tag','type':'string','description':a200_0x127e01(0x96)}],async 'validate'(_0x36f7e9){validatePageTargetSelector(_0x36f7e9);},async 'dryRun'(_0x28712e){const _0xd6972e=a200_0x127e01,_0x4d2886=await buildPushPreview(_0x28712e);return{'method':_0xd6972e(0xa4),'url':_0xd6972e(0x87),'body':{'appCode':_0x28712e[_0xd6972e(0xa7)],'mode':_0x4d2886[_0xd6972e(0xb9)],'datasetCode':_0x4d2886['datasetCode']??null,'pages':_0x4d2886['items']},'description':serializeDryRunDescription({'mode':_0x4d2886[_0xd6972e(0xb9)],'datasetCode':_0x4d2886[_0xd6972e(0x89)]??null,'totalWouldPush':_0x4d2886['items'][_0xd6972e(0xb0)](_0x19122e=>_0x19122e['status']===_0xd6972e(0x72))[_0xd6972e(0x6e)],'totalUnchanged':_0x4d2886[_0xd6972e(0x9b)][_0xd6972e(0xb0)](_0x5d1157=>_0x5d1157['status']===_0xd6972e(0x8b))['length'],'totalConflicts':_0x4d2886['items'][_0xd6972e(0xb0)](_0x283819=>_0x283819[_0xd6972e(0x6f)]===_0xd6972e(0x97)||_0x283819[_0xd6972e(0x6f)]===_0xd6972e(0xaf))[_0xd6972e(0x6e)]})};},async 'execute'(_0x592125){const _0x1abe5f=a200_0x127e01,_0x4c65d7=loadPageProjectConfig(_0x592125[_0x1abe5f(0xa7)]),_0x3e875a=await readPageLockFile(_0x4c65d7[_0x1abe5f(0x6b)]),{lockData:_0x32cedc,appLock:_0x329cbd}=ensurePageLockScope(_0x3e875a??createEmptyPageLock(),_0x592125[_0x1abe5f(0xa7)]),_0x4feea4=getPageIdFlag(_0x592125);if(_0x4feea4!==undefined){const _0x35a4a3=await prepareSinglePush(_0x592125,_0x4c65d7,_0x329cbd[_0x1abe5f(0x88)][String(_0x4feea4)],_0x4feea4),_0x537910=await pushPreparedPage(_0x592125,_0x35a4a3);return _0x329cbd[_0x1abe5f(0x88)][String(_0x537910[_0x1abe5f(0x93)])]=_0x537910[_0x1abe5f(0xa9)],_0x329cbd[_0x1abe5f(0x9c)]=new Date()['toISOString'](),await writePageLockFile(_0x4c65d7[_0x1abe5f(0x6b)],_0x32cedc),{'ok':!![],'message':_0x537910[_0x1abe5f(0x9a)]?_0x1abe5f(0xbd):_0x1abe5f(0x74),'data':{'appCode':_0x592125[_0x1abe5f(0xa7)],'pushedPages':[{'pageId':_0x537910[_0x1abe5f(0x93)],'type':_0x537910[_0x1abe5f(0xa1)],'title':_0x537910[_0x1abe5f(0x8a)],'normalized':_0x537910[_0x1abe5f(0x9a)]}],'skippedPages':[],'failedPages':[],'totalPushed':0x1,'totalSkipped':0x0,'totalFailed':0x0}};}const _0x54a443=await buildBatchPushPlan(_0x592125,_0x329cbd['pages']),_0x2f9e7a=[],_0x1e03a4=[],_0x271a3f=[];for(const _0xac655b of _0x54a443[_0x1abe5f(0x8d)]){try{const _0x19b44e=await prepareSinglePush(_0x592125,_0x4c65d7,_0x329cbd['pages'][String(_0xac655b['pageId'])],_0xac655b['pageId'],_0x54a443['datasetId']);if(!_0x19b44e['preparedChanges']&&_0x19b44e['localHash']===_0x19b44e[_0x1abe5f(0x7c)]['hash']){_0x1e03a4['push']({'pageId':_0xac655b['pageId'],'type':_0xac655b[_0x1abe5f(0xa1)],'title':_0xac655b[_0x1abe5f(0x8a)],'reason':_0x1abe5f(0x84)});continue;}const _0x3688c5=await pushPreparedPage(_0x592125,_0x19b44e);_0x329cbd['pages'][String(_0x3688c5[_0x1abe5f(0x93)])]=_0x3688c5[_0x1abe5f(0xa9)],_0x2f9e7a[_0x1abe5f(0xae)]({'pageId':_0x3688c5[_0x1abe5f(0x93)],'type':_0x3688c5[_0x1abe5f(0xa1)],'title':_0x3688c5[_0x1abe5f(0x8a)],'normalized':_0x3688c5[_0x1abe5f(0x9a)]});}catch(_0x2cb2cb){_0x271a3f[_0x1abe5f(0xae)]({'pageId':_0xac655b[_0x1abe5f(0x93)],'type':_0xac655b[_0x1abe5f(0xa1)],'title':_0xac655b['title'],'reason':_0x2cb2cb instanceof Error?_0x2cb2cb[_0x1abe5f(0x73)]:String(_0x2cb2cb)});}}return _0x329cbd[_0x1abe5f(0x9c)]=new Date()['toISOString'](),await writePageLockFile(_0x4c65d7[_0x1abe5f(0x6b)],_0x32cedc),{'ok':_0x271a3f['length']===0x0||_0x2f9e7a[_0x1abe5f(0x6e)]>0x0||_0x1e03a4['length']>0x0,'message':_0x271a3f['length']>0x0&&_0x2f9e7a[_0x1abe5f(0x6e)]>0x0?'Some\x20pages\x20failed\x20to\x20push':_0x2f9e7a[_0x1abe5f(0x6e)]>0x0?_0x1abe5f(0x74):_0x1e03a4[_0x1abe5f(0x6e)]>0x0&&_0x271a3f[_0x1abe5f(0x6e)]===0x0?_0x1abe5f(0x76):_0x271a3f[0x0]?.['reason']||'Push\x20failed','data':{'appCode':_0x592125[_0x1abe5f(0xa7)],'pushedPages':_0x2f9e7a,'skippedPages':_0x1e03a4,'failedPages':_0x271a3f,'totalPushed':_0x2f9e7a[_0x1abe5f(0x6e)],'totalSkipped':_0x1e03a4[_0x1abe5f(0x6e)],'totalFailed':_0x271a3f[_0x1abe5f(0x6e)]}};}};async function buildPushPreview(_0x54e022){const _0x159ed1=a200_0x127e01,_0x2b44d0=loadPageProjectConfig(_0x54e022[_0x159ed1(0xa7)]),_0x2449d5=await readPageLockFile(_0x2b44d0['lockFilePath']),{appLock:_0x505c37}=ensurePageLockScope(_0x2449d5??createEmptyPageLock(),_0x54e022[_0x159ed1(0xa7)]),_0x4b3af3=getPageIdFlag(_0x54e022);if(_0x4b3af3!==undefined)return{'mode':_0x159ed1(0x7e),'items':[await inspectPushPage(_0x54e022,_0x2b44d0,_0x505c37[_0x159ed1(0x88)][String(_0x4b3af3)],_0x4b3af3)]};const _0x2a76ce=await buildBatchPushPlan(_0x54e022,_0x505c37[_0x159ed1(0x88)]);return{'mode':'batch','datasetCode':_0x2a76ce[_0x159ed1(0x89)],'items':await Promise['all'](_0x2a76ce[_0x159ed1(0x8d)]['map'](_0x3d649c=>inspectPushPage(_0x54e022,_0x2b44d0,_0x505c37['pages'][String(_0x3d649c[_0x159ed1(0x93)])],_0x3d649c[_0x159ed1(0x93)],_0x2a76ce[_0x159ed1(0xa3)])))};}async function buildBatchPushPlan(_0x38b1b7,_0x5864e5){const _0x4fe405=a200_0x127e01,_0x3bdc78=await loadDatasetDetailForPage(_0x38b1b7),_0x2d5bb1=_0x3bdc78['id'],_0x3ab030=new Set(_0x3bdc78[_0x4fe405(0xb4)][_0x4fe405(0xb0)](_0x39bec1=>!_0x39bec1[_0x4fe405(0x85)])[_0x4fe405(0x8f)](_0x139169=>_0x139169['id'])),_0xebc3d5=Object[_0x4fe405(0xa8)](_0x5864e5)[_0x4fe405(0xb0)](_0x2aaf85=>_0x2aaf85[_0x4fe405(0x7d)][_0x4fe405(0xb2)](_0x2d5bb1)&&_0x3ab030['has'](_0x2aaf85['pageId']));if(_0xebc3d5[_0x4fe405(0x6e)]===0x0)throw CliErrors['validation'](_0x4fe405(0x9d)+_0x3bdc78[_0x4fe405(0xbc)]+'\x22.',_0x4fe405(0xb5)+CLI_BIN_NAME+'\x20page\x20pull\x20--datasetcode\x20'+_0x3bdc78[_0x4fe405(0xbc)]+_0x4fe405(0x77));const _0x512d55=selectVersionTagGroup(_0xebc3d5,_0x5ec7aa=>_0x5ec7aa[_0x4fe405(0x75)]??null,_0x38b1b7['str'](_0x4fe405(0x94))),_0x138b2d=[];for(const _0x3addd3 of _0x512d55[_0x4fe405(0x9b)]){_0x138b2d[_0x4fe405(0xae)]({'pageId':_0x3addd3[_0x4fe405(0x93)],'type':_0x3addd3[_0x4fe405(0xa1)],'title':_0x3addd3[_0x4fe405(0x8a)]});}return{'datasetCode':_0x3bdc78[_0x4fe405(0xbc)],'datasetId':_0x2d5bb1,'candidates':_0x138b2d};}async function inspectPushPage(_0x1d64ef,_0x205268,_0x309468,_0x499d99,_0x545768){const _0x29a87f=a200_0x127e01;if(!_0x309468)return{'pageId':_0x499d99,'type':_0x29a87f(0xa2),'title':'page-'+_0x499d99,'localPath':resolvePageFilePath(_0x205268,_0x499d99,_0x29a87f(0xa2)),'status':_0x29a87f(0xaf),'reason':_0x29a87f(0xb5)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x499d99+_0x29a87f(0xab)};const _0x1e2652=resolvePageFilePath(_0x205268,_0x499d99,_0x309468['type']);if(!await fileExists(_0x1e2652))return{'pageId':_0x499d99,'type':_0x309468[_0x29a87f(0xa1)],'title':_0x309468[_0x29a87f(0x8a)],'localPath':_0x1e2652,'status':_0x29a87f(0xaf),'reason':'Local\x20file\x20not\x20found:\x20'+_0x1e2652};const _0x5bf769=await readFile(_0x1e2652,_0x29a87f(0x92));try{JSON[_0x29a87f(0x9f)](_0x5bf769);}catch{return{'pageId':_0x499d99,'type':_0x309468[_0x29a87f(0xa1)],'title':_0x309468[_0x29a87f(0x8a)],'localPath':_0x1e2652,'status':_0x29a87f(0xaf),'reason':_0x29a87f(0x7f)};}try{const _0x1899ff=await loadPageDetailForPage(_0x1d64ef,_0x499d99);if(_0x545768!=null&&!_0x1899ff['datasetIds']['includes'](_0x545768))return{'pageId':_0x499d99,'type':_0x309468[_0x29a87f(0xa1)],'title':_0x309468[_0x29a87f(0x8a)],'localPath':_0x1e2652,'status':_0x29a87f(0x97),'reason':_0x29a87f(0xb8)+_0x499d99+_0x29a87f(0x98)};const _0x3cd1b1=_0x309468[_0x29a87f(0x78)]!=null&&_0x1899ff['pageVersion']!=null;if(_0x3cd1b1&&_0x309468[_0x29a87f(0x78)]!==_0x1899ff[_0x29a87f(0x78)])return{'pageId':_0x499d99,'type':_0x309468[_0x29a87f(0xa1)],'title':_0x309468[_0x29a87f(0x8a)],'localPath':_0x1e2652,'status':_0x29a87f(0x97),'reason':_0x29a87f(0x80)};if(!_0x3cd1b1&&computeSerializedSchemaHash(_0x1899ff['code'])!==_0x309468['hash'])return{'pageId':_0x499d99,'type':_0x309468[_0x29a87f(0xa1)],'title':_0x309468[_0x29a87f(0x8a)],'localPath':_0x1e2652,'status':_0x29a87f(0x97),'reason':'remote\x20schema\x20changed'};const _0x5523e4=await prepareLrSmartJsxForPush(_0x5bf769,_0x1899ff[_0x29a87f(0xbc)],transpileLrSmartJsx);if(_0x5523e4[_0x29a87f(0x82)]===0x0&&computePageContentHash(_0x5523e4[_0x29a87f(0xb3)])===_0x309468[_0x29a87f(0x6d)])return{'pageId':_0x499d99,'type':_0x309468[_0x29a87f(0xa1)],'title':_0x309468[_0x29a87f(0x8a)],'localPath':_0x1e2652,'status':_0x29a87f(0x8b),'reason':_0x29a87f(0x84)};}catch(_0x4fb501){return{'pageId':_0x499d99,'type':_0x309468[_0x29a87f(0xa1)],'title':_0x309468[_0x29a87f(0x8a)],'localPath':_0x1e2652,'status':_0x29a87f(0xaf),'reason':_0x4fb501 instanceof Error?_0x4fb501[_0x29a87f(0x73)]:String(_0x4fb501)};}return{'pageId':_0x499d99,'type':_0x309468['type'],'title':_0x309468['title'],'localPath':_0x1e2652,'status':_0x29a87f(0x72)};}async function prepareSinglePush(_0x5f046f,_0x2e37c0,_0x46401a,_0x4f6946,_0x13cbcd){const _0x33a073=a200_0x127e01;if(!_0x46401a)throw CliErrors['validation'](_0x33a073(0x7b)+_0x4f6946+'.',_0x33a073(0xb5)+CLI_BIN_NAME+_0x33a073(0x70)+_0x4f6946+'`\x20first.');const _0xa74016=resolvePageFilePath(_0x2e37c0,_0x4f6946,_0x46401a[_0x33a073(0xa1)]);if(!await fileExists(_0xa74016))throw CliErrors[_0x33a073(0x86)](_0x33a073(0x83)+_0xa74016,'Run\x20`'+CLI_BIN_NAME+_0x33a073(0x70)+_0x4f6946+_0x33a073(0x77));const _0x591546=await readFile(_0xa74016,_0x33a073(0x92));try{JSON['parse'](_0x591546);}catch{throw CliErrors[_0x33a073(0x86)]('Invalid\x20JSON\x20in\x20local\x20page\x20file:\x20'+_0xa74016);}const _0x5da82b=await loadPageDetailForPage(_0x5f046f,_0x4f6946);if(_0x13cbcd!=null&&!_0x5da82b[_0x33a073(0x7d)]['includes'](_0x13cbcd))throw CliErrors['validation'](_0x33a073(0xb8)+_0x4f6946+'\x20no\x20longer\x20belongs\x20to\x20the\x20selected\x20dataset.');const _0x28a5fb=_0x46401a[_0x33a073(0x78)]!=null&&_0x5da82b[_0x33a073(0x78)]!=null;if(_0x28a5fb){if(_0x46401a[_0x33a073(0x78)]!==_0x5da82b[_0x33a073(0x78)])throw CliErrors['validation'](_0x33a073(0xbb)+_0x4f6946+'\x20has\x20changed\x20since\x20last\x20pull.',_0x33a073(0xb5)+CLI_BIN_NAME+_0x33a073(0x70)+_0x4f6946+_0x33a073(0x77));}else{const _0x6ab350=computeSerializedSchemaHash(_0x5da82b[_0x33a073(0xbc)]);if(_0x6ab350!==_0x46401a[_0x33a073(0x6d)])throw CliErrors[_0x33a073(0x86)](_0x33a073(0xbb)+_0x4f6946+_0x33a073(0xba),_0x33a073(0xb5)+CLI_BIN_NAME+'\x20page\x20pull\x20--id\x20'+_0x4f6946+_0x33a073(0x77));}const _0x3d4f83=await prepareLrSmartJsxForPush(_0x591546,_0x5da82b[_0x33a073(0xbc)],transpileLrSmartJsx);return{'lockEntry':_0x46401a,'localPath':_0xa74016,'localContent':_0x3d4f83[_0x33a073(0xb3)],'localHash':computePageContentHash(_0x3d4f83[_0x33a073(0xb3)]),'preparedChanges':_0x3d4f83['normalizedNodes']>0x0,'remoteDetail':_0x5da82b};}async function pushPreparedPage(_0x590226,_0x91120b){const _0x356e9c=a200_0x127e01,_0x5ef221=await updatePage(_0x590226[_0x356e9c(0xa7)],_0x91120b[_0x356e9c(0xb7)][_0x356e9c(0x93)],_0x91120b[_0x356e9c(0xb1)],_0x91120b['remoteDetail']['datasetIds']);if(!_0x5ef221)throw CliErrors[_0x356e9c(0x81)]('Page\x20update\x20failed:\x20'+_0x91120b[_0x356e9c(0xb7)][_0x356e9c(0x93)]);const _0x5f2793=await loadPageDetailForPage(_0x590226,_0x91120b[_0x356e9c(0xb7)][_0x356e9c(0x93)]),_0x3698cc=serializePageSchemaForFile(_0x5f2793[_0x356e9c(0xbc)]);return await writeFile(_0x91120b[_0x356e9c(0x71)],_0x3698cc,_0x356e9c(0x92)),{'pageId':_0x5f2793[_0x356e9c(0x93)],'type':_0x5f2793[_0x356e9c(0xa1)],'title':_0x5f2793[_0x356e9c(0x90)],'normalized':_0x3698cc!==serializePageSchemaForFile(_0x91120b['localContent']),'nextLockEntry':{'hash':computePageContentHash(_0x3698cc),'pageId':_0x5f2793[_0x356e9c(0x93)],'pageVersion':_0x5f2793['pageVersion'],'type':_0x5f2793[_0x356e9c(0xa1)],'title':_0x5f2793[_0x356e9c(0x90)],'datasetIds':_0x5f2793[_0x356e9c(0x7d)],'versionTag':_0x5f2793[_0x356e9c(0x75)]}};}