rivet-design 0.23.1 → 0.24.0

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 (386) hide show
  1. package/dist/agent-variants/SessionStore.d.ts +6 -0
  2. package/dist/agent-variants/SessionStore.d.ts.map +1 -1
  3. package/dist/agent-variants/SessionStore.js +21 -4
  4. package/dist/agent-variants/SessionStore.js.map +1 -1
  5. package/dist/agent-variants/WorkerExecutorService.d.ts.map +1 -1
  6. package/dist/agent-variants/WorkerExecutorService.js +37 -10
  7. package/dist/agent-variants/WorkerExecutorService.js.map +1 -1
  8. package/dist/agent-variants/WorktreeOrchestrator.d.ts +3 -32
  9. package/dist/agent-variants/WorktreeOrchestrator.d.ts.map +1 -1
  10. package/dist/agent-variants/WorktreeOrchestrator.js +9 -0
  11. package/dist/agent-variants/WorktreeOrchestrator.js.map +1 -1
  12. package/dist/agent-variants/contracts.d.ts +290 -288
  13. package/dist/agent-variants/contracts.d.ts.map +1 -1
  14. package/dist/agent-variants/contracts.js.map +1 -1
  15. package/dist/agent-variants/staticPreviewRefinements.d.ts +2 -0
  16. package/dist/agent-variants/staticPreviewRefinements.d.ts.map +1 -1
  17. package/dist/agent-variants/staticPreviewRefinements.js +3 -0
  18. package/dist/agent-variants/staticPreviewRefinements.js.map +1 -1
  19. package/dist/agent-variants/variant-start-types.d.ts +38 -0
  20. package/dist/agent-variants/variant-start-types.d.ts.map +1 -0
  21. package/dist/agent-variants/variant-start-types.js +3 -0
  22. package/dist/agent-variants/variant-start-types.js.map +1 -0
  23. package/dist/agent-variants/videoKeyframes.d.ts.map +1 -1
  24. package/dist/agent-variants/videoKeyframes.js +3 -2
  25. package/dist/agent-variants/videoKeyframes.js.map +1 -1
  26. package/dist/agent-variants/workItemBriefing.d.ts +1 -0
  27. package/dist/agent-variants/workItemBriefing.d.ts.map +1 -1
  28. package/dist/agent-variants/workItemBriefing.js +20 -6
  29. package/dist/agent-variants/workItemBriefing.js.map +1 -1
  30. package/dist/agent-variants/workItemInput.d.ts +196 -186
  31. package/dist/agent-variants/workItemInput.d.ts.map +1 -1
  32. package/dist/agent-variants/workItemInput.js +1 -0
  33. package/dist/agent-variants/workItemInput.js.map +1 -1
  34. package/dist/agent-variants/workerRuntime.d.ts +8 -1
  35. package/dist/agent-variants/workerRuntime.d.ts.map +1 -1
  36. package/dist/agent-variants/workerRuntime.js +59 -40
  37. package/dist/agent-variants/workerRuntime.js.map +1 -1
  38. package/dist/cli/browser.d.ts.map +1 -1
  39. package/dist/cli/browser.js +5 -3
  40. package/dist/cli/browser.js.map +1 -1
  41. package/dist/cli/client.d.ts.map +1 -1
  42. package/dist/cli/client.js +23 -3
  43. package/dist/cli/client.js.map +1 -1
  44. package/dist/cli/commands/context.d.ts.map +1 -1
  45. package/dist/cli/commands/context.js +10 -35
  46. package/dist/cli/commands/context.js.map +1 -1
  47. package/dist/cli/commands/contextRequest.d.ts +1 -0
  48. package/dist/cli/commands/contextRequest.d.ts.map +1 -1
  49. package/dist/cli/commands/contextRequest.js +8 -1
  50. package/dist/cli/commands/contextRequest.js.map +1 -1
  51. package/dist/cli/commands/contextVerification.d.ts +12 -0
  52. package/dist/cli/commands/contextVerification.d.ts.map +1 -0
  53. package/dist/cli/commands/contextVerification.js +48 -0
  54. package/dist/cli/commands/contextVerification.js.map +1 -0
  55. package/dist/cli/commands/guidanceReferences.d.ts +1 -1
  56. package/dist/cli/commands/mcpServe.d.ts +1 -3
  57. package/dist/cli/commands/mcpServe.d.ts.map +1 -1
  58. package/dist/cli/commands/mcpServe.js +21 -744
  59. package/dist/cli/commands/mcpServe.js.map +1 -1
  60. package/dist/cli/commands/open.d.ts.map +1 -1
  61. package/dist/cli/commands/open.js +2 -1
  62. package/dist/cli/commands/open.js.map +1 -1
  63. package/dist/cli/commands/profile.d.ts.map +1 -1
  64. package/dist/cli/commands/profile.js +2 -1
  65. package/dist/cli/commands/profile.js.map +1 -1
  66. package/dist/cli/commands/serve.d.ts.map +1 -1
  67. package/dist/cli/commands/serve.js +0 -2
  68. package/dist/cli/commands/serve.js.map +1 -1
  69. package/dist/cli/commands/shared.d.ts.map +1 -1
  70. package/dist/cli/commands/shared.js +5 -2
  71. package/dist/cli/commands/shared.js.map +1 -1
  72. package/dist/cli/commands/status.d.ts.map +1 -1
  73. package/dist/cli/commands/status.js +4 -1
  74. package/dist/cli/commands/status.js.map +1 -1
  75. package/dist/cli/commands/variants.d.ts.map +1 -1
  76. package/dist/cli/commands/variants.js +2 -1
  77. package/dist/cli/commands/variants.js.map +1 -1
  78. package/dist/cli/editorSession.d.ts +27 -0
  79. package/dist/cli/editorSession.d.ts.map +1 -0
  80. package/dist/cli/editorSession.js +50 -0
  81. package/dist/cli/editorSession.js.map +1 -0
  82. package/dist/cli/entry.d.ts.map +1 -1
  83. package/dist/cli/entry.js +2 -0
  84. package/dist/cli/entry.js.map +1 -1
  85. package/dist/cli/hostWorkNextAction.d.ts +3 -5
  86. package/dist/cli/hostWorkNextAction.d.ts.map +1 -1
  87. package/dist/cli/hostWorkNextAction.js +7 -23
  88. package/dist/cli/hostWorkNextAction.js.map +1 -1
  89. package/dist/cli/router.d.ts.map +1 -1
  90. package/dist/cli/router.js +4 -2
  91. package/dist/cli/router.js.map +1 -1
  92. package/dist/cli/serverHandshake.d.ts +1 -0
  93. package/dist/cli/serverHandshake.d.ts.map +1 -1
  94. package/dist/cli/serverHandshake.js.map +1 -1
  95. package/dist/cli/serverUnavailable.d.ts +1 -1
  96. package/dist/cli/serverUnavailable.d.ts.map +1 -1
  97. package/dist/cli/serverUnavailable.js +1 -0
  98. package/dist/cli/serverUnavailable.js.map +1 -1
  99. package/dist/config/flags.d.ts +3 -0
  100. package/dist/config/flags.d.ts.map +1 -1
  101. package/dist/config/flags.js +1 -0
  102. package/dist/config/flags.js.map +1 -1
  103. package/dist/config/pluginMetrics.d.ts +2 -0
  104. package/dist/config/pluginMetrics.d.ts.map +1 -0
  105. package/dist/config/pluginMetrics.js +234 -0
  106. package/dist/config/pluginMetrics.js.map +1 -0
  107. package/dist/config/telemetryPolicy.d.ts +8 -0
  108. package/dist/config/telemetryPolicy.d.ts.map +1 -0
  109. package/dist/config/telemetryPolicy.js +25 -0
  110. package/dist/config/telemetryPolicy.js.map +1 -0
  111. package/dist/index-core.d.ts +0 -1
  112. package/dist/index-core.d.ts.map +1 -1
  113. package/dist/index-core.js +1 -3
  114. package/dist/index-core.js.map +1 -1
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +10 -15
  117. package/dist/index.js.map +1 -1
  118. package/dist/install/allowlists.d.ts.map +1 -1
  119. package/dist/install/allowlists.js +6 -1
  120. package/dist/install/allowlists.js.map +1 -1
  121. package/dist/install/automaticCliUpdate.d.ts.map +1 -1
  122. package/dist/install/automaticCliUpdate.js +9 -2
  123. package/dist/install/automaticCliUpdate.js.map +1 -1
  124. package/dist/install/channelCli.d.ts.map +1 -1
  125. package/dist/install/channelCli.js +2 -1
  126. package/dist/install/channelCli.js.map +1 -1
  127. package/dist/install/channelManager.d.ts.map +1 -1
  128. package/dist/install/channelManager.js +11 -6
  129. package/dist/install/channelManager.js.map +1 -1
  130. package/dist/install/globalBootstrap.d.ts.map +1 -1
  131. package/dist/install/globalBootstrap.js +5 -1
  132. package/dist/install/globalBootstrap.js.map +1 -1
  133. package/dist/install/harnesses.js +1 -1
  134. package/dist/install/mcpRegistration.d.ts.map +1 -1
  135. package/dist/install/mcpRegistration.js +7 -4
  136. package/dist/install/mcpRegistration.js.map +1 -1
  137. package/dist/library/HubClient.d.ts.map +1 -1
  138. package/dist/library/HubClient.js +25 -5
  139. package/dist/library/HubClient.js.map +1 -1
  140. package/dist/mcp/designContextTools.d.ts +3 -0
  141. package/dist/mcp/designContextTools.d.ts.map +1 -0
  142. package/dist/mcp/designContextTools.js +44 -0
  143. package/dist/mcp/designContextTools.js.map +1 -0
  144. package/dist/mcp/explorationSchema.d.ts +56 -0
  145. package/dist/mcp/explorationSchema.d.ts.map +1 -0
  146. package/dist/mcp/explorationSchema.js +123 -0
  147. package/dist/mcp/explorationSchema.js.map +1 -0
  148. package/dist/mcp/explorationTools.d.ts +3 -0
  149. package/dist/mcp/explorationTools.d.ts.map +1 -0
  150. package/dist/mcp/explorationTools.js +117 -0
  151. package/dist/mcp/explorationTools.js.map +1 -0
  152. package/dist/mcp/getExploration.d.ts +13 -0
  153. package/dist/mcp/getExploration.d.ts.map +1 -0
  154. package/dist/mcp/getExploration.js +130 -0
  155. package/dist/mcp/getExploration.js.map +1 -0
  156. package/dist/mcp/intentTool.d.ts +60 -0
  157. package/dist/mcp/intentTool.d.ts.map +1 -0
  158. package/dist/mcp/intentTool.js +57 -0
  159. package/dist/mcp/intentTool.js.map +1 -0
  160. package/dist/mcp/preferenceTools.d.ts +3 -0
  161. package/dist/mcp/preferenceTools.d.ts.map +1 -0
  162. package/dist/mcp/preferenceTools.js +164 -0
  163. package/dist/mcp/preferenceTools.js.map +1 -0
  164. package/dist/mcp/profileAccess.d.ts +4 -0
  165. package/dist/mcp/profileAccess.d.ts.map +1 -0
  166. package/dist/mcp/profileAccess.js +31 -0
  167. package/dist/mcp/profileAccess.js.map +1 -0
  168. package/dist/mcp/referenceTools.d.ts +3 -0
  169. package/dist/mcp/referenceTools.d.ts.map +1 -0
  170. package/dist/mcp/referenceTools.js +128 -0
  171. package/dist/mcp/referenceTools.js.map +1 -0
  172. package/dist/prototype-host.js +37 -2
  173. package/dist/prototype-host.js.map +1 -1
  174. package/dist/routes/agentVariants.d.ts.map +1 -1
  175. package/dist/routes/agentVariants.js +10 -36
  176. package/dist/routes/agentVariants.js.map +1 -1
  177. package/dist/routes/editorAccess.d.ts +3 -0
  178. package/dist/routes/editorAccess.d.ts.map +1 -0
  179. package/dist/routes/editorAccess.js +33 -0
  180. package/dist/routes/editorAccess.js.map +1 -0
  181. package/dist/routes/library/app.d.ts.map +1 -1
  182. package/dist/routes/library/app.js +2 -0
  183. package/dist/routes/library/app.js.map +1 -1
  184. package/dist/routes/library/index.d.ts.map +1 -1
  185. package/dist/routes/library/index.js +2 -0
  186. package/dist/routes/library/index.js.map +1 -1
  187. package/dist/routes/shareAvailability.d.ts +8 -0
  188. package/dist/routes/shareAvailability.d.ts.map +1 -0
  189. package/dist/routes/shareAvailability.js +25 -0
  190. package/dist/routes/shareAvailability.js.map +1 -0
  191. package/dist/routes/telemetry.d.ts +4 -0
  192. package/dist/routes/telemetry.d.ts.map +1 -0
  193. package/dist/routes/telemetry.js +60 -0
  194. package/dist/routes/telemetry.js.map +1 -0
  195. package/dist/routes/variantRequestSchema.d.ts +33 -4
  196. package/dist/routes/variantRequestSchema.d.ts.map +1 -1
  197. package/dist/routes/variantRequestSchema.js +13 -1
  198. package/dist/routes/variantRequestSchema.js.map +1 -1
  199. package/dist/server.d.ts +2 -2
  200. package/dist/server.d.ts.map +1 -1
  201. package/dist/server.js +230 -127
  202. package/dist/server.js.map +1 -1
  203. package/dist/services/CliLogForwarder.js +2 -1
  204. package/dist/services/CliLogForwarder.js.map +1 -1
  205. package/dist/services/ConfigManager.d.ts +7 -0
  206. package/dist/services/ConfigManager.d.ts.map +1 -1
  207. package/dist/services/ConfigManager.js +31 -24
  208. package/dist/services/ConfigManager.js.map +1 -1
  209. package/dist/services/DependencyPreparationService.d.ts.map +1 -1
  210. package/dist/services/DependencyPreparationService.js +2 -1
  211. package/dist/services/DependencyPreparationService.js.map +1 -1
  212. package/dist/services/FeatureFlagService.d.ts.map +1 -1
  213. package/dist/services/FeatureFlagService.js +13 -2
  214. package/dist/services/FeatureFlagService.js.map +1 -1
  215. package/dist/services/GuidanceVerifierRunner.d.ts +0 -1
  216. package/dist/services/GuidanceVerifierRunner.d.ts.map +1 -1
  217. package/dist/services/GuidanceVerifierRunner.js +11 -22
  218. package/dist/services/GuidanceVerifierRunner.js.map +1 -1
  219. package/dist/services/IntegrationsClient.d.ts +3 -3
  220. package/dist/services/OperatingSystemServices.d.ts +1 -0
  221. package/dist/services/OperatingSystemServices.d.ts.map +1 -1
  222. package/dist/services/OperatingSystemServices.js +3 -2
  223. package/dist/services/OperatingSystemServices.js.map +1 -1
  224. package/dist/services/ProjectDetectionService.d.ts.map +1 -1
  225. package/dist/services/ProjectDetectionService.js +6 -4
  226. package/dist/services/ProjectDetectionService.js.map +1 -1
  227. package/dist/services/ProjectFolderPicker.d.ts.map +1 -1
  228. package/dist/services/ProjectFolderPicker.js +2 -0
  229. package/dist/services/ProjectFolderPicker.js.map +1 -1
  230. package/dist/services/ProjectLibrary.d.ts +2 -0
  231. package/dist/services/ProjectLibrary.d.ts.map +1 -1
  232. package/dist/services/ProjectLibrary.js +16 -6
  233. package/dist/services/ProjectLibrary.js.map +1 -1
  234. package/dist/services/ProjectRegistry.d.ts +3 -2
  235. package/dist/services/ProjectRegistry.d.ts.map +1 -1
  236. package/dist/services/ProjectRegistry.js +4 -0
  237. package/dist/services/ProjectRegistry.js.map +1 -1
  238. package/dist/services/PrototypeBuildService.d.ts.map +1 -1
  239. package/dist/services/PrototypeBuildService.js +2 -1
  240. package/dist/services/PrototypeBuildService.js.map +1 -1
  241. package/dist/services/StaticPreviewServer.d.ts.map +1 -1
  242. package/dist/services/StaticPreviewServer.js +2 -1
  243. package/dist/services/StaticPreviewServer.js.map +1 -1
  244. package/dist/services/TelemetryService.d.ts +3 -1
  245. package/dist/services/TelemetryService.d.ts.map +1 -1
  246. package/dist/services/TelemetryService.js +60 -21
  247. package/dist/services/TelemetryService.js.map +1 -1
  248. package/dist/services/TreeStore.d.ts.map +1 -1
  249. package/dist/services/TreeStore.js +7 -2
  250. package/dist/services/TreeStore.js.map +1 -1
  251. package/dist/services/VariantGenerationService.d.ts.map +1 -1
  252. package/dist/services/VariantGenerationService.js +6 -7
  253. package/dist/services/VariantGenerationService.js.map +1 -1
  254. package/dist/services/VariantRunService.d.ts.map +1 -1
  255. package/dist/services/VariantRunService.js +10 -6
  256. package/dist/services/VariantRunService.js.map +1 -1
  257. package/dist/services/WorktreeManager.d.ts.map +1 -1
  258. package/dist/services/WorktreeManager.js +9 -1
  259. package/dist/services/WorktreeManager.js.map +1 -1
  260. package/dist/services/packageManagerProcess.d.ts.map +1 -1
  261. package/dist/services/packageManagerProcess.js +3 -0
  262. package/dist/services/packageManagerProcess.js.map +1 -1
  263. package/dist/services/profiles/DesignProfiles.d.ts +286 -66
  264. package/dist/services/profiles/DesignProfiles.d.ts.map +1 -1
  265. package/dist/services/profiles/DesignProfiles.js +346 -91
  266. package/dist/services/profiles/DesignProfiles.js.map +1 -1
  267. package/dist/services/profiles/MemoryRuntime.d.ts.map +1 -1
  268. package/dist/services/profiles/MemoryRuntime.js +4 -6
  269. package/dist/services/profiles/MemoryRuntime.js.map +1 -1
  270. package/dist/services/profiles/ProfileAgent.d.ts.map +1 -1
  271. package/dist/services/profiles/ProfileAgent.js +4 -3
  272. package/dist/services/profiles/ProfileAgent.js.map +1 -1
  273. package/dist/services/profiles/ProfileImports.d.ts +2 -2
  274. package/dist/services/profiles/ProfilePlanning.d.ts +4 -4
  275. package/dist/services/profiles/ProfilePreparation.d.ts.map +1 -1
  276. package/dist/services/profiles/ProfilePreparation.js +1 -0
  277. package/dist/services/profiles/ProfilePreparation.js.map +1 -1
  278. package/dist/services/profiles/ProfileVariants.d.ts +1 -1
  279. package/dist/services/profiles/ProfileVariants.d.ts.map +1 -1
  280. package/dist/services/profiles/ProfileVariants.js +1 -1
  281. package/dist/services/profiles/ProfileVariants.js.map +1 -1
  282. package/dist/services/profiles/ReferenceReader.d.ts +3 -3
  283. package/dist/services/profiles/profileContext.d.ts +1 -1
  284. package/dist/services/stopRuntimeProcess.d.ts.map +1 -1
  285. package/dist/services/stopRuntimeProcess.js +2 -0
  286. package/dist/services/stopRuntimeProcess.js.map +1 -1
  287. package/dist/storage/library/BundleMetadataStore.d.ts +1 -0
  288. package/dist/storage/library/BundleMetadataStore.d.ts.map +1 -1
  289. package/dist/storage/library/BundleMetadataStore.js +17 -0
  290. package/dist/storage/library/BundleMetadataStore.js.map +1 -1
  291. package/dist/storage/library/ProjectPreviewCache.d.ts +2 -2
  292. package/dist/storage/library/ProjectRecords.d.ts +1 -0
  293. package/dist/storage/library/ProjectRecords.d.ts.map +1 -1
  294. package/dist/storage/library/ProjectRecords.js +7 -0
  295. package/dist/storage/library/ProjectRecords.js.map +1 -1
  296. package/dist/storage/library/database.d.ts +4 -0
  297. package/dist/storage/library/database.d.ts.map +1 -1
  298. package/dist/storage/library/database.js +18 -1
  299. package/dist/storage/library/database.js.map +1 -1
  300. package/dist/storage/profiles/ProfilePlans.d.ts +19 -18
  301. package/dist/storage/profiles/ProfilePlans.d.ts.map +1 -1
  302. package/dist/storage/profiles/ProfilePlans.js +5 -2
  303. package/dist/storage/profiles/ProfilePlans.js.map +1 -1
  304. package/dist/storage/profiles/ProfileRecords.d.ts +45 -14
  305. package/dist/storage/profiles/ProfileRecords.d.ts.map +1 -1
  306. package/dist/storage/profiles/ProfileRecords.js +59 -4
  307. package/dist/storage/profiles/ProfileRecords.js.map +1 -1
  308. package/dist/storage/profiles/planSchema.d.ts +5 -5
  309. package/dist/storage/profiles/schema.d.ts +8 -8
  310. package/dist/types/cosmos-profile.d.ts +6 -6
  311. package/dist/types/cosmos.d.ts +10 -10
  312. package/dist/types/design-profile.d.ts +32 -32
  313. package/dist/types/guidance-references.d.ts +20 -20
  314. package/dist/types/guidance.d.ts +144 -144
  315. package/dist/types/reference-connectors.d.ts +12 -12
  316. package/dist/types/reference-onboarding.d.ts +58 -58
  317. package/dist/types/reference-pages.d.ts +8 -8
  318. package/dist/types/variant-reference.d.ts +4 -4
  319. package/dist/types/x-bookmarks.d.ts +16 -16
  320. package/dist/utils/cloneOrCopyDirSync.d.ts.map +1 -1
  321. package/dist/utils/cloneOrCopyDirSync.js +2 -0
  322. package/dist/utils/cloneOrCopyDirSync.js.map +1 -1
  323. package/dist/utils/editorAccess.d.ts +8 -0
  324. package/dist/utils/editorAccess.d.ts.map +1 -0
  325. package/dist/utils/editorAccess.js +23 -0
  326. package/dist/utils/editorAccess.js.map +1 -0
  327. package/dist/utils/hostedLogPrivacy.d.ts +2 -0
  328. package/dist/utils/hostedLogPrivacy.d.ts.map +1 -0
  329. package/dist/utils/hostedLogPrivacy.js +29 -0
  330. package/dist/utils/hostedLogPrivacy.js.map +1 -0
  331. package/dist/utils/hostedLogging.d.ts +2 -0
  332. package/dist/utils/hostedLogging.d.ts.map +1 -0
  333. package/dist/utils/hostedLogging.js +18 -0
  334. package/dist/utils/hostedLogging.js.map +1 -0
  335. package/dist/utils/loginShellPath.d.ts.map +1 -1
  336. package/dist/utils/loginShellPath.js +2 -0
  337. package/dist/utils/loginShellPath.js.map +1 -1
  338. package/dist/utils/skills/claude-skill.d.ts +1 -1
  339. package/dist/utils/skills/claude-skill.js +1 -1
  340. package/dist/utils/skills/cli-guidance.d.ts +1 -1
  341. package/dist/utils/skills/cli-guidance.d.ts.map +1 -1
  342. package/dist/utils/skills/cli-guidance.js +56 -27
  343. package/dist/utils/skills/cli-guidance.js.map +1 -1
  344. package/dist/utils/skills/codex-skill.d.ts +1 -1
  345. package/dist/utils/skills/codex-skill.d.ts.map +1 -1
  346. package/dist/utils/skills/codex-skill.js +6 -2
  347. package/dist/utils/skills/codex-skill.js.map +1 -1
  348. package/dist/utils/skills/cursor-rules.d.ts +1 -1
  349. package/dist/utils/skills/cursor-rules.js +1 -1
  350. package/dist/utils/subprocessEnvironment.d.ts +6 -0
  351. package/dist/utils/subprocessEnvironment.d.ts.map +1 -0
  352. package/dist/utils/subprocessEnvironment.js +214 -0
  353. package/dist/utils/subprocessEnvironment.js.map +1 -0
  354. package/package.json +8 -4
  355. package/src/ui/dist/assets/{LibraryEntry-BUwOgHmJ.js → LibraryEntry-DS6EDW1V.js} +2 -2
  356. package/src/ui/dist/assets/main-CdH16hGP.js +435 -0
  357. package/src/ui/dist/index.html +1 -1
  358. package/dist/routes/git.d.ts +0 -5
  359. package/dist/routes/git.d.ts.map +0 -1
  360. package/dist/routes/git.js +0 -261
  361. package/dist/routes/git.js.map +0 -1
  362. package/dist/services/CommitMessageGenerator.d.ts +0 -7
  363. package/dist/services/CommitMessageGenerator.d.ts.map +0 -1
  364. package/dist/services/CommitMessageGenerator.js +0 -16
  365. package/dist/services/CommitMessageGenerator.js.map +0 -1
  366. package/dist/services/LocalGitService.d.ts +0 -61
  367. package/dist/services/LocalGitService.d.ts.map +0 -1
  368. package/dist/services/LocalGitService.js +0 -561
  369. package/dist/services/LocalGitService.js.map +0 -1
  370. package/dist/services/PRTitleGenerator.d.ts +0 -9
  371. package/dist/services/PRTitleGenerator.d.ts.map +0 -1
  372. package/dist/services/PRTitleGenerator.js +0 -36
  373. package/dist/services/PRTitleGenerator.js.map +0 -1
  374. package/dist/services/SessionService.d.ts +0 -38
  375. package/dist/services/SessionService.d.ts.map +0 -1
  376. package/dist/services/SessionService.js +0 -189
  377. package/dist/services/SessionService.js.map +0 -1
  378. package/dist/utils/branchNames.d.ts +0 -2
  379. package/dist/utils/branchNames.d.ts.map +0 -1
  380. package/dist/utils/branchNames.js +0 -92
  381. package/dist/utils/branchNames.js.map +0 -1
  382. package/dist/utils/hostAgentEnv.d.ts +0 -2
  383. package/dist/utils/hostAgentEnv.d.ts.map +0 -1
  384. package/dist/utils/hostAgentEnv.js +0 -15
  385. package/dist/utils/hostAgentEnv.js.map +0 -1
  386. package/src/ui/dist/assets/main-DQKavyjz.js +0 -435
