primitive-admin 1.0.61 → 1.0.63

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 (320) hide show
  1. package/README.md +125 -69
  2. package/assets/skill/skills/primitive-platform/SKILL.md +336 -37
  3. package/dist/bin/primitive.js +25 -14
  4. package/dist/bin/primitive.js.map +1 -1
  5. package/dist/src/commands/analytics.js +36 -16
  6. package/dist/src/commands/analytics.js.map +1 -1
  7. package/dist/src/commands/apps.js +52 -188
  8. package/dist/src/commands/apps.js.map +1 -1
  9. package/dist/src/commands/blob-buckets.js +13 -153
  10. package/dist/src/commands/blob-buckets.js.map +1 -1
  11. package/dist/src/commands/collection-type-configs.js +14 -100
  12. package/dist/src/commands/collection-type-configs.js.map +1 -1
  13. package/dist/src/commands/collections.js +47 -8
  14. package/dist/src/commands/collections.js.map +1 -1
  15. package/dist/src/commands/config.d.ts +46 -0
  16. package/dist/src/commands/config.js +479 -0
  17. package/dist/src/commands/config.js.map +1 -0
  18. package/dist/src/commands/connections.js +12 -7
  19. package/dist/src/commands/connections.js.map +1 -1
  20. package/dist/src/commands/cron-triggers.js +84 -176
  21. package/dist/src/commands/cron-triggers.js.map +1 -1
  22. package/dist/src/commands/database-type-configs.d.ts +2 -0
  23. package/dist/src/commands/database-type-configs.js +171 -0
  24. package/dist/src/commands/database-type-configs.js.map +1 -0
  25. package/dist/src/commands/database-types.js +4 -4
  26. package/dist/src/commands/database-types.js.map +1 -1
  27. package/dist/src/commands/databases.d.ts +63 -0
  28. package/dist/src/commands/databases.js +649 -87
  29. package/dist/src/commands/databases.js.map +1 -1
  30. package/dist/src/commands/documents.js +869 -12
  31. package/dist/src/commands/documents.js.map +1 -1
  32. package/dist/src/commands/email-templates.js +21 -128
  33. package/dist/src/commands/email-templates.js.map +1 -1
  34. package/dist/src/commands/env.d.ts +12 -1
  35. package/dist/src/commands/env.js +115 -26
  36. package/dist/src/commands/env.js.map +1 -1
  37. package/dist/src/commands/feature-flags.d.ts +14 -0
  38. package/dist/src/commands/feature-flags.js +116 -0
  39. package/dist/src/commands/feature-flags.js.map +1 -0
  40. package/dist/src/commands/group-type-configs.js +14 -109
  41. package/dist/src/commands/group-type-configs.js.map +1 -1
  42. package/dist/src/commands/init.d.ts +24 -1
  43. package/dist/src/commands/init.js +1194 -279
  44. package/dist/src/commands/init.js.map +1 -1
  45. package/dist/src/commands/integrations.js +166 -435
  46. package/dist/src/commands/integrations.js.map +1 -1
  47. package/dist/src/commands/metadata-category-configs.d.ts +12 -0
  48. package/dist/src/commands/metadata-category-configs.js +112 -0
  49. package/dist/src/commands/metadata-category-configs.js.map +1 -0
  50. package/dist/src/commands/metadata.js +33 -141
  51. package/dist/src/commands/metadata.js.map +1 -1
  52. package/dist/src/commands/prompts.js +206 -563
  53. package/dist/src/commands/prompts.js.map +1 -1
  54. package/dist/src/commands/rule-sets.d.ts +1 -1
  55. package/dist/src/commands/rule-sets.js +16 -132
  56. package/dist/src/commands/rule-sets.js.map +1 -1
  57. package/dist/src/commands/scripts.d.ts +10 -0
  58. package/dist/src/commands/scripts.js +203 -241
  59. package/dist/src/commands/scripts.js.map +1 -1
  60. package/dist/src/commands/sessions.js +17 -5
  61. package/dist/src/commands/sessions.js.map +1 -1
  62. package/dist/src/commands/sync-app-settings.d.ts +113 -70
  63. package/dist/src/commands/sync-app-settings.js +193 -242
  64. package/dist/src/commands/sync-app-settings.js.map +1 -1
  65. package/dist/src/commands/sync.d.ts +1904 -51
  66. package/dist/src/commands/sync.js +9468 -1790
  67. package/dist/src/commands/sync.js.map +1 -1
  68. package/dist/src/commands/tokens.js +8 -2
  69. package/dist/src/commands/tokens.js.map +1 -1
  70. package/dist/src/commands/users.js +92 -1
  71. package/dist/src/commands/users.js.map +1 -1
  72. package/dist/src/commands/vars.js +44 -58
  73. package/dist/src/commands/vars.js.map +1 -1
  74. package/dist/src/commands/webhooks.js +318 -156
  75. package/dist/src/commands/webhooks.js.map +1 -1
  76. package/dist/src/commands/workflows.d.ts +49 -12
  77. package/dist/src/commands/workflows.js +652 -1086
  78. package/dist/src/commands/workflows.js.map +1 -1
  79. package/dist/src/lib/access-rule-display.d.ts +21 -0
  80. package/dist/src/lib/access-rule-display.js +34 -0
  81. package/dist/src/lib/access-rule-display.js.map +1 -0
  82. package/dist/src/lib/api-client.d.ts +541 -61
  83. package/dist/src/lib/api-client.js +559 -102
  84. package/dist/src/lib/api-client.js.map +1 -1
  85. package/dist/src/lib/app-settings-descriptor.d.ts +180 -25
  86. package/dist/src/lib/app-settings-descriptor.js +403 -82
  87. package/dist/src/lib/app-settings-descriptor.js.map +1 -1
  88. package/dist/src/lib/canonical-json.d.ts +12 -0
  89. package/dist/src/lib/canonical-json.js +35 -0
  90. package/dist/src/lib/canonical-json.js.map +1 -0
  91. package/dist/src/lib/cli-manifest.d.ts +8 -0
  92. package/dist/src/lib/cli-manifest.js +1 -0
  93. package/dist/src/lib/cli-manifest.js.map +1 -1
  94. package/dist/src/lib/codegen-shared/generatedFiles.d.ts +6 -2
  95. package/dist/src/lib/codegen-shared/generatedFiles.js +9 -2
  96. package/dist/src/lib/codegen-shared/generatedFiles.js.map +1 -1
  97. package/dist/src/lib/codegen-shared/resolveCodegenSourceDir.d.ts +6 -6
  98. package/dist/src/lib/codegen-shared/resolveCodegenSourceDir.js +8 -8
  99. package/dist/src/lib/codegen-shared/resolveCodegenSourceDir.js.map +1 -1
  100. package/dist/src/lib/config-object-descriptor.d.ts +127 -0
  101. package/dist/src/lib/config-object-descriptor.js +658 -0
  102. package/dist/src/lib/config-object-descriptor.js.map +1 -0
  103. package/dist/src/lib/config-payload.d.ts +85 -0
  104. package/dist/src/lib/config-payload.js +116 -0
  105. package/dist/src/lib/config-payload.js.map +1 -0
  106. package/dist/src/lib/config-surface.d.ts +130 -0
  107. package/dist/src/lib/config-surface.js +300 -0
  108. package/dist/src/lib/config-surface.js.map +1 -0
  109. package/dist/src/lib/credentials-store.d.ts +10 -0
  110. package/dist/src/lib/credentials-store.js +23 -0
  111. package/dist/src/lib/credentials-store.js.map +1 -1
  112. package/dist/src/lib/data-input.d.ts +23 -0
  113. package/dist/src/lib/data-input.js +50 -0
  114. package/dist/src/lib/data-input.js.map +1 -0
  115. package/dist/src/lib/db-codegen/dbTemplates.js +1 -1
  116. package/dist/src/lib/db-codegen/dbTemplates.js.map +1 -1
  117. package/dist/src/lib/db-codegen/dbTypeIR.d.ts +1 -1
  118. package/dist/src/lib/env-resolver-core.d.ts +187 -0
  119. package/dist/src/lib/env-resolver-core.js +325 -0
  120. package/dist/src/lib/env-resolver-core.js.map +1 -0
  121. package/dist/src/lib/env-resolver.d.ts +28 -6
  122. package/dist/src/lib/env-resolver.js +44 -32
  123. package/dist/src/lib/env-resolver.js.map +1 -1
  124. package/dist/src/lib/generated-allowlist.js +12 -0
  125. package/dist/src/lib/generated-allowlist.js.map +1 -1
  126. package/dist/src/lib/generated-config-surfaces.d.ts +682 -0
  127. package/dist/src/lib/generated-config-surfaces.js +4058 -0
  128. package/dist/src/lib/generated-config-surfaces.js.map +1 -0
  129. package/dist/src/lib/generated-template-lint.d.ts +212 -0
  130. package/dist/src/lib/generated-template-lint.js +624 -0
  131. package/dist/src/lib/generated-template-lint.js.map +1 -0
  132. package/dist/src/lib/init-adopt.d.ts +16 -0
  133. package/dist/src/lib/init-adopt.js +34 -0
  134. package/dist/src/lib/init-adopt.js.map +1 -0
  135. package/dist/src/lib/init-assets.d.ts +39 -0
  136. package/dist/src/lib/init-assets.js +97 -0
  137. package/dist/src/lib/init-assets.js.map +1 -0
  138. package/dist/src/lib/init-client-platforms.d.ts +14 -0
  139. package/dist/src/lib/init-client-platforms.js +71 -0
  140. package/dist/src/lib/init-client-platforms.js.map +1 -0
  141. package/dist/src/lib/init-config.d.ts +44 -5
  142. package/dist/src/lib/init-config.js +80 -7
  143. package/dist/src/lib/init-config.js.map +1 -1
  144. package/dist/src/lib/init-email-redirect-uris.d.ts +37 -0
  145. package/dist/src/lib/init-email-redirect-uris.js +46 -0
  146. package/dist/src/lib/init-email-redirect-uris.js.map +1 -0
  147. package/dist/src/lib/init-ios-links.d.ts +90 -0
  148. package/dist/src/lib/init-ios-links.js +218 -0
  149. package/dist/src/lib/init-ios-links.js.map +1 -0
  150. package/dist/src/lib/init-plan.d.ts +80 -0
  151. package/dist/src/lib/init-plan.js +95 -0
  152. package/dist/src/lib/init-plan.js.map +1 -0
  153. package/dist/src/lib/init-production-env.d.ts +48 -0
  154. package/dist/src/lib/init-production-env.js +59 -0
  155. package/dist/src/lib/init-production-env.js.map +1 -0
  156. package/dist/src/lib/init-schema.d.ts +74 -0
  157. package/dist/src/lib/init-schema.js +358 -0
  158. package/dist/src/lib/init-schema.js.map +1 -0
  159. package/dist/src/lib/init-xcode.d.ts +33 -0
  160. package/dist/src/lib/init-xcode.js +114 -0
  161. package/dist/src/lib/init-xcode.js.map +1 -0
  162. package/dist/src/lib/integration-request-config.d.ts +30 -0
  163. package/dist/src/lib/integration-request-config.js +145 -0
  164. package/dist/src/lib/integration-request-config.js.map +1 -0
  165. package/dist/src/lib/integration-selector.d.ts +42 -0
  166. package/dist/src/lib/integration-selector.js +46 -0
  167. package/dist/src/lib/integration-selector.js.map +1 -0
  168. package/dist/src/lib/local-state.d.ts +55 -0
  169. package/dist/src/lib/local-state.js +167 -0
  170. package/dist/src/lib/local-state.js.map +1 -0
  171. package/dist/src/lib/local-test-cases.d.ts +63 -0
  172. package/dist/src/lib/local-test-cases.js +135 -0
  173. package/dist/src/lib/local-test-cases.js.map +1 -0
  174. package/dist/src/lib/log-inspection.d.ts +568 -0
  175. package/dist/src/lib/log-inspection.js +639 -0
  176. package/dist/src/lib/log-inspection.js.map +1 -0
  177. package/dist/src/lib/migration-nag.d.ts +2 -2
  178. package/dist/src/lib/migration-nag.js +3 -3
  179. package/dist/src/lib/object-status-filter.d.ts +22 -0
  180. package/dist/src/lib/object-status-filter.js +45 -0
  181. package/dist/src/lib/object-status-filter.js.map +1 -0
  182. package/dist/src/lib/output.d.ts +24 -1
  183. package/dist/src/lib/output.js +42 -1
  184. package/dist/src/lib/output.js.map +1 -1
  185. package/dist/src/lib/package-manager.d.ts +140 -0
  186. package/dist/src/lib/package-manager.js +305 -0
  187. package/dist/src/lib/package-manager.js.map +1 -0
  188. package/dist/src/lib/paginate.d.ts +50 -0
  189. package/dist/src/lib/paginate.js +53 -0
  190. package/dist/src/lib/paginate.js.map +1 -1
  191. package/dist/src/lib/platform-owned.d.ts +29 -3
  192. package/dist/src/lib/platform-owned.js +42 -3
  193. package/dist/src/lib/platform-owned.js.map +1 -1
  194. package/dist/src/lib/project-config.d.ts +8 -0
  195. package/dist/src/lib/project-config.js +30 -5
  196. package/dist/src/lib/project-config.js.map +1 -1
  197. package/dist/src/lib/query-operators.d.ts +1 -1
  198. package/dist/src/lib/query-operators.js +1 -1
  199. package/dist/src/lib/record-filter.d.ts +18 -0
  200. package/dist/src/lib/record-filter.js +55 -0
  201. package/dist/src/lib/record-filter.js.map +1 -0
  202. package/dist/src/lib/resolve-init-dev-port.d.ts +56 -0
  203. package/dist/src/lib/resolve-init-dev-port.js +55 -0
  204. package/dist/src/lib/resolve-init-dev-port.js.map +1 -0
  205. package/dist/src/lib/resolve-init-server.d.ts +64 -0
  206. package/dist/src/lib/resolve-init-server.js +77 -0
  207. package/dist/src/lib/resolve-init-server.js.map +1 -0
  208. package/dist/src/lib/resolve-platform.d.ts +43 -14
  209. package/dist/src/lib/resolve-platform.js +74 -12
  210. package/dist/src/lib/resolve-platform.js.map +1 -1
  211. package/dist/src/lib/run-status.d.ts +19 -0
  212. package/dist/src/lib/run-status.generated.d.ts +39 -0
  213. package/dist/src/lib/run-status.generated.js +66 -0
  214. package/dist/src/lib/run-status.generated.js.map +1 -0
  215. package/dist/src/lib/run-status.js +19 -0
  216. package/dist/src/lib/run-status.js.map +1 -0
  217. package/dist/src/lib/server-text-normalization.d.ts +51 -0
  218. package/dist/src/lib/server-text-normalization.js +90 -0
  219. package/dist/src/lib/server-text-normalization.js.map +1 -0
  220. package/dist/src/lib/server-url.d.ts +22 -0
  221. package/dist/src/lib/server-url.js +33 -0
  222. package/dist/src/lib/server-url.js.map +1 -0
  223. package/dist/src/lib/signing-secret-status.d.ts +81 -0
  224. package/dist/src/lib/signing-secret-status.js +116 -0
  225. package/dist/src/lib/signing-secret-status.js.map +1 -0
  226. package/dist/src/lib/skill-installer.js +6 -3
  227. package/dist/src/lib/skill-installer.js.map +1 -1
  228. package/dist/src/lib/snapshots.d.ts +2 -2
  229. package/dist/src/lib/snapshots.js +2 -2
  230. package/dist/src/lib/swift-codegen/dbGenerator.d.ts +15 -2
  231. package/dist/src/lib/swift-codegen/dbGenerator.js +250 -18
  232. package/dist/src/lib/swift-codegen/dbGenerator.js.map +1 -1
  233. package/dist/src/lib/swift-codegen/generator.d.ts +11 -2
  234. package/dist/src/lib/swift-codegen/generator.js +181 -7
  235. package/dist/src/lib/swift-codegen/generator.js.map +1 -1
  236. package/dist/src/lib/swift-codegen/siblingSymbols.d.ts +7 -3
  237. package/dist/src/lib/swift-codegen/siblingSymbols.js +4 -1
  238. package/dist/src/lib/swift-codegen/siblingSymbols.js.map +1 -1
  239. package/dist/src/lib/sync-dir-selector.d.ts +21 -0
  240. package/dist/src/lib/sync-dir-selector.js +30 -0
  241. package/dist/src/lib/sync-dir-selector.js.map +1 -0
  242. package/dist/src/lib/sync-paths.d.ts +39 -0
  243. package/dist/src/lib/sync-paths.js +70 -2
  244. package/dist/src/lib/sync-paths.js.map +1 -1
  245. package/dist/src/lib/sync-resource-types.d.ts +138 -31
  246. package/dist/src/lib/sync-resource-types.js +241 -47
  247. package/dist/src/lib/sync-resource-types.js.map +1 -1
  248. package/dist/src/lib/sync-selectors.d.ts +95 -0
  249. package/dist/src/lib/sync-selectors.js +228 -0
  250. package/dist/src/lib/sync-selectors.js.map +1 -0
  251. package/dist/src/lib/template.d.ts +62 -4
  252. package/dist/src/lib/template.js +147 -39
  253. package/dist/src/lib/template.js.map +1 -1
  254. package/dist/src/lib/test-case-file-names.d.ts +40 -0
  255. package/dist/src/lib/test-case-file-names.js +91 -0
  256. package/dist/src/lib/test-case-file-names.js.map +1 -0
  257. package/dist/src/lib/test-case-keys.d.ts +29 -0
  258. package/dist/src/lib/test-case-keys.js +55 -0
  259. package/dist/src/lib/test-case-keys.js.map +1 -0
  260. package/dist/src/lib/test-case-variables.d.ts +15 -0
  261. package/dist/src/lib/test-case-variables.js +29 -0
  262. package/dist/src/lib/test-case-variables.js.map +1 -0
  263. package/dist/src/lib/toml-database-config.d.ts +4 -4
  264. package/dist/src/lib/toml-database-config.js +27 -34
  265. package/dist/src/lib/toml-database-config.js.map +1 -1
  266. package/dist/src/lib/toml-metadata-config.d.ts +9 -5
  267. package/dist/src/lib/toml-metadata-config.js +40 -45
  268. package/dist/src/lib/toml-metadata-config.js.map +1 -1
  269. package/dist/src/lib/toml-native-form.d.ts +1 -1
  270. package/dist/src/lib/toml-native-form.js +1 -1
  271. package/dist/src/lib/toml-params-validator.d.ts +1 -1
  272. package/dist/src/lib/toml-params-validator.js +1 -1
  273. package/dist/src/lib/toml-scalar-edit.d.ts +43 -0
  274. package/dist/src/lib/toml-scalar-edit.js +283 -0
  275. package/dist/src/lib/toml-scalar-edit.js.map +1 -0
  276. package/dist/src/lib/user-selector.d.ts +24 -0
  277. package/dist/src/lib/user-selector.js +33 -0
  278. package/dist/src/lib/user-selector.js.map +1 -0
  279. package/dist/src/lib/version-check.d.ts +25 -0
  280. package/dist/src/lib/version-check.js +77 -8
  281. package/dist/src/lib/version-check.js.map +1 -1
  282. package/dist/src/lib/watch.d.ts +121 -0
  283. package/dist/src/lib/watch.js +169 -0
  284. package/dist/src/lib/watch.js.map +1 -0
  285. package/dist/src/lib/web-url.d.ts +40 -0
  286. package/dist/src/lib/web-url.js +76 -0
  287. package/dist/src/lib/web-url.js.map +1 -0
  288. package/dist/src/lib/workflow-apply.d.ts +69 -45
  289. package/dist/src/lib/workflow-apply.js +99 -72
  290. package/dist/src/lib/workflow-apply.js.map +1 -1
  291. package/dist/src/lib/workflow-codegen/generator.js +4 -4
  292. package/dist/src/lib/workflow-codegen/generator.js.map +1 -1
  293. package/dist/src/lib/workflow-codegen/invokerIR.d.ts +11 -0
  294. package/dist/src/lib/workflow-codegen/invokerIR.js +5 -0
  295. package/dist/src/lib/workflow-codegen/invokerIR.js.map +1 -1
  296. package/dist/src/lib/workflow-config-apply.d.ts +70 -0
  297. package/dist/src/lib/workflow-config-apply.js +137 -0
  298. package/dist/src/lib/workflow-config-apply.js.map +1 -0
  299. package/dist/src/lib/workflow-config-sidecar.d.ts +63 -0
  300. package/dist/src/lib/workflow-config-sidecar.js +96 -0
  301. package/dist/src/lib/workflow-config-sidecar.js.map +1 -0
  302. package/dist/src/lib/workflow-defaults.d.ts +29 -0
  303. package/dist/src/lib/workflow-defaults.js +41 -0
  304. package/dist/src/lib/workflow-defaults.js.map +1 -0
  305. package/dist/src/lib/workflow-include-preserve.d.ts +76 -0
  306. package/dist/src/lib/workflow-include-preserve.js +286 -0
  307. package/dist/src/lib/workflow-include-preserve.js.map +1 -0
  308. package/dist/src/lib/workflow-payload.d.ts +31 -20
  309. package/dist/src/lib/workflow-payload.js +100 -110
  310. package/dist/src/lib/workflow-payload.js.map +1 -1
  311. package/dist/src/lib/workflow-toml-validator.d.ts +37 -16
  312. package/dist/src/lib/workflow-toml-validator.js +141 -16
  313. package/dist/src/lib/workflow-toml-validator.js.map +1 -1
  314. package/dist/src/types/index.d.ts +78 -22
  315. package/dist/src/validators.d.ts +7 -7
  316. package/dist/src/validators.js +6 -6
  317. package/package.json +11 -6
  318. package/dist/src/commands/settings.d.ts +0 -15
  319. package/dist/src/commands/settings.js +0 -102
  320. package/dist/src/commands/settings.js.map +0 -1
