@rien7/seji 0.0.0-stage → 0.6.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 (413) hide show
  1. package/bin/design-surface.mjs +6 -0
  2. package/bin/postinstall.mjs +19 -0
  3. package/bin/seji.mjs +573 -0
  4. package/dist/agent/host.d.mts +34 -0
  5. package/dist/agent/host.mjs +387 -0
  6. package/dist/agent/messages.d.mts +9 -0
  7. package/dist/agent/messages.mjs +70 -0
  8. package/dist/agent/runtimes.mjs +157 -0
  9. package/dist/cli/app.mjs +321 -0
  10. package/dist/cli/appScan.mjs +284 -0
  11. package/dist/cli/catalog.mjs +78 -0
  12. package/dist/cli/component.mjs +165 -0
  13. package/dist/cli/consolidate.mjs +159 -0
  14. package/dist/cli/cssImport.mjs +68 -0
  15. package/dist/cli/dev.mjs +335 -0
  16. package/dist/cli/doctor.mjs +306 -0
  17. package/dist/cli/init.mjs +338 -0
  18. package/dist/cli/legacyNames.mjs +266 -0
  19. package/dist/cli/migrate.mjs +163 -0
  20. package/dist/cli/prompt.mjs +34 -0
  21. package/dist/cli/propose.mjs +208 -0
  22. package/dist/cli/providers.mjs +344 -0
  23. package/dist/cli/reviewOps.mjs +110 -0
  24. package/dist/cli/semver.mjs +45 -0
  25. package/dist/cli/setup.mjs +357 -0
  26. package/dist/cli/sketches.mjs +47 -0
  27. package/dist/cli/skills.mjs +150 -0
  28. package/dist/cli/snapshot.mjs +107 -0
  29. package/dist/cli/tokenOps.mjs +120 -0
  30. package/dist/cli/types.mjs +191 -0
  31. package/dist/cli/updater.mjs +274 -0
  32. package/dist/components/astIndex.mjs +992 -0
  33. package/dist/components/ops.mjs +1069 -0
  34. package/dist/editor/AgentProposalCard.d.ts +10 -0
  35. package/dist/editor/AgentProposalCard.d.ts.map +1 -0
  36. package/dist/editor/AgentProposalCard.js +31 -0
  37. package/dist/editor/AgentProposalCard.js.map +1 -0
  38. package/dist/editor/App.d.ts +2 -0
  39. package/dist/editor/App.d.ts.map +1 -0
  40. package/dist/editor/App.js +2832 -0
  41. package/dist/editor/App.js.map +1 -0
  42. package/dist/editor/CanvasHud.d.ts +12 -0
  43. package/dist/editor/CanvasHud.d.ts.map +1 -0
  44. package/dist/editor/CanvasHud.js +13 -0
  45. package/dist/editor/CanvasHud.js.map +1 -0
  46. package/dist/editor/CanvasSurface.d.ts +31 -0
  47. package/dist/editor/CanvasSurface.d.ts.map +1 -0
  48. package/dist/editor/CanvasSurface.js +270 -0
  49. package/dist/editor/CanvasSurface.js.map +1 -0
  50. package/dist/editor/CommentPopover.d.ts +17 -0
  51. package/dist/editor/CommentPopover.d.ts.map +1 -0
  52. package/dist/editor/CommentPopover.js +62 -0
  53. package/dist/editor/CommentPopover.js.map +1 -0
  54. package/dist/editor/Comments.d.ts +13 -0
  55. package/dist/editor/Comments.d.ts.map +1 -0
  56. package/dist/editor/Comments.js +41 -0
  57. package/dist/editor/Comments.js.map +1 -0
  58. package/dist/editor/ComponentPage.d.ts +28 -0
  59. package/dist/editor/ComponentPage.d.ts.map +1 -0
  60. package/dist/editor/ComponentPage.js +55 -0
  61. package/dist/editor/ComponentPage.js.map +1 -0
  62. package/dist/editor/ComponentPanel.d.ts +38 -0
  63. package/dist/editor/ComponentPanel.d.ts.map +1 -0
  64. package/dist/editor/ComponentPanel.js +275 -0
  65. package/dist/editor/ComponentPanel.js.map +1 -0
  66. package/dist/editor/Glyph.d.ts +51 -0
  67. package/dist/editor/Glyph.d.ts.map +1 -0
  68. package/dist/editor/Glyph.js +50 -0
  69. package/dist/editor/Glyph.js.map +1 -0
  70. package/dist/editor/History.d.ts +7 -0
  71. package/dist/editor/History.d.ts.map +1 -0
  72. package/dist/editor/History.js +51 -0
  73. package/dist/editor/History.js.map +1 -0
  74. package/dist/editor/Inspector.d.ts +56 -0
  75. package/dist/editor/Inspector.d.ts.map +1 -0
  76. package/dist/editor/Inspector.js +510 -0
  77. package/dist/editor/Inspector.js.map +1 -0
  78. package/dist/editor/LazyMount.d.ts +10 -0
  79. package/dist/editor/LazyMount.d.ts.map +1 -0
  80. package/dist/editor/LazyMount.js +29 -0
  81. package/dist/editor/LazyMount.js.map +1 -0
  82. package/dist/editor/LocaleSwitch.d.ts +3 -0
  83. package/dist/editor/LocaleSwitch.d.ts.map +1 -0
  84. package/dist/editor/LocaleSwitch.js +9 -0
  85. package/dist/editor/LocaleSwitch.js.map +1 -0
  86. package/dist/editor/PreviewFrame.d.ts +10 -0
  87. package/dist/editor/PreviewFrame.d.ts.map +1 -0
  88. package/dist/editor/PreviewFrame.js +22 -0
  89. package/dist/editor/PreviewFrame.js.map +1 -0
  90. package/dist/editor/ProjectIndex.d.ts +12 -0
  91. package/dist/editor/ProjectIndex.d.ts.map +1 -0
  92. package/dist/editor/ProjectIndex.js +43 -0
  93. package/dist/editor/ProjectIndex.js.map +1 -0
  94. package/dist/editor/PromoteComponent.d.ts +28 -0
  95. package/dist/editor/PromoteComponent.d.ts.map +1 -0
  96. package/dist/editor/PromoteComponent.js +33 -0
  97. package/dist/editor/PromoteComponent.js.map +1 -0
  98. package/dist/editor/PromoteForm.d.ts +18 -0
  99. package/dist/editor/PromoteForm.d.ts.map +1 -0
  100. package/dist/editor/PromoteForm.js +35 -0
  101. package/dist/editor/PromoteForm.js.map +1 -0
  102. package/dist/editor/PromoteToken.d.ts +31 -0
  103. package/dist/editor/PromoteToken.d.ts.map +1 -0
  104. package/dist/editor/PromoteToken.js +94 -0
  105. package/dist/editor/PromoteToken.js.map +1 -0
  106. package/dist/editor/StatePreviews.d.ts +28 -0
  107. package/dist/editor/StatePreviews.d.ts.map +1 -0
  108. package/dist/editor/StatePreviews.js +113 -0
  109. package/dist/editor/StatePreviews.js.map +1 -0
  110. package/dist/editor/ValueCombo.d.ts +51 -0
  111. package/dist/editor/ValueCombo.d.ts.map +1 -0
  112. package/dist/editor/ValueCombo.js +260 -0
  113. package/dist/editor/ValueCombo.js.map +1 -0
  114. package/dist/editor/agent/AgentPanel.d.ts +19 -0
  115. package/dist/editor/agent/AgentPanel.d.ts.map +1 -0
  116. package/dist/editor/agent/AgentPanel.js +271 -0
  117. package/dist/editor/agent/AgentPanel.js.map +1 -0
  118. package/dist/editor/agent/Markdown.d.ts +5 -0
  119. package/dist/editor/agent/Markdown.d.ts.map +1 -0
  120. package/dist/editor/agent/Markdown.js +28 -0
  121. package/dist/editor/agent/Markdown.js.map +1 -0
  122. package/dist/editor/agent/agentApi.d.ts +106 -0
  123. package/dist/editor/agent/agentApi.d.ts.map +1 -0
  124. package/dist/editor/agent/agentApi.js +66 -0
  125. package/dist/editor/agent/agentApi.js.map +1 -0
  126. package/dist/editor/agent/toolLines.d.ts +38 -0
  127. package/dist/editor/agent/toolLines.d.ts.map +1 -0
  128. package/dist/editor/agent/toolLines.js +159 -0
  129. package/dist/editor/agent/toolLines.js.map +1 -0
  130. package/dist/editor/agent/useAgent.d.ts +15 -0
  131. package/dist/editor/agent/useAgent.d.ts.map +1 -0
  132. package/dist/editor/agent/useAgent.js +65 -0
  133. package/dist/editor/agent/useAgent.js.map +1 -0
  134. package/dist/editor/api.d.ts +378 -0
  135. package/dist/editor/api.d.ts.map +1 -0
  136. package/dist/editor/api.js +247 -0
  137. package/dist/editor/api.js.map +1 -0
  138. package/dist/editor/camera.d.ts +18 -0
  139. package/dist/editor/camera.d.ts.map +1 -0
  140. package/dist/editor/camera.js +40 -0
  141. package/dist/editor/camera.js.map +1 -0
  142. package/dist/editor/canvas.d.ts +25 -0
  143. package/dist/editor/canvas.d.ts.map +1 -0
  144. package/dist/editor/canvas.js +35 -0
  145. package/dist/editor/canvas.js.map +1 -0
  146. package/dist/editor/changes/ChangesPage.d.ts +25 -0
  147. package/dist/editor/changes/ChangesPage.d.ts.map +1 -0
  148. package/dist/editor/changes/ChangesPage.js +132 -0
  149. package/dist/editor/changes/ChangesPage.js.map +1 -0
  150. package/dist/editor/changes/changeModel.d.ts +25 -0
  151. package/dist/editor/changes/changeModel.d.ts.map +1 -0
  152. package/dist/editor/changes/changeModel.js +81 -0
  153. package/dist/editor/changes/changeModel.js.map +1 -0
  154. package/dist/editor/changes/changeState.d.mts +29 -0
  155. package/dist/editor/changes/changeState.mjs +187 -0
  156. package/dist/editor/chrome/EditorChrome.d.ts +49 -0
  157. package/dist/editor/chrome/EditorChrome.d.ts.map +1 -0
  158. package/dist/editor/chrome/EditorChrome.js +21 -0
  159. package/dist/editor/chrome/EditorChrome.js.map +1 -0
  160. package/dist/editor/drafts.d.ts +46 -0
  161. package/dist/editor/drafts.d.ts.map +1 -0
  162. package/dist/editor/drafts.js +38 -0
  163. package/dist/editor/drafts.js.map +1 -0
  164. package/dist/editor/i18n.d.ts +29 -0
  165. package/dist/editor/i18n.d.ts.map +1 -0
  166. package/dist/editor/i18n.js +2320 -0
  167. package/dist/editor/i18n.js.map +1 -0
  168. package/dist/editor/iconStroke.d.ts +6 -0
  169. package/dist/editor/iconStroke.d.ts.map +1 -0
  170. package/dist/editor/iconStroke.js +6 -0
  171. package/dist/editor/iconStroke.js.map +1 -0
  172. package/dist/editor/main.d.ts +2 -0
  173. package/dist/editor/main.d.ts.map +1 -0
  174. package/dist/editor/main.js +14 -0
  175. package/dist/editor/main.js.map +1 -0
  176. package/dist/editor/model.d.ts +16 -0
  177. package/dist/editor/model.d.ts.map +1 -0
  178. package/dist/editor/model.js +11 -0
  179. package/dist/editor/model.js.map +1 -0
  180. package/dist/editor/reasons.d.ts +44 -0
  181. package/dist/editor/reasons.d.ts.map +1 -0
  182. package/dist/editor/reasons.js +131 -0
  183. package/dist/editor/reasons.js.map +1 -0
  184. package/dist/editor/reviewLifecycle.d.ts +8 -0
  185. package/dist/editor/reviewLifecycle.d.ts.map +1 -0
  186. package/dist/editor/reviewLifecycle.js +21 -0
  187. package/dist/editor/reviewLifecycle.js.map +1 -0
  188. package/dist/editor/styles.css +8737 -0
  189. package/dist/editor/tokenMatch.d.ts +59 -0
  190. package/dist/editor/tokenMatch.d.ts.map +1 -0
  191. package/dist/editor/tokenMatch.js +198 -0
  192. package/dist/editor/tokenMatch.js.map +1 -0
  193. package/dist/editor/tokens/ConsolidatePage.d.ts +16 -0
  194. package/dist/editor/tokens/ConsolidatePage.d.ts.map +1 -0
  195. package/dist/editor/tokens/ConsolidatePage.js +244 -0
  196. package/dist/editor/tokens/ConsolidatePage.js.map +1 -0
  197. package/dist/editor/tokens/TokenActivity.d.ts +18 -0
  198. package/dist/editor/tokens/TokenActivity.d.ts.map +1 -0
  199. package/dist/editor/tokens/TokenActivity.js +18 -0
  200. package/dist/editor/tokens/TokenActivity.js.map +1 -0
  201. package/dist/editor/tokens/TokenDialogs.d.ts +26 -0
  202. package/dist/editor/tokens/TokenDialogs.d.ts.map +1 -0
  203. package/dist/editor/tokens/TokenDialogs.js +119 -0
  204. package/dist/editor/tokens/TokenDialogs.js.map +1 -0
  205. package/dist/editor/tokens/TokenList.d.ts +21 -0
  206. package/dist/editor/tokens/TokenList.d.ts.map +1 -0
  207. package/dist/editor/tokens/TokenList.js +98 -0
  208. package/dist/editor/tokens/TokenList.js.map +1 -0
  209. package/dist/editor/tokens/TokenPage.d.ts +25 -0
  210. package/dist/editor/tokens/TokenPage.d.ts.map +1 -0
  211. package/dist/editor/tokens/TokenPage.js +108 -0
  212. package/dist/editor/tokens/TokenPage.js.map +1 -0
  213. package/dist/editor/tokens/tokenModel.d.ts +35 -0
  214. package/dist/editor/tokens/tokenModel.d.ts.map +1 -0
  215. package/dist/editor/tokens/tokenModel.js +72 -0
  216. package/dist/editor/tokens/tokenModel.js.map +1 -0
  217. package/dist/editor/ui/Button.d.ts +3 -0
  218. package/dist/editor/ui/Button.d.ts.map +1 -0
  219. package/dist/editor/ui/Button.js +6 -0
  220. package/dist/editor/ui/Button.js.map +1 -0
  221. package/dist/editor/ui/CommentBox.d.ts +23 -0
  222. package/dist/editor/ui/CommentBox.d.ts.map +1 -0
  223. package/dist/editor/ui/CommentBox.js +41 -0
  224. package/dist/editor/ui/CommentBox.js.map +1 -0
  225. package/dist/editor/ui/Icon.d.ts +8 -0
  226. package/dist/editor/ui/Icon.d.ts.map +1 -0
  227. package/dist/editor/ui/Icon.js +6 -0
  228. package/dist/editor/ui/Icon.js.map +1 -0
  229. package/dist/editor/ui/IconButton.d.ts +11 -0
  230. package/dist/editor/ui/IconButton.d.ts.map +1 -0
  231. package/dist/editor/ui/IconButton.js +6 -0
  232. package/dist/editor/ui/IconButton.js.map +1 -0
  233. package/dist/editor/ui/NumberInput.d.ts +14 -0
  234. package/dist/editor/ui/NumberInput.d.ts.map +1 -0
  235. package/dist/editor/ui/NumberInput.js +6 -0
  236. package/dist/editor/ui/NumberInput.js.map +1 -0
  237. package/dist/editor/ui/PageLine.d.ts +14 -0
  238. package/dist/editor/ui/PageLine.d.ts.map +1 -0
  239. package/dist/editor/ui/PageLine.js +7 -0
  240. package/dist/editor/ui/PageLine.js.map +1 -0
  241. package/dist/editor/ui/SearchPicker.d.ts +41 -0
  242. package/dist/editor/ui/SearchPicker.d.ts.map +1 -0
  243. package/dist/editor/ui/SearchPicker.js +82 -0
  244. package/dist/editor/ui/SearchPicker.js.map +1 -0
  245. package/dist/editor/ui/Select.d.ts +19 -0
  246. package/dist/editor/ui/Select.d.ts.map +1 -0
  247. package/dist/editor/ui/Select.js +12 -0
  248. package/dist/editor/ui/Select.js.map +1 -0
  249. package/dist/editor/ui/TokenField.d.ts +14 -0
  250. package/dist/editor/ui/TokenField.d.ts.map +1 -0
  251. package/dist/editor/ui/TokenField.js +41 -0
  252. package/dist/editor/ui/TokenField.js.map +1 -0
  253. package/dist/editor/ui/TokenPicker.d.ts +31 -0
  254. package/dist/editor/ui/TokenPicker.d.ts.map +1 -0
  255. package/dist/editor/ui/TokenPicker.js +26 -0
  256. package/dist/editor/ui/TokenPicker.js.map +1 -0
  257. package/dist/editor/useBuildError.d.ts +7 -0
  258. package/dist/editor/useBuildError.d.ts.map +1 -0
  259. package/dist/editor/useBuildError.js +30 -0
  260. package/dist/editor/useBuildError.js.map +1 -0
  261. package/dist/editor/useLatestRequest.d.ts +22 -0
  262. package/dist/editor/useLatestRequest.d.ts.map +1 -0
  263. package/dist/editor/useLatestRequest.js +49 -0
  264. package/dist/editor/useLatestRequest.js.map +1 -0
  265. package/dist/editor-bundle/editor.css +2 -0
  266. package/dist/editor-bundle/editor.js +83 -0
  267. package/dist/editor-ui.d.ts +15 -0
  268. package/dist/editor-ui.d.ts.map +1 -0
  269. package/dist/editor-ui.js +14 -0
  270. package/dist/editor-ui.js.map +1 -0
  271. package/dist/inspector/runtime.d.ts +18 -0
  272. package/dist/inspector/runtime.d.ts.map +1 -0
  273. package/dist/inspector/runtime.js +1280 -0
  274. package/dist/inspector/runtime.js.map +1 -0
  275. package/dist/preview/main.d.ts +3 -0
  276. package/dist/preview/main.d.ts.map +1 -0
  277. package/dist/preview/main.js +320 -0
  278. package/dist/preview/main.js.map +1 -0
  279. package/dist/preview/preview.css +40 -0
  280. package/dist/runtime/index.d.ts +3 -0
  281. package/dist/runtime/index.d.ts.map +1 -0
  282. package/dist/runtime/index.js +2 -0
  283. package/dist/runtime/index.js.map +1 -0
  284. package/dist/shared/buildError.d.mts +27 -0
  285. package/dist/shared/buildError.mjs +141 -0
  286. package/dist/shared/cameraFit.d.mts +16 -0
  287. package/dist/shared/cameraFit.mjs +47 -0
  288. package/dist/shared/canvasLayout.d.mts +13 -0
  289. package/dist/shared/canvasLayout.mjs +171 -0
  290. package/dist/shared/commentShots.d.mts +12 -0
  291. package/dist/shared/commentShots.mjs +53 -0
  292. package/dist/shared/componentExtract.d.mts +43 -0
  293. package/dist/shared/componentExtract.mjs +136 -0
  294. package/dist/shared/componentMeta.d.mts +26 -0
  295. package/dist/shared/componentMeta.mjs +87 -0
  296. package/dist/shared/componentOps.d.mts +70 -0
  297. package/dist/shared/componentOps.mjs +407 -0
  298. package/dist/shared/componentTarget.d.mts +15 -0
  299. package/dist/shared/componentTarget.mjs +58 -0
  300. package/dist/shared/components.d.mts +30 -0
  301. package/dist/shared/components.mjs +106 -0
  302. package/dist/shared/consolidateCategories.d.mts +2 -0
  303. package/dist/shared/consolidateCategories.mjs +6 -0
  304. package/dist/shared/env.d.mts +4 -0
  305. package/dist/shared/env.mjs +18 -0
  306. package/dist/shared/gitChanges.d.mts +2 -0
  307. package/dist/shared/gitChanges.mjs +30 -0
  308. package/dist/shared/oklab.d.mts +6 -0
  309. package/dist/shared/oklab.mjs +56 -0
  310. package/dist/shared/optimizeEntries.d.mts +5 -0
  311. package/dist/shared/optimizeEntries.mjs +24 -0
  312. package/dist/shared/packages.d.mts +11 -0
  313. package/dist/shared/packages.mjs +96 -0
  314. package/dist/shared/projectFiles.d.mts +23 -0
  315. package/dist/shared/projectFiles.mjs +72 -0
  316. package/dist/shared/prompt.d.mts +20 -0
  317. package/dist/shared/prompt.mjs +201 -0
  318. package/dist/shared/proposals.d.mts +11 -0
  319. package/dist/shared/proposals.mjs +42 -0
  320. package/dist/shared/protocol.d.ts +122 -0
  321. package/dist/shared/protocol.d.ts.map +1 -0
  322. package/dist/shared/protocol.js +7 -0
  323. package/dist/shared/protocol.js.map +1 -0
  324. package/dist/shared/reviewArchive.d.mts +4 -0
  325. package/dist/shared/reviewArchive.mjs +19 -0
  326. package/dist/shared/reviewStore.d.mts +30 -0
  327. package/dist/shared/reviewStore.mjs +218 -0
  328. package/dist/shared/reviewVerify.d.mts +21 -0
  329. package/dist/shared/reviewVerify.mjs +158 -0
  330. package/dist/shared/sizeModes.d.mts +15 -0
  331. package/dist/shared/sizeModes.mjs +53 -0
  332. package/dist/shared/sketches.d.mts +10 -0
  333. package/dist/shared/sketches.mjs +64 -0
  334. package/dist/shared/snapshotCheck.d.mts +13 -0
  335. package/dist/shared/snapshotCheck.mjs +81 -0
  336. package/dist/shared/timeout.d.mts +1 -0
  337. package/dist/shared/timeout.mjs +15 -0
  338. package/dist/shared/tokens.d.ts +2 -0
  339. package/dist/shared/tokens.d.ts.map +1 -0
  340. package/dist/shared/tokens.js +2 -0
  341. package/dist/shared/tokens.js.map +1 -0
  342. package/dist/shared/types.d.ts +689 -0
  343. package/dist/shared/types.d.ts.map +1 -0
  344. package/dist/shared/types.js +13 -0
  345. package/dist/shared/types.js.map +1 -0
  346. package/dist/shared/wheelRouting.d.mts +9 -0
  347. package/dist/shared/wheelRouting.mjs +31 -0
  348. package/dist/shared/writeScope.mjs +96 -0
  349. package/dist/snapshots/diff.d.mts +28 -0
  350. package/dist/snapshots/diff.mjs +263 -0
  351. package/dist/snapshots/index.d.mts +110 -0
  352. package/dist/snapshots/index.mjs +638 -0
  353. package/dist/snapshots/render.d.mts +24 -0
  354. package/dist/snapshots/render.mjs +250 -0
  355. package/dist/snapshots/toolOps.d.mts +25 -0
  356. package/dist/snapshots/toolOps.mjs +69 -0
  357. package/dist/tokens/adapters/css.mjs +51 -0
  358. package/dist/tokens/adapters/cssInCode.mjs +314 -0
  359. package/dist/tokens/adapters/oxcShared.mjs +80 -0
  360. package/dist/tokens/adapters/preprocessor.mjs +63 -0
  361. package/dist/tokens/adapters/registry.mjs +53 -0
  362. package/dist/tokens/adapters/tailwindcss.mjs +424 -0
  363. package/dist/tokens/adapters/types.mjs +117 -0
  364. package/dist/tokens/consolidate/index.d.mts +42 -0
  365. package/dist/tokens/consolidate/index.mjs +111 -0
  366. package/dist/tokens/consolidate/normalize.mjs +479 -0
  367. package/dist/tokens/consolidate/plan.mjs +726 -0
  368. package/dist/tokens/consolidate/scan.mjs +928 -0
  369. package/dist/tokens/extract.mjs +441 -0
  370. package/dist/tokens/moduleData.d.mts +14 -0
  371. package/dist/tokens/moduleData.mjs +32 -0
  372. package/dist/tokens/opLock.d.mts +4 -0
  373. package/dist/tokens/opLock.mjs +108 -0
  374. package/dist/tokens/ops.d.mts +71 -0
  375. package/dist/tokens/ops.mjs +1511 -0
  376. package/dist/tokens/pipeline.mjs +813 -0
  377. package/dist/tokens/report.d.mts +47 -0
  378. package/dist/tokens/report.mjs +257 -0
  379. package/dist/tokens/rewrite/code.mjs +172 -0
  380. package/dist/tokens/rewrite/css.mjs +154 -0
  381. package/dist/tokens/rewrite/index.mjs +244 -0
  382. package/dist/tokens/rewrite/tailwind.mjs +288 -0
  383. package/dist/tokens/rewrite/text.mjs +116 -0
  384. package/dist/tokens/rewrite/value.mjs +115 -0
  385. package/dist/tokens/usage.d.mts +97 -0
  386. package/dist/tokens/usage.mjs +680 -0
  387. package/dist/vite/agent.d.ts +21 -0
  388. package/dist/vite/agent.d.ts.map +1 -0
  389. package/dist/vite/agent.js +165 -0
  390. package/dist/vite/agent.js.map +1 -0
  391. package/dist/vite/events.d.ts +27 -0
  392. package/dist/vite/events.d.ts.map +1 -0
  393. package/dist/vite/events.js +156 -0
  394. package/dist/vite/events.js.map +1 -0
  395. package/dist/vite/layout.d.ts +2 -0
  396. package/dist/vite/layout.d.ts.map +1 -0
  397. package/dist/vite/layout.js +4 -0
  398. package/dist/vite/layout.js.map +1 -0
  399. package/dist/vite/plugin.d.ts +40 -0
  400. package/dist/vite/plugin.d.ts.map +1 -0
  401. package/dist/vite/plugin.js +1255 -0
  402. package/dist/vite/plugin.js.map +1 -0
  403. package/dist/vite/requestGuard.d.mts +3 -0
  404. package/dist/vite/requestGuard.mjs +43 -0
  405. package/dist/vite/review.d.ts +11 -0
  406. package/dist/vite/review.d.ts.map +1 -0
  407. package/dist/vite/review.js +283 -0
  408. package/dist/vite/review.js.map +1 -0
  409. package/package.json +104 -4
  410. package/skills/seji/SKILL.md +395 -0
  411. package/skills/seji-authoring/SKILL.md +397 -0
  412. package/skills/seji-tokens/SKILL.md +432 -0
  413. package/README.md +0 -3