@@ -5,10 +5,27 @@ import { IntegrationsClient } from '../IntegrationsClient';
5
5
  import { type ProfileContext as RecordedContext } from '../../types/design-profile';
6
6
  import type { TelemetryService } from '../TelemetryService';
7
7
  import { type GuidanceUpload, type GuidanceUploadUpdate, type GuidanceSelection } from '../../types/guidance';
8
- import type { DesignLibrarySnapshot, DesignReferenceRequest, DesignReferenceSearchRequest, DesignReferenceSearchResult } from '../../types/design-library';
8
+ import type { DesignLibrarySnapshot, DesignLibrarySource, DesignReferenceRequest, DesignReferenceSearchRequest, DesignReferenceSearchResult } from '../../types/design-library';
9
9
  import { type ReferencePlanRequest, type ReferenceOnboardingAction } from '../../types/reference-onboarding';
10
- import type { ProfileVariants } from './ProfileVariants';
10
+ import { ProfileVariants } from './ProfileVariants';
11
11
  import { type ProfileVariantInput, type ProfileRuntime, type ProfilePreparationRequest as PreparationInput } from '../../types/design-profile';
12
+ interface SavedReferenceInput {
13
+ title: string;
14
+ source: {
15
+ kind: 'text';
16
+ text: string;
17
+ } | {
18
+ kind: 'images';
19
+ files: string[];
20
+ } | {
21
+ kind: 'saved_direction';
22
+ projectId: string;
23
+ sessionId: string;
24
+ variantId: string;
25
+ imageFile: string;
26
+ note?: string;
27
+ };
28
+ }
12
29
  interface DesignProfilesOptions {
13
30
  referenceConnectors?: ReferenceConnectorClient;
14
31
  referenceIntegrations?: Pick<IntegrationsClient, 'discoverCosmos' | 'fetchCosmos'>;
@@ -25,18 +42,222 @@ export declare class DesignProfiles {
25
42
  private current?;
26
43
  private opening;
27
44
  constructor(options: DesignProfilesOptions);
45
+ readDesignContext(input: {
46
+ includeChecks?: boolean;
47
+ includeDisabled?: boolean;
48
+ importPlanId?: string;
49
+ instructionIds?: string[];
50
+ referenceSelection?: {
51
+ profileId: string;
52
+ keys: string[];
53
+ };
54
+ }): Promise<{
55
+ profileId: null;
56
+ instructions: never[];
57
+ references: never[];
58
+ } | {
59
+ importPlan?: {
60
+ coverageBasis: "retained_job_references";
61
+ jobs: {
62
+ coverage: {
63
+ references: number;
64
+ downloaded: number;
65
+ unsupported: number;
66
+ failed: number;
67
+ analyzed: number;
68
+ indexed: number;
69
+ pendingIndex: number;
70
+ };
71
+ failures: {
72
+ jobId: string;
73
+ referenceId: string;
74
+ revision: number;
75
+ stage: "download" | "analysis";
76
+ error: string;
77
+ attempts: number;
78
+ updatedAt: string;
79
+ }[];
80
+ retryAt: string | null;
81
+ isEnumerated: boolean;
82
+ id: string;
83
+ sourceId: string;
84
+ runtime: "claude" | "codex" | "cursor";
85
+ state: "pending" | "failed" | "superseded" | "complete" | "paused";
86
+ cursor: string | null;
87
+ enumerated: number;
88
+ total: number | null;
89
+ error: string | null;
90
+ updatedAt: string;
91
+ }[];
92
+ id: string;
93
+ revision: string;
94
+ discoveryId: string;
95
+ profile: {
96
+ url: string;
97
+ title: string;
98
+ id: string;
99
+ username: string;
100
+ };
101
+ provider: "pinterest" | "arena" | "cosmos" | "x";
102
+ runtime: "claude" | "codex" | "cursor";
103
+ createdAt: string;
104
+ expiresAt: string;
105
+ approvedAt: string | null;
106
+ jobIds: string[];
107
+ collections: {
108
+ includedCollectionIds: string[];
109
+ referenceCount: number;
110
+ description: string | null;
111
+ url: string | null;
112
+ title: string;
113
+ id: string;
114
+ children: string[];
115
+ total: number | null;
116
+ parentId: string | null;
117
+ }[];
118
+ collectionCount: number;
119
+ referenceCount: number;
120
+ imageCount: number;
121
+ reusableCount: number;
122
+ analysisCount: number;
123
+ tokenEstimate: null;
124
+ durationEstimateMs: null;
125
+ scopeDisclosure: string;
126
+ unsupportedCount: number;
127
+ usageDisclosure: string;
128
+ approvalRequired: boolean;
129
+ } | undefined;
130
+ profileId: string;
131
+ instructions: {
132
+ verifier?: {
133
+ isStale: boolean;
134
+ } | {
135
+ package?: {
136
+ runtime: "node";
137
+ entrypoint: string;
138
+ fileNames: string[];
139
+ } | undefined;
140
+ markdown: string;
141
+ sourceDigest: string;
142
+ isStale: boolean;
143
+ } | undefined;
144
+ sourceDigest: string;
145
+ title: string;
146
+ id: string;
147
+ markdown: string;
148
+ isEnabled: boolean;
149
+ attachments?: {
150
+ path: string;
151
+ source: string;
152
+ hash: string;
153
+ mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
154
+ bytes: number;
155
+ representation: "variant" | "image" | "video-cover" | "page";
156
+ alt: string;
157
+ title?: string | undefined;
158
+ page?: number | undefined;
159
+ }[] | undefined;
160
+ references?: ({
161
+ path: string;
162
+ kind: "directory";
163
+ intent: string;
164
+ } | {
165
+ url: string;
166
+ kind: "url" | "repository";
167
+ intent: string;
168
+ digest?: string | undefined;
169
+ revision?: string | undefined;
170
+ files?: {
171
+ name: string;
172
+ content: string;
173
+ path?: string | undefined;
174
+ sha256?: string | undefined;
175
+ }[] | undefined;
176
+ })[] | undefined;
177
+ }[];
178
+ references: {
179
+ key: string;
180
+ title: string;
181
+ imageCount: number;
182
+ hasAnalysis: boolean;
183
+ }[];
184
+ }>;
185
+ private importPlanReceipt;
186
+ searchSavedReferences(input: {
187
+ query: string;
188
+ sourceId?: string;
189
+ limit?: number;
190
+ }): Promise<{
191
+ profileId: null;
192
+ query: string;
193
+ searchMode: "saved_text";
194
+ coverage: {
195
+ saved: number;
196
+ analyzed: number;
197
+ indexed: number;
198
+ };
199
+ results: never[];
200
+ } | {
201
+ searchMode: "saved_text";
202
+ profileId: string;
203
+ query: string;
204
+ coverage: {
205
+ saved: number;
206
+ analyzed: number;
207
+ indexed: number;
208
+ };
209
+ results: Array<{
210
+ id: string;
211
+ key: string;
212
+ title: string;
213
+ provider: import("../../types/design-profile").ProfileProvider;
214
+ url?: string;
215
+ description: string | null;
216
+ imageCount: number;
217
+ sources: DesignLibrarySource[];
218
+ isIncluded: boolean;
219
+ }>;
220
+ }>;
221
+ saveReference(input: SavedReferenceInput): Promise<{
222
+ analysis: "not_requested";
223
+ source: {
224
+ id: string;
225
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
226
+ remoteId: string;
227
+ resolvedRemoteId: string | null;
228
+ title: string;
229
+ url: string | null;
230
+ isIncluded: boolean;
231
+ removedAt: string | null;
232
+ };
233
+ references: import("../../types/design-profile").ProfileReference[];
234
+ profileId: string;
235
+ }>;
236
+ private suppliedReferenceInput;
237
+ removeReference(input: {
238
+ profileId: string;
239
+ referenceId: string;
240
+ }): Promise<{
241
+ profileId: string;
242
+ referenceId: string;
243
+ isRemoved: boolean;
244
+ }>;
245
+ private withReadOnlyRecords;
28
246
  listGuidance(expectedAccountId?: string): Promise<{
29
247
  title: string;
30
248
  id: string;
31
249
  markdown: string;
32
250
  isEnabled: boolean;
251
+ verifier?: {
252
+ isStale: boolean;
253
+ } | undefined;
33
254
  attachments?: {
34
255
  path: string;
256
+ source: string;
35
257
  hash: string;
36
258
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
37
259
  bytes: number;
38
260
  representation: "variant" | "image" | "video-cover" | "page";
39
- source: string;
40
261
  alt: string;
41
262
  title?: string | undefined;
42
263
  page?: number | undefined;
@@ -49,31 +270,31 @@ export declare class DesignProfiles {
49
270
  url: string;
50
271
  kind: "url" | "repository";
51
272
  intent: string;
273
+ digest?: string | undefined;
274
+ revision?: string | undefined;
52
275
  files?: {
53
276
  name: string;
54
277
  content: string;
55
278
  path?: string | undefined;
56
279
  sha256?: string | undefined;
57
280
  }[] | undefined;
58
- digest?: string | undefined;
59
- revision?: string | undefined;
60
281
  })[] | undefined;
61
- verifier?: {
62
- isStale: boolean;
63
- } | undefined;
64
282
  }[]>;
65
283
  getGuidance(id: string, expectedAccountId?: string): Promise<{
66
284
  title: string;
67
285
  id: string;
68
286
  markdown: string;
69
287
  isEnabled: boolean;
288
+ verifier?: {
289
+ isStale: boolean;
290
+ } | undefined;
70
291
  attachments?: {
71
292
  path: string;
293
+ source: string;
72
294
  hash: string;
73
295
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
74
296
  bytes: number;
75
297
  representation: "variant" | "image" | "video-cover" | "page";
76
- source: string;
77
298
  alt: string;
78
299
  title?: string | undefined;
79
300
  page?: number | undefined;
@@ -86,18 +307,15 @@ export declare class DesignProfiles {
86
307
  url: string;
87
308
  kind: "url" | "repository";
88
309
  intent: string;
310
+ digest?: string | undefined;
311
+ revision?: string | undefined;
89
312
  files?: {
90
313
  name: string;
91
314
  content: string;
92
315
  path?: string | undefined;
93
316
  sha256?: string | undefined;
94
317
  }[] | undefined;
95
- digest?: string | undefined;
96
- revision?: string | undefined;
97
318
  })[] | undefined;
98
- verifier?: {
99
- isStale: boolean;
100
- } | undefined;
101
319
  }>;
102
320
  addGuidance(input: GuidanceUpload, expectedAccountId?: string): Promise<{
103
321
  guidanceWarning?: {
@@ -110,13 +328,16 @@ export declare class DesignProfiles {
110
328
  id: string;
111
329
  markdown: string;
112
330
  isEnabled: boolean;
331
+ verifier?: {
332
+ isStale: boolean;
333
+ } | undefined;
113
334
  attachments?: {
114
335
  path: string;
336
+ source: string;
115
337
  hash: string;
116
338
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
117
339
  bytes: number;
118
340
  representation: "variant" | "image" | "video-cover" | "page";
119
- source: string;
120
341
  alt: string;
121
342
  title?: string | undefined;
122
343
  page?: number | undefined;
@@ -129,18 +350,15 @@ export declare class DesignProfiles {
129
350
  url: string;
130
351
  kind: "url" | "repository";
131
352
  intent: string;
353
+ digest?: string | undefined;
354
+ revision?: string | undefined;
132
355
  files?: {
133
356
  name: string;
134
357
  content: string;
135
358
  path?: string | undefined;
136
359
  sha256?: string | undefined;
137
360
  }[] | undefined;
138
- digest?: string | undefined;
139
- revision?: string | undefined;
140
361
  })[] | undefined;
141
- verifier?: {
142
- isStale: boolean;
143
- } | undefined;
144
362
  }>;
145
363
  updateGuidance(input: GuidanceUploadUpdate & {
146
364
  id: string;
@@ -155,13 +373,16 @@ export declare class DesignProfiles {
155
373
  id: string;
156
374
  markdown: string;
157
375
  isEnabled: boolean;
376
+ verifier?: {
377
+ isStale: boolean;
378
+ } | undefined;
158
379
  attachments?: {
159
380
  path: string;
381
+ source: string;
160
382
  hash: string;
161
383
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
162
384
  bytes: number;
163
385
  representation: "variant" | "image" | "video-cover" | "page";
164
- source: string;
165
386
  alt: string;
166
387
  title?: string | undefined;
167
388
  page?: number | undefined;
@@ -174,18 +395,15 @@ export declare class DesignProfiles {
174
395
  url: string;
175
396
  kind: "url" | "repository";
176
397
  intent: string;
398
+ digest?: string | undefined;
399
+ revision?: string | undefined;
177
400
  files?: {
178
401
  name: string;
179
402
  content: string;
180
403
  path?: string | undefined;
181
404
  sha256?: string | undefined;
182
405
  }[] | undefined;
183
- digest?: string | undefined;
184
- revision?: string | undefined;
185
406
  })[] | undefined;
186
- verifier?: {
187
- isStale: boolean;
188
- } | undefined;
189
407
  }>;
190
408
  removeGuidance(id: string, expectedAccountId?: string): Promise<void>;
191
409
  private importGuidanceImages;
@@ -203,11 +421,11 @@ export declare class DesignProfiles {
203
421
  markdown: string;
204
422
  attachments?: {
205
423
  path: string;
424
+ source: string;
206
425
  hash: string;
207
426
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif";
208
427
  bytes: number;
209
428
  representation: "variant" | "image" | "video-cover" | "page";
210
- source: string;
211
429
  alt: string;
212
430
  title?: string | undefined;
213
431
  page?: number | undefined;
@@ -220,14 +438,14 @@ export declare class DesignProfiles {
220
438
  url: string;
221
439
  kind: "url" | "repository";
222
440
  intent: string;
441
+ digest?: string | undefined;
442
+ revision?: string | undefined;
223
443
  files?: {
224
444
  name: string;
225
445
  content: string;
226
446
  path?: string | undefined;
227
447
  sha256?: string | undefined;
228
448
  }[] | undefined;
229
- digest?: string | undefined;
230
- revision?: string | undefined;
231
449
  })[] | undefined;
232
450
  }[];
233
451
  }>;
@@ -235,17 +453,18 @@ export declare class DesignProfiles {
235
453
  private materializeGuidance;
236
454
  private guidanceAccount;
237
455
  private withGuidanceRecords;
238
- discoverReferences({ signal, ...input }: ReferenceDiscoveryRequest & {
456
+ discoverReferences({ isAuthorizationAllowed, signal, ...input }: ReferenceDiscoveryRequest & {
239
457
  signal?: AbortSignal;
458
+ isAuthorizationAllowed?: boolean;
240
459
  }): Promise<{
241
- provider: "arena" | "pinterest" | "x" | "cosmos";
460
+ provider: "pinterest" | "arena" | "cosmos" | "x";
242
461
  scopeDisclosure: string;
243
462
  id: string;
244
463
  total: number;
245
464
  collections: {
465
+ description: string | null;
246
466
  url: string | null;
247
467
  title: string;
248
- description: string | null;
249
468
  id: string;
250
469
  children: string[];
251
470
  total: number | null;
@@ -263,7 +482,7 @@ export declare class DesignProfiles {
263
482
  message?: undefined;
264
483
  } | {
265
484
  status: "authorization_required";
266
- provider: "arena" | "pinterest" | "x";
485
+ provider: "pinterest" | "arena" | "x";
267
486
  authUrl: string;
268
487
  message: string;
269
488
  }>;
@@ -277,7 +496,7 @@ export declare class DesignProfiles {
277
496
  id: string;
278
497
  username: string;
279
498
  };
280
- provider: "arena" | "pinterest" | "x" | "cosmos";
499
+ provider: "pinterest" | "arena" | "cosmos" | "x";
281
500
  runtime: "claude" | "codex" | "cursor";
282
501
  createdAt: string;
283
502
  expiresAt: string;
@@ -286,9 +505,9 @@ export declare class DesignProfiles {
286
505
  collections: {
287
506
  includedCollectionIds: string[];
288
507
  referenceCount: number;
508
+ description: string | null;
289
509
  url: string | null;
290
510
  title: string;
291
- description: string | null;
292
511
  id: string;
293
512
  children: string[];
294
513
  total: number | null;
@@ -316,7 +535,7 @@ export declare class DesignProfiles {
316
535
  id: string;
317
536
  username: string;
318
537
  };
319
- provider: "arena" | "pinterest" | "x" | "cosmos";
538
+ provider: "pinterest" | "arena" | "cosmos" | "x";
320
539
  runtime: "claude" | "codex" | "cursor";
321
540
  createdAt: string;
322
541
  expiresAt: string;
@@ -325,9 +544,9 @@ export declare class DesignProfiles {
325
544
  collections: {
326
545
  includedCollectionIds: string[];
327
546
  referenceCount: number;
547
+ description: string | null;
328
548
  url: string | null;
329
549
  title: string;
330
- description: string | null;
331
550
  id: string;
332
551
  children: string[];
333
552
  total: number | null;
@@ -347,7 +566,7 @@ export declare class DesignProfiles {
347
566
  }>;
348
567
  referenceOnboarding(action?: ReferenceOnboardingAction, provider?: ReferenceProvider): Promise<{
349
568
  providers: {
350
- provider: "arena" | "pinterest" | "x" | "cosmos";
569
+ provider: "pinterest" | "arena" | "cosmos" | "x";
351
570
  state: "pending" | "complete" | "later" | "dismissed";
352
571
  offeredAt: string | null;
353
572
  remindAt: string | null;
@@ -355,7 +574,7 @@ export declare class DesignProfiles {
355
574
  }>;
356
575
  referenceNotice(): Promise<{
357
576
  providers: {
358
- provider: "arena" | "pinterest" | "x" | "cosmos";
577
+ provider: "pinterest" | "arena" | "cosmos" | "x";
359
578
  message: string;
360
579
  command: string;
361
580
  laterCommand: string;
@@ -377,7 +596,7 @@ export declare class DesignProfiles {
377
596
  id: string;
378
597
  username: string;
379
598
  };
380
- provider: "arena" | "pinterest" | "x" | "cosmos";
599
+ provider: "pinterest" | "arena" | "cosmos" | "x";
381
600
  runtime: "claude" | "codex" | "cursor";
382
601
  createdAt: string;
383
602
  expiresAt: string;
@@ -386,9 +605,9 @@ export declare class DesignProfiles {
386
605
  collections: {
387
606
  includedCollectionIds: string[];
388
607
  referenceCount: number;
608
+ description: string | null;
389
609
  url: string | null;
390
610
  title: string;
391
- description: string | null;
392
611
  id: string;
393
612
  children: string[];
394
613
  total: number | null;
@@ -418,7 +637,7 @@ export declare class DesignProfiles {
418
637
  };
419
638
  sources: {
420
639
  id: string;
421
- provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
640
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
422
641
  remoteId: string;
423
642
  resolvedRemoteId: string | null;
424
643
  title: string;
@@ -432,7 +651,7 @@ export declare class DesignProfiles {
432
651
  id: string;
433
652
  sourceId: string;
434
653
  runtime: "claude" | "codex" | "cursor";
435
- state: "pending" | "failed" | "complete" | "superseded" | "paused";
654
+ state: "pending" | "failed" | "superseded" | "complete" | "paused";
436
655
  cursor: string | null;
437
656
  enumerated: number;
438
657
  total: number | null;
@@ -456,7 +675,7 @@ export declare class DesignProfiles {
456
675
  pendingIndex: number;
457
676
  };
458
677
  referenceOnboarding: {
459
- provider: "arena" | "pinterest" | "x" | "cosmos";
678
+ provider: "pinterest" | "arena" | "cosmos" | "x";
460
679
  state: "pending" | "complete" | "later" | "dismissed";
461
680
  offeredAt: string | null;
462
681
  remindAt: string | null;
@@ -489,7 +708,7 @@ export declare class DesignProfiles {
489
708
  pendingIndex: number;
490
709
  };
491
710
  id: string;
492
- provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
711
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
493
712
  remoteId: string;
494
713
  resolvedRemoteId: string | null;
495
714
  title: string;
@@ -513,7 +732,7 @@ export declare class DesignProfiles {
513
732
  id: string;
514
733
  sourceId: string;
515
734
  runtime: "claude" | "codex" | "cursor";
516
- state: "pending" | "failed" | "complete" | "superseded" | "paused";
735
+ state: "pending" | "failed" | "superseded" | "complete" | "paused";
517
736
  cursor: string | null;
518
737
  enumerated: number;
519
738
  total: number | null;
@@ -537,7 +756,7 @@ export declare class DesignProfiles {
537
756
  pendingIndex: number;
538
757
  };
539
758
  referenceOnboarding: {
540
- provider: "arena" | "pinterest" | "x" | "cosmos";
759
+ provider: "pinterest" | "arena" | "cosmos" | "x";
541
760
  state: "pending" | "complete" | "later" | "dismissed";
542
761
  offeredAt: string | null;
543
762
  remindAt: string | null;
@@ -559,7 +778,7 @@ export declare class DesignProfiles {
559
778
  };
560
779
  sources: {
561
780
  id: string;
562
- provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
781
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
563
782
  remoteId: string;
564
783
  resolvedRemoteId: string | null;
565
784
  title: string;
@@ -573,7 +792,7 @@ export declare class DesignProfiles {
573
792
  id: string;
574
793
  sourceId: string;
575
794
  runtime: "claude" | "codex" | "cursor";
576
- state: "pending" | "failed" | "complete" | "superseded" | "paused";
795
+ state: "pending" | "failed" | "superseded" | "complete" | "paused";
577
796
  cursor: string | null;
578
797
  enumerated: number;
579
798
  total: number | null;
@@ -597,7 +816,7 @@ export declare class DesignProfiles {
597
816
  pendingIndex: number;
598
817
  };
599
818
  referenceOnboarding: {
600
- provider: "arena" | "pinterest" | "x" | "cosmos";
819
+ provider: "pinterest" | "arena" | "cosmos" | "x";
601
820
  state: "pending" | "complete" | "later" | "dismissed";
602
821
  offeredAt: string | null;
603
822
  remindAt: string | null;
@@ -612,7 +831,7 @@ export declare class DesignProfiles {
612
831
  }): Promise<{
613
832
  source: {
614
833
  id: string;
615
- provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
834
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
616
835
  remoteId: string;
617
836
  resolvedRemoteId: string | null;
618
837
  title: string;
@@ -629,7 +848,7 @@ export declare class DesignProfiles {
629
848
  }): Promise<{
630
849
  source: {
631
850
  id: string;
632
- provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
851
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
633
852
  remoteId: string;
634
853
  resolvedRemoteId: string | null;
635
854
  title: string;
@@ -649,7 +868,7 @@ export declare class DesignProfiles {
649
868
  addVariant(input: ProfileVariantInput): Promise<{
650
869
  source: {
651
870
  id: string;
652
- provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
871
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
653
872
  remoteId: string;
654
873
  resolvedRemoteId: string | null;
655
874
  title: string;
@@ -664,14 +883,14 @@ export declare class DesignProfiles {
664
883
  runtime: ProfileRuntime;
665
884
  }): Promise<{
666
885
  status: "approval_required";
667
- provider: "arena" | "pinterest" | "x" | "cosmos";
886
+ provider: "pinterest" | "arena" | "cosmos" | "x";
668
887
  profileUrl: string;
669
888
  collectionId: string;
670
889
  message: string;
671
890
  } | {
672
891
  source: {
673
892
  id: string;
674
- provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
893
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
675
894
  remoteId: string;
676
895
  resolvedRemoteId: string | null;
677
896
  title: string;
@@ -685,7 +904,7 @@ export declare class DesignProfiles {
685
904
  id: string;
686
905
  sourceId: string;
687
906
  runtime: "claude" | "codex" | "cursor";
688
- state: "pending" | "failed" | "complete" | "superseded" | "paused";
907
+ state: "pending" | "failed" | "superseded" | "complete" | "paused";
689
908
  cursor: string | null;
690
909
  enumerated: number;
691
910
  total: number | null;
@@ -709,7 +928,7 @@ export declare class DesignProfiles {
709
928
  };
710
929
  sources: {
711
930
  id: string;
712
- provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
931
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
713
932
  remoteId: string;
714
933
  resolvedRemoteId: string | null;
715
934
  title: string;
@@ -723,7 +942,7 @@ export declare class DesignProfiles {
723
942
  id: string;
724
943
  sourceId: string;
725
944
  runtime: "claude" | "codex" | "cursor";
726
- state: "pending" | "failed" | "complete" | "superseded" | "paused";
945
+ state: "pending" | "failed" | "superseded" | "complete" | "paused";
727
946
  cursor: string | null;
728
947
  enumerated: number;
729
948
  total: number | null;
@@ -747,7 +966,7 @@ export declare class DesignProfiles {
747
966
  pendingIndex: number;
748
967
  };
749
968
  referenceOnboarding: {
750
- provider: "arena" | "pinterest" | "x" | "cosmos";
969
+ provider: "pinterest" | "arena" | "cosmos" | "x";
751
970
  state: "pending" | "complete" | "later" | "dismissed";
752
971
  offeredAt: string | null;
753
972
  remindAt: string | null;
@@ -758,7 +977,7 @@ export declare class DesignProfiles {
758
977
  runtime: ProfileRuntime;
759
978
  }): Promise<{
760
979
  status: "approval_required";
761
- provider: "arena" | "pinterest" | "x" | "cosmos";
980
+ provider: "pinterest" | "arena" | "cosmos" | "x";
762
981
  profileUrl: string;
763
982
  collectionId: string;
764
983
  message: string;
@@ -769,7 +988,7 @@ export declare class DesignProfiles {
769
988
  id: string;
770
989
  sourceId: string;
771
990
  runtime: "claude" | "codex" | "cursor";
772
- state: "pending" | "failed" | "complete" | "superseded" | "paused";
991
+ state: "pending" | "failed" | "superseded" | "complete" | "paused";
773
992
  cursor: string | null;
774
993
  enumerated: number;
775
994
  total: number | null;
@@ -799,9 +1018,9 @@ export declare class DesignProfiles {
799
1018
  } | null;
800
1019
  id: string;
801
1020
  revision: number;
802
- provider: "variant" | "text" | "arena" | "pinterest" | "image" | "x" | "cosmos" | "pdf";
803
1021
  title: string;
804
1022
  text: string;
1023
+ provider: "variant" | "text" | "pinterest" | "arena" | "cosmos" | "x" | "image" | "pdf";
805
1024
  remoteId: string;
806
1025
  media: {
807
1026
  hash: string;
@@ -810,13 +1029,13 @@ export declare class DesignProfiles {
810
1029
  representation: "variant" | "image" | "video-cover" | "page";
811
1030
  page?: number | undefined;
812
1031
  }[];
813
- url?: string | undefined;
814
1032
  variant?: {
815
1033
  projectId: string;
816
1034
  sessionId: string;
817
1035
  variantId: string;
818
1036
  treeSha?: string | undefined;
819
1037
  } | undefined;
1038
+ url?: string | undefined;
820
1039
  note?: string | undefined;
821
1040
  remoteImages?: string[] | undefined;
822
1041
  remoteImageRepresentations?: ("image" | "video-cover")[] | undefined;
@@ -832,6 +1051,7 @@ export declare class DesignProfiles {
832
1051
  hasAnalysis: boolean;
833
1052
  }[];
834
1053
  } | null>;
1054
+ private readReferenceContexts;
835
1055
  referenceMedia({ profileId, referenceId, hash, }: {
836
1056
  profileId: string;
837
1057
  referenceId: string;
@@ -855,14 +1075,14 @@ export declare class DesignProfiles {
855
1075
  revision: number;
856
1076
  id: string;
857
1077
  sourceTitles: string[];
858
- url?: string | undefined;
859
- title?: string | undefined;
860
1078
  variant?: {
861
1079
  projectId: string;
862
1080
  sessionId: string;
863
1081
  variantId: string;
864
1082
  treeSha?: string | undefined;
865
1083
  } | undefined;
1084
+ url?: string | undefined;
1085
+ title?: string | undefined;
866
1086
  mediaHashes?: string[] | undefined;
867
1087
  }[];
868
1088
  queries: string[];
@@ -883,8 +1103,8 @@ export declare class DesignProfiles {
883
1103
  suppliedReferences?: {
884
1104
  title: string;
885
1105
  id: string;
886
- url?: string | undefined;
887
1106
  reason?: string | undefined;
1107
+ url?: string | undefined;
888
1108
  image?: {
889
1109
  hash: string;
890
1110
  mimeType: "image/png" | "image/jpeg" | "image/webp" | "image/gif" | "image/avif";