@@ -1,34 +1,36 @@
1
1
  /**
2
- * Shared app-settings sync helpers (issue #1033, Phase 2).
2
+ * Shared app-settings helpers (issue #1033, Phase 2; narrowed by #2645).
3
3
  *
4
4
  * The descriptor-driven `app.toml` round-trip (issue #1033, Phase 1) was born
5
- * inside the big `sync pull` / `sync push` command flow. Phase 2 lifts the
6
- * app-settings-specific pieces here so BOTH surfaces drive them:
5
+ * inside the big `config pull` / `config push` command flow. Phase 2 lifted the
6
+ * app-settings-specific pieces here so both surfaces could drive them. #2645
7
+ * then removed the second surface: `app.toml` is authored like every other
8
+ * configuration file and applied by `config push`, so what is left here is what
9
+ * `sync` calls (`serializeAppSettings`, `writePulledAppSettings`,
10
+ * `collectAppSettingsPushErrors`, `diffAppSettings` for `config diff --only app`)
11
+ * plus the one thing the file cannot answer — `renderAppSettings`, the
12
+ * server-effective view behind `primitive apps get` (#2759).
7
13
  *
8
- * - `sync pull` / `sync push` call the low-level helpers
9
- * (`serializeAppSettings`, `collectAppSettingsPushErrors`)behavior
10
- * unchanged from Phase 1.
11
- * - the new `primitive settings show|pull|push|diff` command
12
- * (`cli/src/commands/settings.ts`) calls the higher-level orchestrators
13
- * (`pullAppSettings`, `pushAppSettings`, `diffAppSettings`, `showAppSettings`).
14
+ * #2880 added the comparison the whole epic is about — `appSettingsFieldDiffs`,
15
+ * `hashAppSettingsForDiff` and `appSettingsNameExcluded` — and removed the last
16
+ * caller of the retired byte-hash/present-only rule (the `settings push`
17
+ * orchestrator #2645 had already unhooked). `app.toml` is now compared field by
18
+ * field against live state by both commands, over the full writable descriptor
19
+ * set, and applied as the whole truth.
14
20
  *
15
- * Both directions share the same `app.toml`, the same field descriptor
16
- * (`cli/src/lib/app-settings-descriptor.ts`), and the same single
17
- * `entities.app.contentHash` sync-state entry, so `settings push` then
18
- * `sync push` (or the reverse) is idempotent the second one skips on the
19
- * unchanged hash.
20
- *
21
- * `googleClientSecret` never leaves the server through here: pull omits it,
22
- * push errors on it (pointing at `primitive apps update --google-client-secret`),
23
- * and `settings show` redacts it in both the rendered and `--json` views.
21
+ * Google is a typed client map here (#2891): `googleClients` renders as
22
+ * `[auth.google.clients.<type>]`, and each entry's `clientSecret` holds a whole
23
+ * `{{secrets.KEY}}` reference, not the secret itself, so the map pulls, pushes,
24
+ * diffs and shows like any other setting. The secrets' values live only in the
25
+ * app secret store (`primitive secrets set`).
24
26
  */