@@ -0,0 +1,689 @@
1
+ export type Rect = {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ };
7
+ export type VariableRef = {
8
+ property: string;
9
+ token: string;
10
+ value: string;
11
+ };
12
+ export type InspectorStyle = {
13
+ fontFamily: string;
14
+ fontSize: string;
15
+ fontWeight: string;
16
+ lineHeight: string;
17
+ letterSpacing: string;
18
+ color: string;
19
+ backgroundColor: string;
20
+ borderWidth: string;
21
+ borderStyle: string;
22
+ borderColor: string;
23
+ borderRadius: string;
24
+ opacity: string;
25
+ boxShadow: string;
26
+ padding: string;
27
+ display: string;
28
+ flexDirection: string;
29
+ flexWrap: string;
30
+ gap: string;
31
+ alignItems: string;
32
+ justifyContent: string;
33
+ textAlign: string;
34
+ };
35
+ export type ForcedState = 'hover' | 'active' | 'focus' | 'disabled';
36
+ /** One color used inside a selection (the node itself or a descendant). */
37
+ export type SelectionColor = {
38
+ id: number;
39
+ path: string;
40
+ anchor: string | null;
41
+ label: string;
42
+ property: string;
43
+ value: string;
44
+ token?: string;
45
+ };
46
+ export type NodeLayout = {
47
+ widthMode: 'fixed' | 'fill' | 'hug';
48
+ parentRow: boolean;
49
+ width: number;
50
+ /** Height as authored: no explicit height reads as hug (see shared/sizeModes.mjs). */
51
+ heightMode?: 'fixed' | 'fill' | 'hug';
52
+ height?: number;
53
+ /** The parent's layout: row / column flex or block. */
54
+ parentKind?: 'row' | 'column' | 'block';
55
+ };
56
+ export type InspectorNode = {
57
+ id: number;
58
+ parentId: number | null;
59
+ tag: string;
60
+ name: string;
61
+ anchor: string | null;
62
+ ownAnchor?: string | null;
63
+ component?: string | null;
64
+ componentRoot?: boolean;
65
+ components?: string[];
66
+ source?: string | null;
67
+ variables?: VariableRef[];
68
+ path: string;
69
+ free: boolean;
70
+ freeRect?: Rect;
71
+ children: number[];
72
+ rect?: Rect;
73
+ html?: string;
74
+ text?: string;
75
+ styles?: InspectorStyle;
76
+ layout?: NodeLayout;
77
+ colors?: SelectionColor[];
78
+ /** Pseudo states that have matching rules and can be forced in the preview. */
79
+ states?: ForcedState[];
80
+ /** Pseudo state currently forced on this node in the preview. */
81
+ state?: ForcedState | null;
82
+ };
83
+ export type NodeRef = {
84
+ id: number;
85
+ anchor: string | null;
86
+ tag: string;
87
+ name: string;
88
+ component?: string | null;
89
+ components?: string[];
90
+ source?: string | null;
91
+ path: string;
92
+ html: string;
93
+ rect?: Rect;
94
+ freeRect?: Rect;
95
+ };
96
+ export type TokenValue = {
97
+ name: string;
98
+ value: string;
99
+ };
100
+ export type FlowSnapshot = {
101
+ state: string;
102
+ history: string[];
103
+ };
104
+ export type ChangeStatus = 'open' | 'in_progress' | 'resolved';
105
+ export type ChangeMeta = {
106
+ status?: ChangeStatus;
107
+ resolvedAt?: string;
108
+ updatedAt?: string;
109
+ agentReply?: string;
110
+ };
111
+ export type SessionTokenChange = ChangeMeta & {
112
+ name: string;
113
+ from: string;
114
+ value: string;
115
+ };
116
+ export type SessionStructureChange = ChangeMeta & {
117
+ op: 'move';
118
+ node: NodeRef;
119
+ target?: NodeRef;
120
+ parent: NodeRef | null;
121
+ index: number;
122
+ };
123
+ export type SessionFreeChange = ChangeMeta & {
124
+ node: NodeRef;
125
+ from: Rect;
126
+ to: Rect;
127
+ };
128
+ export type SessionStyle = ChangeMeta & {
129
+ node: NodeRef;
130
+ property: string;
131
+ value: string;
132
+ from?: string;
133
+ token?: string;
134
+ };
135
+ export type SessionSuggestion = ChangeMeta & {
136
+ node: NodeRef;
137
+ property: string;
138
+ value: string;
139
+ token: string;
140
+ createdAt: string;
141
+ };
142
+ export type SessionCommentReply = {
143
+ id: string;
144
+ body: string;
145
+ author: 'agent' | 'human';
146
+ createdAt: string;
147
+ };
148
+ export type SessionComment = ChangeMeta & {
149
+ id: string;
150
+ body: string;
151
+ createdAt: string;
152
+ node: NodeRef;
153
+ resolved?: boolean;
154
+ resolvedAt?: string;
155
+ editedAt?: string;
156
+ replies?: SessionCommentReply[];
157
+ };
158
+ export type ArchiveItem = {
159
+ id: string;
160
+ design: string;
161
+ frame: string;
162
+ kind: 'token' | 'style' | 'free' | 'structure' | 'suggestion' | 'comment';
163
+ title: string;
164
+ change: unknown;
165
+ resolvedAt: string;
166
+ archivedAt: string;
167
+ };
168
+ export type SessionHistory = {
169
+ version: 1;
170
+ design: string;
171
+ updatedAt: string;
172
+ items: ArchiveItem[];
173
+ };
174
+ export type Session = {
175
+ version: 1;
176
+ design: string;
177
+ frame: string;
178
+ updatedAt: string;
179
+ tokens: SessionTokenChange[];
180
+ structure: SessionStructureChange[];
181
+ free: SessionFreeChange[];
182
+ comments: SessionComment[];
183
+ styles?: SessionStyle[];
184
+ suggestions?: SessionSuggestion[];
185
+ notes?: string;
186
+ };
187
+ export declare const emptySession: (design: string, frame: string) => Session;
188
+ export type CanvasPosition = {
189
+ x: number;
190
+ y: number;
191
+ };
192
+ export type CanvasCamera = {
193
+ x: number;
194
+ y: number;
195
+ zoom: number;
196
+ };
197
+ export type CanvasLayout = {
198
+ version: 1;
199
+ positions: Record<string, CanvasPosition>;
200
+ /** The last camera saved (a 0.4.3 cache has only this one). */
201
+ camera?: CanvasCamera;
202
+ /** The camera of each page, by page id. */
203
+ cameras?: Record<string, CanvasCamera>;
204
+ };
205
+ export type DesignComponent = {
206
+ name: string;
207
+ exportName: string;
208
+ file: string;
209
+ line?: number;
210
+ };
211
+ export type ComponentPage = {
212
+ design: string;
213
+ page: string;
214
+ };
215
+ export type ComponentGroup = {
216
+ id: string;
217
+ label: string;
218
+ labelZh?: string;
219
+ components: DesignComponent[];
220
+ };
221
+ export type ComponentLayer = 'base' | 'composite';
222
+ export type ComponentDeprecation = {
223
+ reason: string;
224
+ replacement: string | null;
225
+ at?: string;
226
+ };
227
+ export type ComponentSummary = {
228
+ name: string;
229
+ file: string;
230
+ line?: number;
231
+ /** null when the project does not configure component layers. */
232
+ layer: ComponentLayer | null;
233
+ page: ComponentPage | null;
234
+ description?: string;
235
+ deprecated: ComponentDeprecation | null;
236
+ /** Distinct tokens the component's styles reference. */
237
+ tokens: number;
238
+ /** Hard-coded color literals in the component's styles. */
239
+ hardcoded: number;
240
+ /** Primitive-tier tokens its styles use directly (should go through the semantic layer). */
241
+ primitive: number;
242
+ /** Pending `component` review items for it, across every design ledger. */
243
+ pending: number;
244
+ /** An agent proposal for it is waiting for a decision. */
245
+ proposed: boolean;
246
+ };
247
+ export type ComponentList = {
248
+ /** True when design/components.json configures `layers.base`. */
249
+ layers: boolean;
250
+ components: ComponentSummary[];
251
+ };
252
+ /** One property (and pseudo state) a token styles on a component. */
253
+ export type ComponentTokenUse = {
254
+ property: string;
255
+ state?: string;
256
+ count: number;
257
+ file: string;
258
+ line?: number;
259
+ match: string;
260
+ };
261
+ /** One token a component's styles use, with every property it styles (one row per token). */
262
+ export type ComponentTokenRow = {
263
+ token: string;
264
+ path?: string;
265
+ tier?: string;
266
+ count: number;
267
+ properties: ComponentTokenUse[];
268
+ file: string;
269
+ line?: number;
270
+ match: string;
271
+ /** `primitive`: a base-layer token used directly; use a semantic token instead. */
272
+ warning?: 'primitive';
273
+ /** Semantic tokens that alias it (`alias`) or have the same value (`value`). */
274
+ suggestions?: Array<{
275
+ token: string;
276
+ path: string;
277
+ via: 'alias' | 'value';
278
+ }>;
279
+ };
280
+ export type ComponentLiteralRow = {
281
+ property: string;
282
+ state?: string;
283
+ value: string;
284
+ count: number;
285
+ file: string;
286
+ line?: number;
287
+ match: string;
288
+ /** Tokens whose value is exactly this literal. */
289
+ matches: string[];
290
+ };
291
+ export type ComponentReport = ComponentSummary & {
292
+ tokenRows: ComponentTokenRow[];
293
+ literals: ComponentLiteralRow[];
294
+ summary: {
295
+ tokens: number;
296
+ primitive: number;
297
+ hardcoded: number;
298
+ };
299
+ /** Deprecated components that name this one as their replacement. */
300
+ replaces: Array<{
301
+ name: string;
302
+ at?: string;
303
+ }>;
304
+ /** Pending `component` review items for it. */
305
+ items: ReviewItem[];
306
+ /** Names it had before pending tool renames: frames may still render it under them. */
307
+ renamedFrom: string[];
308
+ };
309
+ export type ReviewScope = 'design' | 'page' | 'frame' | 'component' | 'editor';
310
+ export type ReviewStatus = 'open' | 'in_progress' | 'resolved' | 'archived';
311
+ export type ReviewKind = 'token' | 'style' | 'free' | 'structure' | 'suggestion' | 'comment' | 'component';
312
+ /**
313
+ * What a `component` item is about. `rename` / `merge` (and `deprecate` with replace usages)
314
+ * are executed by the tool (see ComponentOpRecord); the rest ask the agent for code changes.
315
+ * `extract` (Promote to component) asks for a new component made from a selected element.
316
+ */
317
+ export type ComponentAction = 'rename' | 'merge' | 'deprecate' | 'undeprecate' | 'delete' | 'tidy' | 'extract';
318
+ /** Where a Promote to component selection comes from: the design's code, or an app component. */
319
+ export type ExtractFrom = 'design' | 'component';
320
+ export type ReviewTarget = {
321
+ type: 'node';
322
+ node: NodeRef;
323
+ } | {
324
+ type: 'token';
325
+ token: string;
326
+ } | {
327
+ type: 'component';
328
+ component: string;
329
+ } | {
330
+ type: 'editor';
331
+ area: string;
332
+ };
333
+ export type ReviewReply = {
334
+ id: string;
335
+ body: string;
336
+ author: 'agent' | 'human';
337
+ createdAt: string;
338
+ };
339
+ export type ReviewItem = {
340
+ id: string;
341
+ design: string;
342
+ kind: ReviewKind;
343
+ scope: ReviewScope;
344
+ page?: string;
345
+ frame?: string;
346
+ target: ReviewTarget;
347
+ property?: string;
348
+ /** Pseudo state a style applies to (hover/active/focus/disabled); absent = default. */
349
+ state?: ForcedState;
350
+ token?: string;
351
+ from?: unknown;
352
+ to?: unknown;
353
+ body?: string;
354
+ thread?: ReviewReply[];
355
+ status: ReviewStatus;
356
+ author?: 'human' | 'agent';
357
+ rationale?: string;
358
+ proposalDecision?: 'approved' | 'rejected';
359
+ decisionNote?: string;
360
+ agentReply?: string;
361
+ source?: string;
362
+ sourceHash?: string;
363
+ tokenType?: string;
364
+ tokenAction?: 'create' | 'update' | 'merge' | 'deprecate' | 'alias' | 'rename' | 'delete' | 'describe' | 'replace-literal' | 'consolidate';
365
+ tokenAlias?: string;
366
+ tokenTier?: string;
367
+ /** Usage note for a new token; written to the DTCG `$description`. */
368
+ tokenDescription?: string;
369
+ /** Hard-coded literal this token replaces, and the files that still contain it. */
370
+ replaces?: {
371
+ value: string;
372
+ files: string[];
373
+ };
374
+ /** `component` items: the action, and for deprecate whether usages move now or later. */
375
+ componentAction?: ComponentAction;
376
+ componentMode?: 'replace' | 'mark';
377
+ /** `component` tidy items: frame ids on the component page that should move elsewhere. */
378
+ frames?: string[];
379
+ /**
380
+ * `component` extract items (Promote to component): `from` is `design` | `component`, `to`
381
+ * the new name, `node` the selected element (as on style items), `componentDescription` the
382
+ * usage note, `dir` the target directory; `parent` / `parentFile` for `from: 'component'`.
383
+ */
384
+ node?: Partial<NodeRef> & {
385
+ path?: string;
386
+ };
387
+ /**
388
+ * `token` create items from the Inspector's "Suggest promoting to token": the name
389
+ * (`target.token`, empty) and `tokenTier` are left for the agent, which writes them on the
390
+ * item; `node` / `property` say where the literal (`to`, `replaces`) was seen.
391
+ */
392
+ tokenSuggested?: boolean;
393
+ componentDescription?: string;
394
+ dir?: string;
395
+ parent?: string;
396
+ parentFile?: string;
397
+ /** Set when the tool itself executed the token operation (see TokenOpRecord). */
398
+ tokenOp?: TokenOpRecord;
399
+ /** Set when the tool itself rewrote the code for a component action (see ComponentOpRecord). */
400
+ componentOp?: ComponentOpRecord;
401
+ verifiedAt?: string;
402
+ /** Last headless check run (`seji verify`). Tool-owned. */
403
+ checks?: ReviewChecks;
404
+ /** Before/after snapshot comparison of the screens this item affects. Tool-owned. */
405
+ snapshots?: ReviewSnapshots;
406
+ /** Comments: whether the target's source was a sketch (under design/) or product component when posted. */
407
+ targetKind?: 'sketch' | 'product';
408
+ /** Comments: git HEAD when created / moved to in_progress; resolve diffs against it. Tool-owned. */
409
+ baseCommit?: string;
410
+ /** Root-relative PNG of the frame as the person saw it when the comment was posted. Tool-owned. */
411
+ shot?: string;
412
+ createdAt: string;
413
+ updatedAt: string;
414
+ resolvedAt?: string;
415
+ archivedAt?: string;
416
+ };
417
+ /** A place the tool rewrote, or one it left for the agent (with `reason`). */
418
+ export type TokenOpPlace = {
419
+ file: string;
420
+ line: number;
421
+ column: number;
422
+ property?: string;
423
+ scheme?: string;
424
+ from?: string;
425
+ to?: string;
426
+ reason?: string;
427
+ text?: string;
428
+ };
429
+ /** A translatable reason: the editor renders the text from `code` + `params` (the tool also sends English). */
430
+ export type ReasonCode = {
431
+ code: string;
432
+ params?: Record<string, unknown>;
433
+ };
434
+ /** What a tool-executed token operation did (`seji tokens rename|merge|…`). */
435
+ export type TokenOpRecord = {
436
+ op: 'rename' | 'merge' | 'deprecate' | 'delete' | 'describe' | 'set' | 'create' | 'replace-literal' | 'consolidate';
437
+ batchId: string;
438
+ by: 'tool';
439
+ /** Places changed by the tool (token sources + code). */
440
+ changed: number;
441
+ /** Places left for the agent (`leftovers`). */
442
+ left: number;
443
+ summary: string;
444
+ mode?: 'mark-only' | 'replace-all';
445
+ values?: {
446
+ source: string;
447
+ target: string;
448
+ kept: 'target' | 'source';
449
+ result: string;
450
+ };
451
+ /** End state verification checks: CSS names present/absent, aliases, values. */
452
+ expect: {
453
+ present?: string[];
454
+ absent?: string[];
455
+ aliases?: Record<string, string>;
456
+ values?: Record<string, string>;
457
+ };
458
+ tokenChanges: Array<{
459
+ file: string;
460
+ token: string;
461
+ change: string;
462
+ from?: unknown;
463
+ to?: unknown;
464
+ reason?: string;
465
+ }>;
466
+ changes: TokenOpPlace[];
467
+ changesTruncated?: number;
468
+ leftovers: TokenOpPlace[];
469
+ notes?: string[];
470
+ /** `notes` as codes, in the same order. */
471
+ noteCodes?: ReasonCode[];
472
+ /**
473
+ * The operation's arguments, structured (`summary` is the English form): rename/merge
474
+ * `{ from, to, alias, … }`, deprecate `{ token, replacement, mode, reason }`, set
475
+ * `{ token, value }`, create `{ token, cssName, tier, value }`, consolidate `{ plan, rows, counts }`…
476
+ */
477
+ args?: Record<string, unknown>;
478
+ /** `consolidate`: the plan (design/.consolidate/<plan>.json) and what each applied row did. */
479
+ plan?: string;
480
+ rows?: Array<{
481
+ row: string;
482
+ category: string;
483
+ action: 'reuse' | 'create' | 'merge';
484
+ token: string;
485
+ cssName: string;
486
+ values: string[];
487
+ merged?: string[];
488
+ found: number;
489
+ replaceable: number;
490
+ visibleChange?: Array<{
491
+ token?: string;
492
+ from: string;
493
+ to: string;
494
+ occurrences?: number;
495
+ delta: Record<string, number | boolean>;
496
+ }>;
497
+ }>;
498
+ revertedAt?: string;
499
+ };
500
+ export type ReviewCheckStatus = 'pass' | 'fail' | 'skip' | 'review' | 'pending';
501
+ export type ReviewCheck = {
502
+ status: ReviewCheckStatus;
503
+ detail: string;
504
+ /** `detail` as a code (+ params) for the editor to translate. */
505
+ code?: string;
506
+ params?: Record<string, unknown>;
507
+ [key: string]: unknown;
508
+ };
509
+ export type ReviewChecks = {
510
+ checkedAt: string;
511
+ /** The built token source holds the requested value / alias. */
512
+ values: ReviewCheck;
513
+ /** References implied by the change are all updated (usage index). */
514
+ references: ReviewCheck;
515
+ /** Snapshot comparison: pass / review (decisions pending) / fail (rejected) / pending / skip. */
516
+ snapshots: ReviewCheck;
517
+ };
518
+ export type SnapshotBox = {
519
+ x: number;
520
+ y: number;
521
+ width: number;
522
+ height: number;
523
+ pixels: number;
524
+ };
525
+ export type SnapshotFrame = {
526
+ /** `<design>/<page>__<frame>` */
527
+ key: string;
528
+ design: string;
529
+ page: string;
530
+ frame: string;
531
+ title?: string;
532
+ size: [number, number];
533
+ /** Root-relative PNG paths. */
534
+ before?: string;
535
+ after?: string;
536
+ diff?: string;
537
+ beforeHash?: string;
538
+ afterHash?: string;
539
+ status: 'pending' | 'changed' | 'unchanged' | 'missing' | 'error';
540
+ /** Captures did not settle on one image (animation, late resource, time-dependent content). */
541
+ unstable?: boolean;
542
+ error?: string;
543
+ diffPixels?: number;
544
+ diffRatio?: number;
545
+ boxes?: SnapshotBox[];
546
+ sizeChange?: {
547
+ before: [number, number];
548
+ after: [number, number];
549
+ };
550
+ decision?: 'accepted' | 'rejected';
551
+ reason?: string;
552
+ decidedAt?: string;
553
+ decidedHash?: string;
554
+ };
555
+ export type ReviewSnapshots = {
556
+ /** Set while a baseline capture runs; cleared when it finishes. */
557
+ capturingSince?: string;
558
+ baselineAt?: string;
559
+ comparedAt?: string;
560
+ targets: Array<{
561
+ design: string;
562
+ page?: string;
563
+ frame?: string;
564
+ reason: string;
565
+ }>;
566
+ truncated?: number;
567
+ missing?: Array<{
568
+ design: string;
569
+ page?: string;
570
+ frame?: string;
571
+ reason: string;
572
+ error: string;
573
+ }>;
574
+ /** Differences first. */
575
+ frames?: SnapshotFrame[];
576
+ };
577
+ /** A file the tool moved as part of a component rename. */
578
+ export type ComponentOpMove = {
579
+ from: string;
580
+ to: string;
581
+ };
582
+ /**
583
+ * What a tool-executed component operation did (`seji component rename|merge|
584
+ * deprecate --replace-all`): every place it rewrote with the AST, and what it left.
585
+ */
586
+ export type ComponentOpRecord = {
587
+ op: 'rename' | 'merge' | 'replace';
588
+ batchId: string;
589
+ by: 'tool';
590
+ changed: number;
591
+ left: number;
592
+ summary: string;
593
+ files: Array<{
594
+ file: string;
595
+ changed: number;
596
+ left: number;
597
+ }>;
598
+ moves: ComponentOpMove[];
599
+ changes: TokenOpPlace[];
600
+ changesTruncated?: number;
601
+ leftovers: TokenOpPlace[];
602
+ notes?: string[];
603
+ revertedAt?: string;
604
+ };
605
+ /** `dryRun` / result of a tool-executed component operation, as shown in the dialog. */
606
+ export type ComponentOpReport = {
607
+ op: ComponentOpRecord['op'];
608
+ dryRun: boolean;
609
+ component: string;
610
+ to: string;
611
+ design?: string;
612
+ summary: string;
613
+ counts: {
614
+ changed: number;
615
+ leftovers: number;
616
+ files: number;
617
+ };
618
+ files: ComponentOpRecord['files'];
619
+ moves: ComponentOpMove[];
620
+ changes: TokenOpPlace[];
621
+ leftovers: TokenOpPlace[];
622
+ notes?: string[];
623
+ batchId?: string;
624
+ itemId?: string;
625
+ status?: ReviewStatus;
626
+ };
627
+ export type ReviewBatch = {
628
+ id: string;
629
+ design: string;
630
+ createdAt: string;
631
+ itemIds: string[];
632
+ /**
633
+ * Tool batches keep undo edits so `tokens revert <id>` / `component revert <id>` restore
634
+ * the files (component batches also list the files they moved).
635
+ */
636
+ kind?: 'token-op' | 'component-op';
637
+ op?: TokenOpRecord['op'] | ComponentOpRecord['op'];
638
+ summary?: string;
639
+ revert?: {
640
+ files: Array<{
641
+ file: string;
642
+ beforeHash: string;
643
+ afterHash: string;
644
+ undo: Array<{
645
+ start: number;
646
+ end: number;
647
+ text: string;
648
+ }>;
649
+ }>;
650
+ moves?: ComponentOpMove[];
651
+ };
652
+ revertedAt?: string;
653
+ revertSkipped?: Array<{
654
+ file: string;
655
+ reason: string;
656
+ }>;
657
+ };
658
+ export type ReviewLog = {
659
+ version: 1;
660
+ design: string;
661
+ updatedAt: string;
662
+ items: ReviewItem[];
663
+ batches: ReviewBatch[];
664
+ };
665
+ export type ReviewOp = {
666
+ type: 'upsert';
667
+ item: ReviewItem;
668
+ } | {
669
+ type: 'remove';
670
+ id: string;
671
+ } | {
672
+ type: 'archive';
673
+ ids: string[];
674
+ archivedAt: string;
675
+ } | {
676
+ type: 'patch';
677
+ id: string;
678
+ patch: Partial<ReviewItem>;
679
+ } | {
680
+ type: 'batch';
681
+ batch: ReviewBatch;
682
+ };
683
+ export type TokenOverride = {
684
+ name: string;
685
+ from: string;
686
+ value: string;
687
+ status?: ReviewStatus;
688
+ };
689
+ //# sourceMappingURL=types.d.ts.map