25
27
  import { existsSync, readFileSync, writeFileSync, mkdirSync } from "fs";
26
28
  import { join } from "path";
27
29
  import { createHash } from "crypto";
28
30
  import { parseConfigToml, stringifyConfigToml } from "../lib/config-toml.js";
29
- import { APP_SETTINGS_DESCRIPTOR, APP_SETTINGS_SECTIONS, serializeAppSettingsToToml, parseTomlToAppSettings, } from "../lib/app-settings-descriptor.js";
30
- import { getServerUrl } from "../lib/config.js";
31
- import { success, error, info, warn, json, result as printResult, divider, } from "../lib/output.js";
31
+ import { APP_SETTINGS_DESCRIPTOR, APP_SETTINGS_SECTIONS, buildAppSettingsPayload, projectAppSettingsForComparison, serializeAppSettingsToToml, } from "../lib/app-settings-descriptor.js";
32
+ import { canonicalJsonStringify } from "../lib/canonical-json.js";
33
+ import { success, error, info, json, result as printResult, divider, } from "../lib/output.js";
32
34
  /** The app-settings file name inside a sync directory. */
33
35
  export const APP_TOML_FILENAME = "app.toml";
34
36
  /** Absolute path to `app.toml` inside a sync directory. */
@@ -37,8 +39,7 @@ export function appTomlPath(configDir) {
37
39
  }
38
40
  /**
39
41
  * Serialize server settings into the `app.toml` string (pull direction).
40
- * Descriptor-driven; `googleClientSecret` is never emitted. This is the single
41
- * serializer both `sync pull` and `settings pull` use.
42
+ * Descriptor-driven; this is the single serializer every pull path uses.
42
43
  */
43
44
  export function serializeAppSettings(settings) {
44
45
  return stringifyConfigToml(serializeAppSettingsToToml(settings));
@@ -53,8 +54,8 @@ function ensureDir(dirPath) {
53
54
  }
54
55
  /**
55
56
  * Write `app.toml` from server settings and return its content hash. Shared by
56
- * `sync pull` and `settings pull` so the two produce byte-identical files and
57
- * the same hash.
57
+ * `config pull` (whole-tree and `--only app`), so the file and the hash have one
58
+ * producer.
58
59
  */
59
60
  export function writeAppSettingsToml(configDir, settings) {
60
61
  const path = appTomlPath(configDir);
@@ -62,17 +63,20 @@ export function writeAppSettingsToml(configDir, settings) {
62
63
  return contentHashOfFile(path);
63
64
  }
64
65
  /**
65
- * Validate a parsed `app.toml` for push and return the fatal errors (a
66
- * hand-added secret key, a type mismatch). An empty array means the push may
67
- * proceed. Warnings (unrecognized keys) are intentionally not returned here —
68
- * the caller surfaces those at apply time. Shared by the `sync push` preflight
69
- * and `settings push`.
66
+ * Validate a parsed `app.toml` for push and return the fatal errors (a type
67
+ * mismatch, an unrecognized or retired key, a missing required key). An empty
68
+ * array means the push may proceed. Warnings (advisory notes) are intentionally
69
+ * not returned here — the caller surfaces those at apply time.
70
+ *
71
+ * ONE validator, run by `config push`'s preflight AND by `config diff` (#2880
72
+ * criterion 1): a file diff calls Synced is a file push accepts, and a file
73
+ * push refuses is named by diff with the identical message.
70
74
  */
71
75
  export function collectAppSettingsPushErrors(tomlData, options = {}) {
72
- return parseTomlToAppSettings(tomlData, options).errors;
76
+ return buildAppSettingsPayload(tomlData, options).errors;
73
77
  }
74
78
  // --- Shared single sync-state entry (entities.app) -------------------------
75
- // `settings pull/push` read and write the SAME `.primitive-sync.json` that
79
+ // These read and write the SAME `.primitive-sync.json` that
76
80
  // `sync` maintains, touching only `entities.app` and preserving every other
77
81
  // entity. Kept as small local load/save helpers (rather than importing
78
82
  // `sync.ts`) to avoid an import cycle — `sync.ts` imports the serializer above.
@@ -90,67 +94,6 @@ function loadSyncState(configDir) {
90
94
  return null;
91
95
  }
92
96
  }
93
- function saveSyncState(configDir, state) {
94
- writeFileSync(syncStatePath(configDir), JSON.stringify(state, null, 2));
95
- }
96
- /**
97
- * Update `entities.app.contentHash`, preserving all other entities.
98
- *
99
- * On a cross-app stamp (the loaded state belongs to a different app than the
100
- * one we just pulled from / pushed to) this mirrors `sync push` (see
101
- * `sync.ts`): it rebinds the sync state to the target app with fresh entities,
102
- * then records the app-settings hash. Without the rebind the stored
103
- * `state.appId` would stay pointing at the source app, so every later
104
- * `settings push <target>` would keep computing `isCrossAppPush` as true — it
105
- * would ignore the stored hash and keep stripping `[app].name`, making it
106
- * impossible to rename the target app via `app.toml`.
107
- */
108
- function stampAppContentHash(configDir, appId, contentHash) {
109
- const now = new Date().toISOString();
110
- const existing = loadSyncState(configDir);
111
- const isCrossAppStamp = !!(existing && existing.appId !== appId);
112
- const state = existing && !isCrossAppStamp
113
- ? existing
114
- : {
115
- appId,
116
- serverUrl: existing?.serverUrl ?? getServerUrl(),
117
- lastSyncedAt: now,
118
- entities: {},
119
- };
120
- state.entities.app = { modifiedAt: now, contentHash };
121
- saveSyncState(configDir, state);
122
- }
123
- // --- googleClientSecret redaction (settings show) --------------------------
124
- /** Placeholder shown in `settings show` in place of any secret field value. */
125
- export const REDACTED_PLACEHOLDER = "[redacted — set via: primitive apps update <appId> --google-client-secret]";
126
- /**
127
- * Return a copy of the server settings with every secret descriptor field
128
- * (currently `googleClientSecret`) redacted when a secret is stored. Used for
129
- * BOTH the rendered and `--json` outputs of `settings show` so the real secret
130
- * never leaves the server through this command (codex design-review concern #2).
131
- *
132
- * A secret counts as stored when either:
133
- * - the server sent a truthy raw value — a server older than #1603, which
134
- * still returns `googleClientSecret` on GET; or
135
- * - the companion `<field>Set` boolean is true — #1603 made the secret
136
- * write-only, so `GET /settings` omits the raw value entirely and reports
137
- * `googleClientSecretSet` instead. Without this branch a configured secret
138
- * renders as "(not set)", indistinguishable from an unconfigured one.
139
- *
140
- * When nothing is stored the field is left untouched, so it renders as
141
- * "(not set)" — which is then accurate.
142
- */
143
- export function redactSecretFields(settings) {
144
- const out = { ...settings };
145
- for (const d of APP_SETTINGS_DESCRIPTOR) {
146
- if (!d.secret)
147
- continue;
148
- const isSet = !!out[d.field] || out[`${d.field}Set`] === true;
149
- if (isSet)
150
- out[d.field] = REDACTED_PLACEHOLDER;
151
- }
152
- return out;
153
- }
154
97
  // --- Display helpers -------------------------------------------------------
155
98
  function formatValue(value) {
156
99
  if (value === undefined)
@@ -163,146 +106,170 @@ function formatValue(value) {
163
106
  return JSON.stringify(value);
164
107
  return String(value);
165
108
  }
166
- /** Order-insensitive-free deep equality good enough for settings scalars/arrays. */
109
+ /**
110
+ * Deep equality for one setting's comparable value.
111
+ *
112
+ * The SAME canonical encoding `hashAppSettingsForDiff` hashes with (#2880):
113
+ * `JSON.stringify` preserves object key ORDER, so reordering the
114
+ * `[auth.google.clients.<type>]` tables in `app.toml` reported a `Modified`
115
+ * field while the push gate — hashing the sorted encoding — skipped the file.
116
+ * A cosmetic edit has to be a change to neither command, so both read one
117
+ * encoding. Arrays stay order-sensitive: a reordered list is a real edit.
118
+ */
167
119
  function settingsEqual(a, b) {
168
- return JSON.stringify(a ?? null) === JSON.stringify(b ?? null);
120
+ return canonicalJsonStringify(a ?? null) === canonicalJsonStringify(b ?? null);
169
121
  }
170
- // --- Command orchestrators (used by cli/src/commands/settings.ts) ----------
122
+ // --- Command orchestrators -------------------------------------------------
171
123
  /**
172
- * `settings show` — render the current server-effective settings grouped by
173
- * `app.toml` section, with `googleClientSecret` redacted. `--json` emits the
174
- * full (redacted) server response.
124
+ * Render server-effective settings grouped by `app.toml` section — the view
125
+ * `apps get` prints (issue #2759; it was `apps get` before the fold).
126
+ *
127
+ * Descriptor-driven on purpose: a new setting appears here by being declared,
128
+ * where the hand-curated block `apps get` used to print showed whichever
129
+ * fields somebody remembered to add.
130
+ *
131
+ * Nothing is redacted (#2256, #2891): the only credential-shaped settings are
132
+ * the per-entry `clientSecret`s inside `googleClients`, and each is a whole
133
+ * `{{secrets.KEY}}` reference rather than the secret itself — so printing one
134
+ * tells the operator which secret is in use rather than leaking one. There is
135
+ * no withheld state left to explain.
136
+ *
137
+ * Takes settings rather than a client, and never exits: `apps get` fetches the
138
+ * app and its settings together and tolerates a settings fetch it is not
139
+ * allowed to make, so failure handling belongs at the call site.
175
140
  */
176
- export async function showAppSettings(client, appId, options = {}) {
177
- try {
178
- const settings = await client.getAppSettings(appId);
179
- const redacted = redactSecretFields(settings ?? {});
180
- if (options.json) {
181
- json(redacted);
182
- return;
183
- }
184
- for (const section of APP_SETTINGS_SECTIONS) {
185
- const descriptors = APP_SETTINGS_DESCRIPTOR.filter((d) => d.section === section);
186
- divider();
187
- info(`[${section}]`);
188
- for (const d of descriptors) {
189
- printResult(` ${d.key}`, formatValue(redacted[d.field]));
190
- }
141
+ export function renderAppSettings(settings) {
142
+ for (const section of APP_SETTINGS_SECTIONS) {
143
+ const descriptors = APP_SETTINGS_DESCRIPTOR.filter((d) => d.section === section);
144
+ divider();
145
+ info(`[${section}]`);
146
+ for (const d of descriptors) {
147
+ printResult(` ${d.key}`, formatValue(settings[d.field]));
191
148
  }
192
149
  }
193
- catch (err) {
194
- error(err.message);
195
- process.exit(1);
196
- }
197
150
  }
198
151
  /**
199
- * `settings pull` — fetch the server settings, write `app.toml`, and stamp the
200
- * shared `entities.app.contentHash`. Same file and hash as `sync pull`.
152
+ * Write the pulled `app.toml`.
153
+ *
154
+ * The file carries EVERY writable setting as of #2891 — the server withholds
155
+ * nothing, so there is no longer a class of value the pull has to warn about
156
+ * being absent (#2307's warning went with the withholding layer). `config pull`
157
+ * calls this for `app.toml`, whether the pull is whole-tree or `--only app`.
201
158
  */
202
- export async function pullAppSettings(client, appId, configDir, options = {}) {
203
- try {
204
- const settings = await client.getAppSettings(appId);
205
- if (!settings) {
206
- error(`No settings returned for app ${appId}.`);
207
- process.exit(1);
208
- }
209
- ensureDir(configDir);
210
- const contentHash = writeAppSettingsToml(configDir, settings);
211
- stampAppContentHash(configDir, appId, contentHash);
212
- if (options.json) {
213
- json({ wrote: true, path: appTomlPath(configDir), contentHash });
214
- return;
215
- }
216
- success(`Wrote ${appTomlPath(configDir)}`);
217
- }
218
- catch (err) {
219
- error(err.message);
220
- process.exit(1);
159
+ export function writePulledAppSettings(configDir, settings, options = {}) {
160
+ ensureDir(configDir);
161
+ const contentHash = writeAppSettingsToml(configDir, settings);
162
+ options.log?.(`Wrote ${appTomlPath(configDir)}`);
163
+ return { path: appTomlPath(configDir), contentHash };
164
+ }
165
+ /**
166
+ * Whether `[app].name` is out of BOTH the comparison and the payload right now
167
+ * (#2880 DSO-001) — the cross-app rule, shared so diff and push cannot disagree.
168
+ *
169
+ * A cross-app push (the sync state belongs to a different app) applies the file
170
+ * to the target with `name` excluded, so it never renames the target, and it
171
+ * RECORDS the file's name in `entities.app.excludedName` with the baseline
172
+ * hashed the same way. While that record stands and the file still states that
173
+ * name, the field stays excluded: the target keeps its own name and no phantom
174
+ * difference appears.
175
+ *
176
+ * A file name that DIFFERS from the recorded one is, by construction, a local
177
+ * name edit — the operator changed the line — so the exclusion lifts, the name
178
+ * goes into the payload, and the baseline is restamped with `name` from the
179
+ * server's returned record. It cannot be discovered by comparison instead:
180
+ * `classifyPushChange` only answers `local-edited` when the remote hash equals
181
+ * the baseline, and a baseline stamped without `name` matches neither side once
182
+ * `name` re-enters, so every post-cross-app rename would report `both-changed`.
183
+ */
184
+ export function appSettingsNameExcluded(input) {
185
+ if (input.isCrossAppPush)
186
+ return true;
187
+ if (input.recordedExcludedName === undefined)
188
+ return false;
189
+ return sameStatedName(input.fileName, input.recordedExcludedName);
190
+ }
191
+ /**
192
+ * Is the file still stating the name the exclusion was recorded for?
193
+ *
194
+ * Compared as TOML STATED it, not as a string (#2936). The name a cross-app
195
+ * push leaves alone is the name the file carried, and a cross-app push strips
196
+ * that line before it is type-checked — so the recorded value can be any TOML
197
+ * value, `name = 123` included. Coercing either side to text would read the
198
+ * unedited `123` as a rename to `"123"` on the next run, lifting the exclusion
199
+ * and aborting on the very field that is supposed to be out of play; two
200
+ * distinct values (`123` and `"123"`) must not compare equal either. Shape
201
+ * comparison covers the values with no useful identity of their own — an
202
+ * array, an inline table, a TOML date.
203
+ */
204
+ function sameStatedName(fileName, recorded) {
205
+ if (fileName === recorded)
206
+ return true;
207
+ if (fileName === undefined || recorded === undefined)
208
+ return false;
209
+ if (typeof fileName === "object" && typeof recorded === "object") {
210
+ return JSON.stringify(fileName) === JSON.stringify(recorded);
221
211
  }
212
+ return false;
213
+ }
214
+ /** `appSettingsNameExcluded` for a caller holding the loaded state (diff). */
215
+ export function appSettingsNameExcludedForState(state, appId, tomlData) {
216
+ return appSettingsNameExcluded({
217
+ isCrossAppPush: !!(state && state.appId !== appId),
218
+ recordedExcludedName: state?.entities?.app?.excludedName,
219
+ fileName: tomlData?.app?.name,
220
+ });
222
221
  }
223
222
  /**
224
- * `settings push` read `app.toml`, validate (abort before any PUT on a secret
225
- * key or a type mismatch), skip when unchanged since the last sync unless
226
- * `--force`, then apply via `PUT /settings` and re-stamp the shared content
227
- * hash. Cross-app pushes (state's app differs from the target) always apply and
228
- * strip `name`, matching `sync push`.
223
+ * The fields the local `app.toml` and the live settings disagree on (#2880).
224
+ *
225
+ * Compared over the FULL writable descriptor set, not just the keys the file
226
+ * carries: `app.toml` is the whole truth, so a key the file omits is not "no
227
+ * opinion", it is the absent-value the push will send. Both sides run through
228
+ * `projectAppSettingsForComparison`, which applies the same canonicalization
229
+ * and the same `whenSet`-empty flattening to each — so a pulled file compares
230
+ * equal to the server it was pulled from, and a deleted key shows as the clear
231
+ * push would apply.
232
+ *
233
+ * One helper, three callers: `config diff --only app`'s per-field output, the
234
+ * app-settings row in the full `config diff`, and the push gate.
229
235
  */
230
- export async function pushAppSettings(client, appId, configDir, options = {}) {
231
- try {
232
- const path = appTomlPath(configDir);
233
- if (!existsSync(path)) {
234
- error(`No ${APP_TOML_FILENAME} found at ${path}. Run 'primitive settings pull' first.`);
235
- process.exit(1);
236
- }
237
- const state = loadSyncState(configDir);
238
- const isCrossAppPush = !!(state && state.appId !== appId);
239
- let tomlData;
240
- try {
241
- tomlData = parseConfigToml(readFileSync(path, "utf-8"));
242
- }
243
- catch (err) {
244
- error(`Aborting push: could not parse ${APP_TOML_FILENAME}: ${err?.message || String(err)}`);
245
- process.exit(1);
246
- }
247
- const { settings, warnings, errors } = parseTomlToAppSettings(tomlData, {
248
- isCrossAppPush,
236
+ export function appSettingsFieldDiffs(localSettings, remoteSettings, options = {}) {
237
+ const local = projectAppSettingsForComparison(localSettings, options);
238
+ const remote = projectAppSettingsForComparison(remoteSettings, options);
239
+ const diffs = [];
240
+ for (const d of APP_SETTINGS_DESCRIPTOR) {
241
+ if (!(d.field in local))
242
+ continue;
243
+ if (settingsEqual(local[d.field], remote[d.field]))
244
+ continue;
245
+ diffs.push({
246
+ field: d.field,
247
+ section: d.section,
248
+ key: d.key,
249
+ local: local[d.field],
250
+ remote: remote[d.field],
249
251
  });
250
- // Fail before any mutation on a secret key or a type mismatch.
251
- if (errors.length > 0) {
252
- error(`Aborting push: ${errors.length} validation error(s) in ${APP_TOML_FILENAME} — no changes were applied.`);
253
- for (const e of errors)
254
- error(` ${e}`);
255
- process.exit(1);
256
- }
257
- // Skip when nothing changed since the last sync (shared content hash).
258
- const storedHash = isCrossAppPush
259
- ? undefined
260
- : state?.entities?.app?.contentHash;
261
- const changed = options.force || !storedHash || contentHashOfFile(path) !== storedHash;
262
- if (!changed) {
263
- if (options.json) {
264
- json({ applied: false, skipped: true, reason: "unchanged" });
265
- }
266
- else {
267
- info("Skipped app settings (unchanged). Use --force to push anyway.");
268
- }
269
- return;
270
- }
271
- for (const w of warnings)
272
- warn(` ${w}`);
273
- if (options.dryRun) {
274
- if (options.json) {
275
- json({ applied: false, dryRun: true, settings });
276
- }
277
- else {
278
- info("[dry-run] Would update app settings.");
279
- }
280
- return;
281
- }
282
- await client.updateAppSettings(appId, settings);
283
- stampAppContentHash(configDir, appId, contentHashOfFile(path));
284
- if (options.json) {
285
- json({ applied: true, fields: Object.keys(settings) });
286
- return;
287
- }
288
- success("Updated app settings.");
289
- }
290
- catch (err) {
291
- error(err.message);
292
- process.exit(1);
293
252
  }
253
+ return diffs;
294
254
  }
295
255
  /**
296
- * `settings diff` report per-field differences between the local `app.toml`
297
- * push payload and the current server settings. Only keys present in the TOML
298
- * are compared, so a server value that equals a descriptor default (and is
299
- * therefore omitted from `app.toml`) is never flagged as a spurious difference.
256
+ * The comparator's hash of one side's app settings — the push gate's
257
+ * `localHash`/`remoteHash`, and the `entities.app.semanticHash` baseline
258
+ * stamped once the two agree (#2880 criterion 6).
259
+ */
260
+ export function hashAppSettingsForDiff(settings, options = {}) {
261
+ return createHash("sha256")
262
+ .update(canonicalJsonStringify(projectAppSettingsForComparison(settings, options)))
263
+ .digest("hex");
264
+ }
265
+ /**
266
+ * `config diff --only app` — the per-field report, over the full writable set.
300
267
  */
301
268
  export async function diffAppSettings(client, appId, configDir, options = {}) {
302
269
  try {
303
270
  const path = appTomlPath(configDir);
304
271
  if (!existsSync(path)) {
305
- error(`No ${APP_TOML_FILENAME} found at ${path}. Run 'primitive settings pull' first.`);
272
+ error(`No ${APP_TOML_FILENAME} found at ${path}. Run 'primitive config pull --only app' first.`);
306
273
  process.exit(1);
307
274
  }
308
275
  // Local-parse-first, mirroring `settings push`: validate the file before
@@ -315,21 +282,22 @@ export async function diffAppSettings(client, appId, configDir, options = {}) {
315
282
  error(`Aborting diff: could not parse ${APP_TOML_FILENAME}: ${err?.message || String(err)}`);
316
283
  process.exit(1);
317
284
  }
318
- // Mirror push's cross-app determination (pushAppSettings above): when the
319
- // sync state belongs to a different app, the push parse strips `[app].name`
320
- // before validating, so diff must strip it too otherwise a malformed
321
- // local `name` would abort diff on a file push would accept and ignore.
285
+ // Mirror push's cross-app determination: when the sync state belongs to a
286
+ // different app, the push payload leaves `[app].name` out, so diff leaves it
287
+ // out too otherwise a malformed local `name` would abort diff on a file
288
+ // push would accept and ignore, and the target's own name would report as a
289
+ // difference push has no intention of applying.
322
290
  const state = loadSyncState(configDir);
323
- const isCrossAppPush = !!(state && state.appId !== appId);
324
- // Present-only push payload omitted keys are absent, so they can't be
325
- // flagged against a server default.
326
- const { settings: local, errors } = parseTomlToAppSettings(tomlData, {
327
- isCrossAppPush,
291
+ const excludeName = appSettingsNameExcludedForState(state, appId, tomlData);
292
+ // ONE validator with push (#2880 criterion 1): whole-truth payload, so a
293
+ // missing required key is an error here exactly as it is there.
294
+ const { settings: local, errors } = buildAppSettingsPayload(tomlData, {
295
+ excludeName,
328
296
  });
329
- // Mirror the push preflight (pushAppSettings above): a file with validation
330
- // errors is unpushable, so diff must not present its surviving values as
331
- // clean (or as a partial diff) that would advertise changes push will
332
- // never apply. `--json` is ignored on this path, exactly as push does.
297
+ // A file with validation errors is unpushable, so diff must not present its
298
+ // surviving values as clean (or as a partial diff) that would advertise
299
+ // changes push will never apply. `--json` is ignored on this path, exactly
300
+ // as push does.
333
301
  if (errors.length > 0) {
334
302
  error(`Aborting diff: ${errors.length} validation error(s) in ${APP_TOML_FILENAME} — this file cannot be pushed.`);
335
303
  for (const e of errors)
@@ -337,24 +305,7 @@ export async function diffAppSettings(client, appId, configDir, options = {}) {
337
305
  process.exit(1);
338
306
  }
339
307
  const remote = (await client.getAppSettings(appId)) ?? {};
340
- const diffs = [];
341
- for (const d of APP_SETTINGS_DESCRIPTOR) {
342
- if (d.secret)
343
- continue;
344
- if (!(d.field in local))
345
- continue;
346
- const localVal = local[d.field];
347
- const remoteVal = remote[d.field];
348
- if (!settingsEqual(localVal, remoteVal)) {
349
- diffs.push({
350
- field: d.field,
351
- section: d.section,
352
- key: d.key,
353
- local: localVal,
354
- remote: remoteVal,
355
- });
356
- }
357
- }
308
+ const diffs = appSettingsFieldDiffs(local, remote, { excludeName });
358
309
  if (options.json) {
359
310
  json({ diffs });
360
311
  return;
@@ -1 +1 @@
1
- {"version":3,"file":"sync-app-settings.js","sourceRoot":"","sources":["../../../src/commands/sync-app-settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,IAAI,CAAC;AACxE,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC7E,OAAO,EACL,uBAAuB,EACvB,qBAAqB,EACrB,0B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