@rien7/seji 0.0.0 → 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.
- package/bin/design-surface.mjs +6 -0
- package/bin/postinstall.mjs +19 -0
- package/bin/seji.mjs +573 -0
- package/dist/agent/host.d.mts +34 -0
- package/dist/agent/host.mjs +387 -0
- package/dist/agent/messages.d.mts +9 -0
- package/dist/agent/messages.mjs +70 -0
- package/dist/agent/runtimes.mjs +157 -0
- package/dist/cli/app.mjs +321 -0
- package/dist/cli/appScan.mjs +284 -0
- package/dist/cli/catalog.mjs +78 -0
- package/dist/cli/component.mjs +165 -0
- package/dist/cli/consolidate.mjs +159 -0
- package/dist/cli/cssImport.mjs +68 -0
- package/dist/cli/dev.mjs +335 -0
- package/dist/cli/doctor.mjs +306 -0
- package/dist/cli/init.mjs +338 -0
- package/dist/cli/legacyNames.mjs +266 -0
- package/dist/cli/migrate.mjs +163 -0
- package/dist/cli/prompt.mjs +34 -0
- package/dist/cli/propose.mjs +208 -0
- package/dist/cli/providers.mjs +344 -0
- package/dist/cli/reviewOps.mjs +110 -0
- package/dist/cli/semver.mjs +45 -0
- package/dist/cli/setup.mjs +357 -0
- package/dist/cli/sketches.mjs +47 -0
- package/dist/cli/skills.mjs +150 -0
- package/dist/cli/snapshot.mjs +107 -0
- package/dist/cli/tokenOps.mjs +120 -0
- package/dist/cli/types.mjs +191 -0
- package/dist/cli/updater.mjs +274 -0
- package/dist/components/astIndex.mjs +992 -0
- package/dist/components/ops.mjs +1069 -0
- package/dist/editor/AgentProposalCard.d.ts +10 -0
- package/dist/editor/AgentProposalCard.d.ts.map +1 -0
- package/dist/editor/AgentProposalCard.js +31 -0
- package/dist/editor/AgentProposalCard.js.map +1 -0
- package/dist/editor/App.d.ts +2 -0
- package/dist/editor/App.d.ts.map +1 -0
- package/dist/editor/App.js +2832 -0
- package/dist/editor/App.js.map +1 -0
- package/dist/editor/CanvasHud.d.ts +12 -0
- package/dist/editor/CanvasHud.d.ts.map +1 -0
- package/dist/editor/CanvasHud.js +13 -0
- package/dist/editor/CanvasHud.js.map +1 -0
- package/dist/editor/CanvasSurface.d.ts +31 -0
- package/dist/editor/CanvasSurface.d.ts.map +1 -0
- package/dist/editor/CanvasSurface.js +270 -0
- package/dist/editor/CanvasSurface.js.map +1 -0
- package/dist/editor/CommentPopover.d.ts +17 -0
- package/dist/editor/CommentPopover.d.ts.map +1 -0
- package/dist/editor/CommentPopover.js +62 -0
- package/dist/editor/CommentPopover.js.map +1 -0
- package/dist/editor/Comments.d.ts +13 -0
- package/dist/editor/Comments.d.ts.map +1 -0
- package/dist/editor/Comments.js +41 -0
- package/dist/editor/Comments.js.map +1 -0
- package/dist/editor/ComponentPage.d.ts +28 -0
- package/dist/editor/ComponentPage.d.ts.map +1 -0
- package/dist/editor/ComponentPage.js +55 -0
- package/dist/editor/ComponentPage.js.map +1 -0
- package/dist/editor/ComponentPanel.d.ts +38 -0
- package/dist/editor/ComponentPanel.d.ts.map +1 -0
- package/dist/editor/ComponentPanel.js +275 -0
- package/dist/editor/ComponentPanel.js.map +1 -0
- package/dist/editor/Glyph.d.ts +51 -0
- package/dist/editor/Glyph.d.ts.map +1 -0
- package/dist/editor/Glyph.js +50 -0
- package/dist/editor/Glyph.js.map +1 -0
- package/dist/editor/History.d.ts +7 -0
- package/dist/editor/History.d.ts.map +1 -0
- package/dist/editor/History.js +51 -0
- package/dist/editor/History.js.map +1 -0
- package/dist/editor/Inspector.d.ts +56 -0
- package/dist/editor/Inspector.d.ts.map +1 -0
- package/dist/editor/Inspector.js +510 -0
- package/dist/editor/Inspector.js.map +1 -0
- package/dist/editor/LazyMount.d.ts +10 -0
- package/dist/editor/LazyMount.d.ts.map +1 -0
- package/dist/editor/LazyMount.js +29 -0
- package/dist/editor/LazyMount.js.map +1 -0
- package/dist/editor/LocaleSwitch.d.ts +3 -0
- package/dist/editor/LocaleSwitch.d.ts.map +1 -0
- package/dist/editor/LocaleSwitch.js +9 -0
- package/dist/editor/LocaleSwitch.js.map +1 -0
- package/dist/editor/PreviewFrame.d.ts +10 -0
- package/dist/editor/PreviewFrame.d.ts.map +1 -0
- package/dist/editor/PreviewFrame.js +22 -0
- package/dist/editor/PreviewFrame.js.map +1 -0
- package/dist/editor/ProjectIndex.d.ts +12 -0
- package/dist/editor/ProjectIndex.d.ts.map +1 -0
- package/dist/editor/ProjectIndex.js +43 -0
- package/dist/editor/ProjectIndex.js.map +1 -0
- package/dist/editor/PromoteComponent.d.ts +28 -0
- package/dist/editor/PromoteComponent.d.ts.map +1 -0
- package/dist/editor/PromoteComponent.js +33 -0
- package/dist/editor/PromoteComponent.js.map +1 -0
- package/dist/editor/PromoteForm.d.ts +18 -0
- package/dist/editor/PromoteForm.d.ts.map +1 -0
- package/dist/editor/PromoteForm.js +35 -0
- package/dist/editor/PromoteForm.js.map +1 -0
- package/dist/editor/PromoteToken.d.ts +31 -0
- package/dist/editor/PromoteToken.d.ts.map +1 -0
- package/dist/editor/PromoteToken.js +94 -0
- package/dist/editor/PromoteToken.js.map +1 -0
- package/dist/editor/StatePreviews.d.ts +28 -0
- package/dist/editor/StatePreviews.d.ts.map +1 -0
- package/dist/editor/StatePreviews.js +113 -0
- package/dist/editor/StatePreviews.js.map +1 -0
- package/dist/editor/ValueCombo.d.ts +51 -0
- package/dist/editor/ValueCombo.d.ts.map +1 -0
- package/dist/editor/ValueCombo.js +260 -0
- package/dist/editor/ValueCombo.js.map +1 -0
- package/dist/editor/agent/AgentPanel.d.ts +19 -0
- package/dist/editor/agent/AgentPanel.d.ts.map +1 -0
- package/dist/editor/agent/AgentPanel.js +271 -0
- package/dist/editor/agent/AgentPanel.js.map +1 -0
- package/dist/editor/agent/Markdown.d.ts +5 -0
- package/dist/editor/agent/Markdown.d.ts.map +1 -0
- package/dist/editor/agent/Markdown.js +28 -0
- package/dist/editor/agent/Markdown.js.map +1 -0
- package/dist/editor/agent/agentApi.d.ts +106 -0
- package/dist/editor/agent/agentApi.d.ts.map +1 -0
- package/dist/editor/agent/agentApi.js +66 -0
- package/dist/editor/agent/agentApi.js.map +1 -0
- package/dist/editor/agent/toolLines.d.ts +38 -0
- package/dist/editor/agent/toolLines.d.ts.map +1 -0
- package/dist/editor/agent/toolLines.js +159 -0
- package/dist/editor/agent/toolLines.js.map +1 -0
- package/dist/editor/agent/useAgent.d.ts +15 -0
- package/dist/editor/agent/useAgent.d.ts.map +1 -0
- package/dist/editor/agent/useAgent.js +65 -0
- package/dist/editor/agent/useAgent.js.map +1 -0
- package/dist/editor/api.d.ts +378 -0
- package/dist/editor/api.d.ts.map +1 -0
- package/dist/editor/api.js +247 -0
- package/dist/editor/api.js.map +1 -0
- package/dist/editor/camera.d.ts +18 -0
- package/dist/editor/camera.d.ts.map +1 -0
- package/dist/editor/camera.js +40 -0
- package/dist/editor/camera.js.map +1 -0
- package/dist/editor/canvas.d.ts +25 -0
- package/dist/editor/canvas.d.ts.map +1 -0
- package/dist/editor/canvas.js +35 -0
- package/dist/editor/canvas.js.map +1 -0
- package/dist/editor/changes/ChangesPage.d.ts +25 -0
- package/dist/editor/changes/ChangesPage.d.ts.map +1 -0
- package/dist/editor/changes/ChangesPage.js +132 -0
- package/dist/editor/changes/ChangesPage.js.map +1 -0
- package/dist/editor/changes/changeModel.d.ts +25 -0
- package/dist/editor/changes/changeModel.d.ts.map +1 -0
- package/dist/editor/changes/changeModel.js +81 -0
- package/dist/editor/changes/changeModel.js.map +1 -0
- package/dist/editor/changes/changeState.d.mts +29 -0
- package/dist/editor/changes/changeState.mjs +187 -0
- package/dist/editor/chrome/EditorChrome.d.ts +49 -0
- package/dist/editor/chrome/EditorChrome.d.ts.map +1 -0
- package/dist/editor/chrome/EditorChrome.js +21 -0
- package/dist/editor/chrome/EditorChrome.js.map +1 -0
- package/dist/editor/drafts.d.ts +46 -0
- package/dist/editor/drafts.d.ts.map +1 -0
- package/dist/editor/drafts.js +38 -0
- package/dist/editor/drafts.js.map +1 -0
- package/dist/editor/i18n.d.ts +29 -0
- package/dist/editor/i18n.d.ts.map +1 -0
- package/dist/editor/i18n.js +2320 -0
- package/dist/editor/i18n.js.map +1 -0
- package/dist/editor/iconStroke.d.ts +6 -0
- package/dist/editor/iconStroke.d.ts.map +1 -0
- package/dist/editor/iconStroke.js +6 -0
- package/dist/editor/iconStroke.js.map +1 -0
- package/dist/editor/main.d.ts +2 -0
- package/dist/editor/main.d.ts.map +1 -0
- package/dist/editor/main.js +14 -0
- package/dist/editor/main.js.map +1 -0
- package/dist/editor/model.d.ts +16 -0
- package/dist/editor/model.d.ts.map +1 -0
- package/dist/editor/model.js +11 -0
- package/dist/editor/model.js.map +1 -0
- package/dist/editor/reasons.d.ts +44 -0
- package/dist/editor/reasons.d.ts.map +1 -0
- package/dist/editor/reasons.js +131 -0
- package/dist/editor/reasons.js.map +1 -0
- package/dist/editor/reviewLifecycle.d.ts +8 -0
- package/dist/editor/reviewLifecycle.d.ts.map +1 -0
- package/dist/editor/reviewLifecycle.js +21 -0
- package/dist/editor/reviewLifecycle.js.map +1 -0
- package/dist/editor/styles.css +8737 -0
- package/dist/editor/tokenMatch.d.ts +59 -0
- package/dist/editor/tokenMatch.d.ts.map +1 -0
- package/dist/editor/tokenMatch.js +198 -0
- package/dist/editor/tokenMatch.js.map +1 -0
- package/dist/editor/tokens/ConsolidatePage.d.ts +16 -0
- package/dist/editor/tokens/ConsolidatePage.d.ts.map +1 -0
- package/dist/editor/tokens/ConsolidatePage.js +244 -0
- package/dist/editor/tokens/ConsolidatePage.js.map +1 -0
- package/dist/editor/tokens/TokenActivity.d.ts +18 -0
- package/dist/editor/tokens/TokenActivity.d.ts.map +1 -0
- package/dist/editor/tokens/TokenActivity.js +18 -0
- package/dist/editor/tokens/TokenActivity.js.map +1 -0
- package/dist/editor/tokens/TokenDialogs.d.ts +26 -0
- package/dist/editor/tokens/TokenDialogs.d.ts.map +1 -0
- package/dist/editor/tokens/TokenDialogs.js +119 -0
- package/dist/editor/tokens/TokenDialogs.js.map +1 -0
- package/dist/editor/tokens/TokenList.d.ts +21 -0
- package/dist/editor/tokens/TokenList.d.ts.map +1 -0
- package/dist/editor/tokens/TokenList.js +98 -0
- package/dist/editor/tokens/TokenList.js.map +1 -0
- package/dist/editor/tokens/TokenPage.d.ts +25 -0
- package/dist/editor/tokens/TokenPage.d.ts.map +1 -0
- package/dist/editor/tokens/TokenPage.js +108 -0
- package/dist/editor/tokens/TokenPage.js.map +1 -0
- package/dist/editor/tokens/tokenModel.d.ts +35 -0
- package/dist/editor/tokens/tokenModel.d.ts.map +1 -0
- package/dist/editor/tokens/tokenModel.js +72 -0
- package/dist/editor/tokens/tokenModel.js.map +1 -0
- package/dist/editor/ui/Button.d.ts +3 -0
- package/dist/editor/ui/Button.d.ts.map +1 -0
- package/dist/editor/ui/Button.js +6 -0
- package/dist/editor/ui/Button.js.map +1 -0
- package/dist/editor/ui/CommentBox.d.ts +23 -0
- package/dist/editor/ui/CommentBox.d.ts.map +1 -0
- package/dist/editor/ui/CommentBox.js +41 -0
- package/dist/editor/ui/CommentBox.js.map +1 -0
- package/dist/editor/ui/Icon.d.ts +8 -0
- package/dist/editor/ui/Icon.d.ts.map +1 -0
- package/dist/editor/ui/Icon.js +6 -0
- package/dist/editor/ui/Icon.js.map +1 -0
- package/dist/editor/ui/IconButton.d.ts +11 -0
- package/dist/editor/ui/IconButton.d.ts.map +1 -0
- package/dist/editor/ui/IconButton.js +6 -0
- package/dist/editor/ui/IconButton.js.map +1 -0
- package/dist/editor/ui/NumberInput.d.ts +14 -0
- package/dist/editor/ui/NumberInput.d.ts.map +1 -0
- package/dist/editor/ui/NumberInput.js +6 -0
- package/dist/editor/ui/NumberInput.js.map +1 -0
- package/dist/editor/ui/PageLine.d.ts +14 -0
- package/dist/editor/ui/PageLine.d.ts.map +1 -0
- package/dist/editor/ui/PageLine.js +7 -0
- package/dist/editor/ui/PageLine.js.map +1 -0
- package/dist/editor/ui/SearchPicker.d.ts +41 -0
- package/dist/editor/ui/SearchPicker.d.ts.map +1 -0
- package/dist/editor/ui/SearchPicker.js +82 -0
- package/dist/editor/ui/SearchPicker.js.map +1 -0
- package/dist/editor/ui/Select.d.ts +19 -0
- package/dist/editor/ui/Select.d.ts.map +1 -0
- package/dist/editor/ui/Select.js +12 -0
- package/dist/editor/ui/Select.js.map +1 -0
- package/dist/editor/ui/TokenField.d.ts +14 -0
- package/dist/editor/ui/TokenField.d.ts.map +1 -0
- package/dist/editor/ui/TokenField.js +41 -0
- package/dist/editor/ui/TokenField.js.map +1 -0
- package/dist/editor/ui/TokenPicker.d.ts +31 -0
- package/dist/editor/ui/TokenPicker.d.ts.map +1 -0
- package/dist/editor/ui/TokenPicker.js +26 -0
- package/dist/editor/ui/TokenPicker.js.map +1 -0
- package/dist/editor/useBuildError.d.ts +7 -0
- package/dist/editor/useBuildError.d.ts.map +1 -0
- package/dist/editor/useBuildError.js +30 -0
- package/dist/editor/useBuildError.js.map +1 -0
- package/dist/editor/useLatestRequest.d.ts +22 -0
- package/dist/editor/useLatestRequest.d.ts.map +1 -0
- package/dist/editor/useLatestRequest.js +49 -0
- package/dist/editor/useLatestRequest.js.map +1 -0
- package/dist/editor-bundle/editor.css +2 -0
- package/dist/editor-bundle/editor.js +83 -0
- package/dist/editor-ui.d.ts +15 -0
- package/dist/editor-ui.d.ts.map +1 -0
- package/dist/editor-ui.js +14 -0
- package/dist/editor-ui.js.map +1 -0
- package/dist/inspector/runtime.d.ts +18 -0
- package/dist/inspector/runtime.d.ts.map +1 -0
- package/dist/inspector/runtime.js +1280 -0
- package/dist/inspector/runtime.js.map +1 -0
- package/dist/preview/main.d.ts +3 -0
- package/dist/preview/main.d.ts.map +1 -0
- package/dist/preview/main.js +320 -0
- package/dist/preview/main.js.map +1 -0
- package/dist/preview/preview.css +40 -0
- package/dist/runtime/index.d.ts +3 -0
- package/dist/runtime/index.d.ts.map +1 -0
- package/dist/runtime/index.js +2 -0
- package/dist/runtime/index.js.map +1 -0
- package/dist/shared/buildError.d.mts +27 -0
- package/dist/shared/buildError.mjs +141 -0
- package/dist/shared/cameraFit.d.mts +16 -0
- package/dist/shared/cameraFit.mjs +47 -0
- package/dist/shared/canvasLayout.d.mts +13 -0
- package/dist/shared/canvasLayout.mjs +171 -0
- package/dist/shared/commentShots.d.mts +12 -0
- package/dist/shared/commentShots.mjs +53 -0
- package/dist/shared/componentExtract.d.mts +43 -0
- package/dist/shared/componentExtract.mjs +136 -0
- package/dist/shared/componentMeta.d.mts +26 -0
- package/dist/shared/componentMeta.mjs +87 -0
- package/dist/shared/componentOps.d.mts +70 -0
- package/dist/shared/componentOps.mjs +407 -0
- package/dist/shared/componentTarget.d.mts +15 -0
- package/dist/shared/componentTarget.mjs +58 -0
- package/dist/shared/components.d.mts +30 -0
- package/dist/shared/components.mjs +106 -0
- package/dist/shared/consolidateCategories.d.mts +2 -0
- package/dist/shared/consolidateCategories.mjs +6 -0
- package/dist/shared/env.d.mts +4 -0
- package/dist/shared/env.mjs +18 -0
- package/dist/shared/gitChanges.d.mts +2 -0
- package/dist/shared/gitChanges.mjs +30 -0
- package/dist/shared/oklab.d.mts +6 -0
- package/dist/shared/oklab.mjs +56 -0
- package/dist/shared/optimizeEntries.d.mts +5 -0
- package/dist/shared/optimizeEntries.mjs +24 -0
- package/dist/shared/packages.d.mts +11 -0
- package/dist/shared/packages.mjs +96 -0
- package/dist/shared/projectFiles.d.mts +23 -0
- package/dist/shared/projectFiles.mjs +72 -0
- package/dist/shared/prompt.d.mts +20 -0
- package/dist/shared/prompt.mjs +201 -0
- package/dist/shared/proposals.d.mts +11 -0
- package/dist/shared/proposals.mjs +42 -0
- package/dist/shared/protocol.d.ts +122 -0
- package/dist/shared/protocol.d.ts.map +1 -0
- package/dist/shared/protocol.js +7 -0
- package/dist/shared/protocol.js.map +1 -0
- package/dist/shared/reviewArchive.d.mts +4 -0
- package/dist/shared/reviewArchive.mjs +19 -0
- package/dist/shared/reviewStore.d.mts +30 -0
- package/dist/shared/reviewStore.mjs +218 -0
- package/dist/shared/reviewVerify.d.mts +21 -0
- package/dist/shared/reviewVerify.mjs +158 -0
- package/dist/shared/sizeModes.d.mts +15 -0
- package/dist/shared/sizeModes.mjs +53 -0
- package/dist/shared/sketches.d.mts +10 -0
- package/dist/shared/sketches.mjs +64 -0
- package/dist/shared/snapshotCheck.d.mts +13 -0
- package/dist/shared/snapshotCheck.mjs +81 -0
- package/dist/shared/timeout.d.mts +1 -0
- package/dist/shared/timeout.mjs +15 -0
- package/dist/shared/tokens.d.ts +2 -0
- package/dist/shared/tokens.d.ts.map +1 -0
- package/dist/shared/tokens.js +2 -0
- package/dist/shared/tokens.js.map +1 -0
- package/dist/shared/types.d.ts +689 -0
- package/dist/shared/types.d.ts.map +1 -0
- package/dist/shared/types.js +13 -0
- package/dist/shared/types.js.map +1 -0
- package/dist/shared/wheelRouting.d.mts +9 -0
- package/dist/shared/wheelRouting.mjs +31 -0
- package/dist/shared/writeScope.mjs +96 -0
- package/dist/snapshots/diff.d.mts +28 -0
- package/dist/snapshots/diff.mjs +263 -0
- package/dist/snapshots/index.d.mts +110 -0
- package/dist/snapshots/index.mjs +638 -0
- package/dist/snapshots/render.d.mts +24 -0
- package/dist/snapshots/render.mjs +250 -0
- package/dist/snapshots/toolOps.d.mts +25 -0
- package/dist/snapshots/toolOps.mjs +69 -0
- package/dist/tokens/adapters/css.mjs +51 -0
- package/dist/tokens/adapters/cssInCode.mjs +314 -0
- package/dist/tokens/adapters/oxcShared.mjs +80 -0
- package/dist/tokens/adapters/preprocessor.mjs +63 -0
- package/dist/tokens/adapters/registry.mjs +53 -0
- package/dist/tokens/adapters/tailwindcss.mjs +424 -0
- package/dist/tokens/adapters/types.mjs +117 -0
- package/dist/tokens/consolidate/index.d.mts +42 -0
- package/dist/tokens/consolidate/index.mjs +111 -0
- package/dist/tokens/consolidate/normalize.mjs +479 -0
- package/dist/tokens/consolidate/plan.mjs +726 -0
- package/dist/tokens/consolidate/scan.mjs +928 -0
- package/dist/tokens/extract.mjs +441 -0
- package/dist/tokens/moduleData.d.mts +14 -0
- package/dist/tokens/moduleData.mjs +32 -0
- package/dist/tokens/opLock.d.mts +4 -0
- package/dist/tokens/opLock.mjs +108 -0
- package/dist/tokens/ops.d.mts +71 -0
- package/dist/tokens/ops.mjs +1511 -0
- package/dist/tokens/pipeline.mjs +813 -0
- package/dist/tokens/report.d.mts +47 -0
- package/dist/tokens/report.mjs +257 -0
- package/dist/tokens/rewrite/code.mjs +172 -0
- package/dist/tokens/rewrite/css.mjs +154 -0
- package/dist/tokens/rewrite/index.mjs +244 -0
- package/dist/tokens/rewrite/tailwind.mjs +288 -0
- package/dist/tokens/rewrite/text.mjs +116 -0
- package/dist/tokens/rewrite/value.mjs +115 -0
- package/dist/tokens/usage.d.mts +97 -0
- package/dist/tokens/usage.mjs +680 -0
- package/dist/vite/agent.d.ts +21 -0
- package/dist/vite/agent.d.ts.map +1 -0
- package/dist/vite/agent.js +165 -0
- package/dist/vite/agent.js.map +1 -0
- package/dist/vite/events.d.ts +27 -0
- package/dist/vite/events.d.ts.map +1 -0
- package/dist/vite/events.js +156 -0
- package/dist/vite/events.js.map +1 -0
- package/dist/vite/layout.d.ts +2 -0
- package/dist/vite/layout.d.ts.map +1 -0
- package/dist/vite/layout.js +4 -0
- package/dist/vite/layout.js.map +1 -0
- package/dist/vite/plugin.d.ts +40 -0
- package/dist/vite/plugin.d.ts.map +1 -0
- package/dist/vite/plugin.js +1255 -0
- package/dist/vite/plugin.js.map +1 -0
- package/dist/vite/requestGuard.d.mts +3 -0
- package/dist/vite/requestGuard.mjs +43 -0
- package/dist/vite/review.d.ts +11 -0
- package/dist/vite/review.d.ts.map +1 -0
- package/dist/vite/review.js +283 -0
- package/dist/vite/review.js.map +1 -0
- package/package.json +106 -1
- package/skills/seji/SKILL.md +395 -0
- package/skills/seji-authoring/SKILL.md +397 -0
- package/skills/seji-tokens/SKILL.md +432 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.js","sourceRoot":"","sources":["../../src/vite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CAAC,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;QACpH,QAAQ,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC;KAC5C,CAAC,CAAC,MAAM,CAAA;AACX,CAAC","sourcesContent":["import fs from 'node:fs'\nimport path from 'node:path'\nimport { gitHead } from '../shared/gitChanges.mjs'\nimport { sessionDir } from '../shared/projectFiles.mjs'\n\nimport {\n SAFE_DESIGN_ID,\n applyOpsToReview,\n mutateReview,\n normalizeReview,\n readReviewFile,\n reviewFilePath,\n writeReviewFile,\n} from '../shared/reviewStore.mjs'\nimport type {\n ArchiveItem,\n ReviewItem,\n ReviewLog,\n ReviewStatus,\n Session,\n SessionComment,\n SessionStyle,\n} from '../shared/types'\n\nexport function emptyReview(design: string): ReviewLog {\n return {\n version: 1,\n design,\n updatedAt: new Date().toISOString(),\n items: [],\n batches: [],\n }\n}\n\nconst nowIso = () => new Date().toISOString()\n\nconst idOf = (prefix: string, index: number) =>\n `${prefix}-${index}-${Math.random().toString(36).slice(2, 8)}`\n\nconst statusOf = (value: unknown, resolved = false): ReviewStatus => {\n if (resolved) return 'resolved'\n return value === 'in_progress' || value === 'resolved' ? value : 'open'\n}\n\nconst legacyPage = (frame: string) => frame.split('__')[0]\n\nfunction legacyStyleItem(style: SessionStyle, frame: string, index: number): ReviewItem {\n const createdAt = nowIso()\n return {\n id: idOf(`legacy-style-${frame}`, index),\n design: '',\n kind: 'style',\n scope: 'frame',\n page: legacyPage(frame),\n frame,\n target: { type: 'node', node: style.node },\n property: style.property,\n from: style.from,\n to: style.value,\n token: style.token,\n status: statusOf(style.status),\n agentReply: style.agentReply,\n createdAt,\n updatedAt: createdAt,\n resolvedAt: style.resolvedAt,\n }\n}\n\nfunction legacyCommentItem(comment: SessionComment, frame: string, index: number): ReviewItem {\n const createdAt = comment.createdAt ?? nowIso()\n return {\n id: `legacy-comment-${frame}-${comment.id || index}`,\n design: '',\n kind: 'comment',\n scope: 'frame',\n page: legacyPage(frame),\n frame,\n target: { type: 'node', node: comment.node },\n body: comment.body,\n thread: (comment.replies ?? []).map((reply) => ({\n id: reply.id,\n body: reply.body,\n author: reply.author,\n createdAt: reply.createdAt,\n })),\n status: statusOf(comment.status, Boolean(comment.resolved)),\n agentReply: comment.agentReply,\n createdAt,\n updatedAt: comment.editedAt ?? createdAt,\n resolvedAt: comment.resolvedAt,\n }\n}\n\nfunction legacyArchiveItem(item: ArchiveItem): ReviewItem {\n const change = item.change as {\n name?: string\n from?: unknown\n value?: unknown\n property?: string\n node?: ReviewItem['target']\n token?: string\n agentReply?: string\n }\n const isToken = item.kind === 'token'\n const node =\n change.node && typeof change.node === 'object' && 'type' in change.node\n ? change.node\n : null\n return {\n id: `legacy-archive-${item.id}`,\n design: item.design,\n kind: item.kind === 'comment' ? 'comment' : item.kind,\n scope: isToken ? 'design' : 'frame',\n frame: isToken ? undefined : item.frame,\n target: isToken\n ? { type: 'token', token: change.name ?? item.title }\n : node ?? { type: 'node', node: (change as { node?: never }).node ?? ({} as never) },\n property: change.property,\n from: isToken ? change.from : change.from,\n to: isToken ? change.value : (change as { value?: unknown }).value,\n token: change.token,\n agentReply: change.agentReply,\n status: 'archived',\n createdAt: item.resolvedAt,\n updatedAt: item.archivedAt,\n resolvedAt: item.resolvedAt,\n archivedAt: item.archivedAt,\n }\n}\n\n// 0.4.2 kept per-frame session files in design/<design>/.session/; setup moves them to\n// design/.seji/session/<design>/. Both are read once into review.json, then removed.\nconst legacySessionDirs = (root: string, design: string) => [\n sessionDir(root, design),\n path.resolve(root, 'design', design, '.session'),\n]\n\nfunction readLegacySessions(root: string, design: string): Session[] {\n if (!SAFE_DESIGN_ID.test(design)) return []\n const sessions: Session[] = []\n for (const dir of legacySessionDirs(root, design)) {\n if (!fs.existsSync(dir)) continue\n for (const entry of fs.readdirSync(dir, { withFileTypes: true })) {\n if (!entry.isFile() || !entry.name.endsWith('.json')) continue\n try {\n const parsed = JSON.parse(fs.readFileSync(path.join(dir, entry.name), 'utf8')) as Session\n if (parsed && typeof parsed === 'object' && typeof parsed.frame === 'string') {\n sessions.push(parsed)\n }\n } catch {\n // Ignore malformed legacy files.\n }\n }\n }\n return sessions\n}\n\nfunction readLegacyHistory(root: string, design: string): ArchiveItem[] {\n if (!SAFE_DESIGN_ID.test(design)) return []\n try {\n const parsed = JSON.parse(\n fs.readFileSync(path.resolve(root, 'design', design, 'history.json'), 'utf8'),\n ) as { items?: ArchiveItem[] }\n return Array.isArray(parsed.items) ? parsed.items : []\n } catch {\n return []\n }\n}\n\nfunction migrateLegacy(root: string, design: string): ReviewLog {\n const items: ReviewItem[] = []\n const sessions = readLegacySessions(root, design)\n const tokens = new Map<string, ReviewItem>()\n\n sessions.forEach((session) => {\n const frame = session.frame\n const updatedAt = session.updatedAt ?? nowIso()\n session.tokens.forEach((token, index) => {\n const existing = tokens.get(token.name)\n const status = statusOf(token.status)\n if (!existing) {\n const item: ReviewItem = {\n id: `legacy-token-${token.name.replace(/[^a-zA-Z0-9_-]/g, '_')}-${index}`,\n design,\n kind: 'token',\n scope: 'design',\n target: { type: 'token', token: token.name },\n from: token.from,\n to: token.value,\n status,\n agentReply: token.agentReply,\n createdAt: updatedAt,\n updatedAt,\n resolvedAt: token.resolvedAt,\n }\n tokens.set(token.name, item)\n items.push(item)\n return\n }\n if (status === 'resolved') existing.status = 'resolved'\n else if (status === 'in_progress' && existing.status === 'open') existing.status = 'in_progress'\n existing.resolvedAt = token.resolvedAt ?? existing.resolvedAt\n existing.agentReply = token.agentReply ?? existing.agentReply\n existing.updatedAt = updatedAt\n })\n\n ;(session.styles ?? []).forEach((style, index) => {\n const item = legacyStyleItem(style, frame, index)\n item.design = design\n items.push(item)\n })\n session.free.forEach((free, index) => {\n const createdAt = updatedAt\n items.push({\n id: idOf(`legacy-free-${frame}`, index),\n design,\n kind: 'free',\n scope: 'frame',\n page: legacyPage(frame),\n frame,\n target: { type: 'node', node: free.node },\n from: free.from,\n to: free.to,\n status: statusOf(free.status),\n agentReply: free.agentReply,\n createdAt,\n updatedAt: createdAt,\n resolvedAt: free.resolvedAt,\n })\n })\n session.structure.forEach((structure, index) => {\n items.push({\n id: idOf(`legacy-structure-${frame}`, index),\n design,\n kind: 'structure',\n scope: 'frame',\n page: legacyPage(frame),\n frame,\n target: { type: 'node', node: structure.node },\n from: structure,\n status: statusOf(structure.status),\n agentReply: structure.agentReply,\n createdAt: updatedAt,\n updatedAt,\n resolvedAt: structure.resolvedAt,\n })\n })\n ;(session.suggestions ?? []).forEach((suggestion, index) => {\n items.push({\n id: idOf(`legacy-suggestion-${frame}`, index),\n design,\n kind: 'suggestion',\n scope: 'frame',\n page: legacyPage(frame),\n frame,\n target: { type: 'node', node: suggestion.node },\n property: suggestion.property,\n from: suggestion.value,\n to: suggestion.token,\n token: suggestion.token,\n status: statusOf(suggestion.status),\n agentReply: suggestion.agentReply,\n createdAt: suggestion.createdAt ?? updatedAt,\n updatedAt,\n resolvedAt: suggestion.resolvedAt,\n })\n })\n ;(session.comments ?? []).forEach((comment, index) => {\n const item = legacyCommentItem(comment, frame, index)\n item.design = design\n items.push(item)\n })\n })\n\n const archives = readLegacyHistory(root, design)\n if (!sessions.length && !archives.length) return emptyReview(design)\n const archivedTokens = new Set<string>()\n archives.forEach((archive) => {\n if (archive.kind === 'token') {\n const name = (archive.change as { name?: string }).name ?? archive.title\n if (archivedTokens.has(name)) return\n archivedTokens.add(name)\n }\n const item = legacyArchiveItem(archive)\n item.design = design\n items.push(item)\n })\n\n const review = writeReviewFile(reviewFilePath(root, design), design, {\n version: 1,\n design,\n updatedAt: nowIso(),\n items,\n batches: [],\n })\n for (const dir of legacySessionDirs(root, design)) fs.rmSync(dir, { recursive: true, force: true })\n fs.rmSync(path.resolve(root, 'design', design, 'history.json'), { force: true })\n return review\n}\n\n/**\n * Current ledger. A missing file falls back to legacy migration (or an empty\n * ledger); a malformed file throws rather than reading as empty, so a torn read\n * can never be written back over the real ledger.\n */\nexport function readReview(root: string, design: string): ReviewLog {\n const parsed = readReviewFile(reviewFilePath(root, design))\n return parsed ? normalizeReview(design, parsed) : migrateLegacy(root, design)\n}\n\n/** Apply editor ops under the shared ledger lock (serialized with CLI writers). */\nexport function applyReviewOps(root: string, design: string, ops: unknown): ReviewLog {\n if (!Array.isArray(ops)) throw new Error('Invalid review ops')\n return mutateReview(root, design, (current) => applyOpsToReview(current, design, ops, { head: () => gitHead(root) }), {\n fallback: () => migrateLegacy(root, design),\n }).review\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1 +1,106 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@rien7/seji",
|
|
3
|
+
"version": "0.6.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"description": "A TSX-native design surface: preview real components, tune tokens, and hand structured changes to a coding agent.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/rien7/design-surface.git",
|
|
10
|
+
"directory": "packages/design"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://github.com/rien7/design-surface#readme",
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/rien7/design-surface/issues"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"access": "public"
|
|
18
|
+
},
|
|
19
|
+
"engines": {
|
|
20
|
+
"node": ">=20.19.0"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist",
|
|
24
|
+
"bin",
|
|
25
|
+
"skills"
|
|
26
|
+
],
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/runtime/index.d.ts",
|
|
30
|
+
"import": "./dist/runtime/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./runtime": {
|
|
33
|
+
"types": "./dist/runtime/index.d.ts",
|
|
34
|
+
"import": "./dist/runtime/index.js"
|
|
35
|
+
},
|
|
36
|
+
"./vite": {
|
|
37
|
+
"types": "./dist/vite/plugin.d.ts",
|
|
38
|
+
"import": "./dist/vite/plugin.js"
|
|
39
|
+
},
|
|
40
|
+
"./inspector": {
|
|
41
|
+
"types": "./dist/inspector/runtime.d.ts",
|
|
42
|
+
"import": "./dist/inspector/runtime.js"
|
|
43
|
+
},
|
|
44
|
+
"./editor-ui": {
|
|
45
|
+
"types": "./dist/editor-ui.d.ts",
|
|
46
|
+
"import": "./dist/editor-ui.js"
|
|
47
|
+
},
|
|
48
|
+
"./tokens": {
|
|
49
|
+
"import": "./dist/tokens/pipeline.mjs"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"bin": {
|
|
53
|
+
"seji": "bin/seji.mjs",
|
|
54
|
+
"design-surface": "bin/design-surface.mjs"
|
|
55
|
+
},
|
|
56
|
+
"scripts": {
|
|
57
|
+
"build": "node scripts/build.mjs",
|
|
58
|
+
"prepublishOnly": "node scripts/build.mjs",
|
|
59
|
+
"postinstall": "node bin/postinstall.mjs",
|
|
60
|
+
"typecheck": "tsc --noEmit -p tsconfig.json",
|
|
61
|
+
"test": "node --test test/*.test.mjs"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"react": ">=18",
|
|
65
|
+
"react-dom": ">=18",
|
|
66
|
+
"vite": ">=6",
|
|
67
|
+
"playwright": ">=1.40"
|
|
68
|
+
},
|
|
69
|
+
"peerDependenciesMeta": {
|
|
70
|
+
"vite": {
|
|
71
|
+
"optional": true
|
|
72
|
+
},
|
|
73
|
+
"playwright": {
|
|
74
|
+
"optional": true
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"devDependencies": {
|
|
78
|
+
"@types/node": "^22.10.0",
|
|
79
|
+
"@types/react": "^19.2.0",
|
|
80
|
+
"@types/react-dom": "^19.2.0",
|
|
81
|
+
"playwright": "^1.49.0",
|
|
82
|
+
"postcss-less": "^6.0.0",
|
|
83
|
+
"postcss-scss": "^4.0.9",
|
|
84
|
+
"react": "^19.2.0",
|
|
85
|
+
"react-dom": "^19.2.0",
|
|
86
|
+
"react-markdown": "^10.1.0",
|
|
87
|
+
"remark-gfm": "^4.0.1",
|
|
88
|
+
"remend": "^1.5.1",
|
|
89
|
+
"typescript": "^5.9.3",
|
|
90
|
+
"use-stick-to-bottom": "^1.1.6",
|
|
91
|
+
"vite": "^8.0.0"
|
|
92
|
+
},
|
|
93
|
+
"dependencies": {
|
|
94
|
+
"@babel/parser": "^8.1.3",
|
|
95
|
+
"@base-ui/react": "^1.9.0",
|
|
96
|
+
"@botiverse/oar": "^0.137.0",
|
|
97
|
+
"@rien7/design-surface-runtime": "^0.6.0",
|
|
98
|
+
"lucide-react": "^1.80.0",
|
|
99
|
+
"modern-screenshot": "^4.7.0",
|
|
100
|
+
"pixelmatch": "^7.1.0",
|
|
101
|
+
"pngjs": "^7.0.0",
|
|
102
|
+
"postcss": "^8.5.33",
|
|
103
|
+
"postcss-value-parser": "^4.2.0",
|
|
104
|
+
"tinyglobby": "^0.2.17"
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,395 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: seji
|
|
3
|
+
description: Seji — the global `seji` CLI and its canvas for React + Vite projects (design/ folder, design/<id>/review.json, design/tokens/*.tokens.json). Start here for any design, UI, token or component work in a project that has design/, whenever the user mentions the design surface, the canvas, review items or design changes, and when asked to install, set up, start or upgrade Seji in a project (seji setup, doctor, dev). Run `seji doctor` first (`seji setup` in a project without design/). Covers setup from zero, applying pending review items from design/<design>/review.json (token, style, suggestion, free-layout, structure, component and comment items), status / reply, and the three checks (values, references, snapshots). For token commands, DTCG and consolidation use seji-tokens; for pages, frames and component pages use seji-authoring.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Seji
|
|
7
|
+
|
|
8
|
+
## Setup from zero
|
|
9
|
+
|
|
10
|
+
The CLI is one global npm install; this skill and its two siblings live in the user-level skill
|
|
11
|
+
directories (`~/.agents/skills/`, plus `~/.claude/skills/` when Claude Code is set up), never
|
|
12
|
+
in the project. Nothing is added to the project's `package.json` or lockfile.
|
|
13
|
+
|
|
14
|
+
1. **CLI.** `seji --version` fails → `npm i -g @rien7/seji@latest` (npm,
|
|
15
|
+
never a pnpm / yarn / bun global). The CLI writes these skills itself and keeps itself
|
|
16
|
+
current: every run checks npm (cached for an hour, a failed check for 10 minutes, 1.5 s
|
|
17
|
+
timeout, offline → carries on), installs a newer release, refreshes the skills, re-runs your
|
|
18
|
+
command and prints one `seji: updated A → B` line. `SEJI_NO_UPDATE=1`
|
|
19
|
+
turns that off. Never use `npx seji`, never add the package to the project.
|
|
20
|
+
2. **Setup.** `seji setup` in the app directory or anywhere in a monorepo. Exit 0 means
|
|
21
|
+
it finished and `doctor --deep` passed. It prints `APP <dir>` first (the app it set up); when it
|
|
22
|
+
lists several apps instead, re-run with `--app <dir>` (the path it prints). Non-interactive and
|
|
23
|
+
repeatable (a second run changes nothing); `--dry-run` shows the plan first. It:
|
|
24
|
+
- creates `design/` once, never overwriting a file: DTCG tokens, `tokens.config.json`,
|
|
25
|
+
`surface.config.json` (the app's real stylesheets and component directories),
|
|
26
|
+
`providers.tsx` (copied from the app's entry; `BrowserRouter` → `MemoryRouter`; providers
|
|
27
|
+
that need runtime values are left as `TODO` lines it prints), `components.ts`, `tokens.ts`,
|
|
28
|
+
`tsconfig.json` and a starter artboard that also renders the app's own component;
|
|
29
|
+
- imports the app's CSS variables into tokens and builds them;
|
|
30
|
+
- adds the one `@import "./tokens.generated.css";` to the app's CSS entry (after
|
|
31
|
+
`@import "tailwindcss"`) — its only write outside `design/`;
|
|
32
|
+
- moves a 0.4.2 layout (and old project-level skill copies) out of the way.
|
|
33
|
+
It never edits AGENTS.md / CLAUDE.md, and neither should you for this.
|
|
34
|
+
3. **Problems.** Every doctor failure prints a `fix:`; apply it and run `seji setup`
|
|
35
|
+
(or `seji doctor`) again until it exits 0. Exit 2 means no single app (use
|
|
36
|
+
`--app`), the app lacks `react` / `react-dom` / `vite`, or its Vite config does not load.
|
|
37
|
+
Resolve the `TODO` lines in `design/providers.tsx` with the user when a provider needs real
|
|
38
|
+
data. A doctor `dependency` warning (an old `@rien7/design-surface*` entry in
|
|
39
|
+
`package.json`) is optional cleanup: tell the user, do not remove it unasked.
|
|
40
|
+
4. **Canvas.** `seji dev --port 5177 &` in the background (it also writes its output to
|
|
41
|
+
`design/.seji/dev.log`), wait until `http://localhost:5177/__seji/api/health`
|
|
42
|
+
answers, and give the user `http://localhost:5177/__seji`. `dev` uses the app's
|
|
43
|
+
`vite.config.*` and `design/surface.config.json` without editing them; from a monorepo root it
|
|
44
|
+
picks the app like `setup` (`--app <dir>`). Projects that mount `designPlugin` in
|
|
45
|
+
`vite.config.ts` use their own dev server instead.
|
|
46
|
+
5. **Work.** Pages, frames, component pages: seji-authoring. Tokens:
|
|
47
|
+
seji-tokens. Review items the human leaves on the canvas: the rest of this skill.
|
|
48
|
+
|
|
49
|
+
In a new session in a set-up project, `seji doctor` is enough.
|
|
50
|
+
|
|
51
|
+
**What lives in the project.** Commit what is yours, leave the cache alone:
|
|
52
|
+
|
|
53
|
+
| Owner | Files |
|
|
54
|
+
| --- | --- |
|
|
55
|
+
| The app | `tokens.generated.css` next to the CSS entry, and its one `@import` |
|
|
56
|
+
| Yours (committed, edited by you and the agent) | `design/tokens/*.tokens.json`, `design/tokens.config.json`, `design/surface.config.json`, `design/<design>/design.tsx`, `design/<design>/review.json`, `design/<design>/canvas.json` (frame positions), `design/components.ts` / `components.json`, `design/providers.tsx`, `design/tokens.ts`, `design/tsconfig.json` |
|
|
57
|
+
| Tool cache `design/.seji/` (gitignored, regenerated, delete anytime) | runtime types, the generated tsconfig, `tokens.generated.ts`, the token manifest, snapshots, consolidate plans, sessions, `canvas/<design>.json` (camera), `dev.log` |
|
|
58
|
+
|
|
59
|
+
Never edit or commit files under `design/.seji/`; `seji tokens build`
|
|
60
|
+
regenerates the token files.
|
|
61
|
+
|
|
62
|
+
Three skills, one owner each:
|
|
63
|
+
|
|
64
|
+
| Skill | Owns |
|
|
65
|
+
| --- | --- |
|
|
66
|
+
| **seji** (this one) | The review ledger: item kinds, how to apply each, status / reply, verification, snapshots, archive rules, the UI → CLI map. |
|
|
67
|
+
| **seji-tokens** | DTCG source, tiers, `tokens build/check/extract`, the tool token operations (`tokens rename/merge/…`), `consolidate`, `usage`, `health`, `propose token`. |
|
|
68
|
+
| **seji-authoring** | Setup, `design/<id>/design.tsx`, pages, frames, flows, providers, component pages and the `component …` / `propose component` commands. |
|
|
69
|
+
|
|
70
|
+
The browser never writes source. It records intents in one design-level ledger:
|
|
71
|
+
|
|
72
|
+
```text
|
|
73
|
+
design/<design>/review.json
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
Your job is to change the component TSX/CSS or DTCG token source, then update the ledger with the
|
|
77
|
+
`seji` CLI. The surface verifies and archives finished items.
|
|
78
|
+
|
|
79
|
+
## Only the ledger is work
|
|
80
|
+
|
|
81
|
+
Inspector edits in the browser are **drafts**: they restyle the preview live and are kept in the
|
|
82
|
+
browser's `localStorage` (`design-surface:drafts:<design>`), together with side-by-side
|
|
83
|
+
"alternative" artboards. Drafts are not requests. Only when the human presses **Save as changes**
|
|
84
|
+
(or **Change the component itself**) do they become pending items in `review.json`.
|
|
85
|
+
|
|
86
|
+
- Handle only the items in `design/<design>/review.json`.
|
|
87
|
+
- Never read, apply or clear browser drafts or alternatives.
|
|
88
|
+
- A frame with drafts but no items needs nothing from you.
|
|
89
|
+
|
|
90
|
+
## Read the ledger
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
seji list # per design: open / in progress / resolved / archived / awaiting approval
|
|
94
|
+
seji show <design> # the full review.json
|
|
95
|
+
seji prompt <design> # the same handoff text as the editor's "Hand to agent"
|
|
96
|
+
seji check # ledger shape
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
`prompt` lists open and in-progress items, minus agent proposals still waiting for the human.
|
|
100
|
+
A frame is a locator, not a storage boundary. A token is one `scope: "design"` item; never create a
|
|
101
|
+
per-frame copy.
|
|
102
|
+
|
|
103
|
+
## Before editing source
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
seji snapshot wait <design>
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
The dev server captures a "before" snapshot of every new item in the background. Editing source
|
|
110
|
+
first records your change as the baseline. If an item has no baseline yet and Playwright is
|
|
111
|
+
installed, `seji snapshot capture <design> <itemId>` takes one.
|
|
112
|
+
|
|
113
|
+
## Item fields
|
|
114
|
+
|
|
115
|
+
Every item has `id`, `design`, `kind`, `scope`, `target`, `status`, `createdAt`, `updatedAt`.
|
|
116
|
+
`scope` is `design`, `page`, `frame`, `component` or `editor`. Full field reference:
|
|
117
|
+
`docs/review-ledger.md`.
|
|
118
|
+
|
|
119
|
+
| Kind | Fields |
|
|
120
|
+
| --- | --- |
|
|
121
|
+
| `token` | `source`, `sourceHash`, `tokenType`, `tokenAction`, `tokenAlias?`, `tokenTier?`, `tokenDescription?`, `replaces?`, `tokenOp?` (tool items), `from`, `to`, `author?`, `rationale?`, `proposalDecision?`, `decisionNote?`, `verifiedAt?` |
|
|
122
|
+
| `style` | `page`, `frame`, `target.node`, `property`, `state?`, `from`, `to` |
|
|
123
|
+
| `suggestion` | `page`, `frame`, `target.node`, `property`, `state?`, `token`, `from`, `to`, `source` |
|
|
124
|
+
| `free` | `page`, `frame`, `target.node`, `from` rect, `to` rect |
|
|
125
|
+
| `structure` | `page`, `frame`/`component`, `target`, `body` |
|
|
126
|
+
| `component` | `target.component`, `componentAction`, `componentMode?`, `componentOp?` (tool items), `from`, `to?`, `frames?`, `body?`, `page?`, `source?` |
|
|
127
|
+
| `comment` | `page`, `frame`, `target.node`, `body`, `thread`, `shot?` |
|
|
128
|
+
|
|
129
|
+
`target.node` carries `component`, `components`, `source` (`file:line`), `anchor`, `path` and `html`.
|
|
130
|
+
Tool-owned fields (`checks`, `snapshots`, `shot`, `verifiedAt`, `archivedAt`, `sourceHash`) are never yours.
|
|
131
|
+
A comment may carry `shot`: a root-relative PNG (`design/.seji/comments/<design>/<id>.png`,
|
|
132
|
+
shown as `Screenshot:` in `prompt`) of the frame as the human saw it, tab and state included; read
|
|
133
|
+
it before acting on the comment.
|
|
134
|
+
|
|
135
|
+
## Apply by kind
|
|
136
|
+
|
|
137
|
+
### Token
|
|
138
|
+
|
|
139
|
+
`target.token` is the CSS variable name; `source` names the DTCG file. Resolve the DTCG path with
|
|
140
|
+
`seji usage <name>` (a token can override its CSS name), never by string
|
|
141
|
+
replacement. Never edit generated files (`design/.seji/`, the generated CSS). DTCG shape, tiers and every command: **seji-tokens**.
|
|
142
|
+
|
|
143
|
+
| `tokenAction` | You do |
|
|
144
|
+
| --- | --- |
|
|
145
|
+
| `create` | Add the token to the tier in `tokenTier` (never choose one), `$description` = `tokenDescription`; with `replaces`, rewrite that literal to `var(--token)` in every `replaces.files` entry. Or `tokens create`. |
|
|
146
|
+
| `update` / `alias` | Change `$value` (literal, or `{target.path}` for alias = `tokenAlias`). Or `tokens set`. |
|
|
147
|
+
| `rename` / `merge` / `deprecate` / `delete` / `describe` / `replace-literal` / `consolidate` | Never by hand. These are tool operations; see `[tool op]` items below. |
|
|
148
|
+
|
|
149
|
+
**`[tool op]` items** (`tokenOp.by: "tool"`, prompt label `[tool <op>]`): the editor or CLI already ran
|
|
150
|
+
the operation — DTCG edited, static references rewritten, tokens rebuilt. Do **not** redo it. Fix only
|
|
151
|
+
`tokenOp.leftovers` (each `file:line` + reason), run `tokens build` + `tokens check`, mark the item
|
|
152
|
+
`resolved`. An item with no leftovers is written `resolved` already.
|
|
153
|
+
|
|
154
|
+
**Agent proposals** (`author: "agent"`):
|
|
155
|
+
|
|
156
|
+
- Unreviewed (`!proposalDecision`): waiting for the human (Changes page or the token page; CLI
|
|
157
|
+
`proposal <design> <id> approve|reject`). Not in `prompt`. Do nothing.
|
|
158
|
+
- `[approved proposal]`: write the token (the `to` value may have been adjusted) into the named
|
|
159
|
+
DTCG source — for `merge` run `tokens merge <name> --into <tokenAlias>` — then `tokens build` +
|
|
160
|
+
`tokens check`, mark `resolved`.
|
|
161
|
+
- `[rejected proposal]`: do **not** write the token; move usages back to existing tokens per
|
|
162
|
+
`decisionNote`, mark `resolved`.
|
|
163
|
+
|
|
164
|
+
After any DTCG edit: `seji tokens build && seji tokens check`.
|
|
165
|
+
|
|
166
|
+
**Suggested promotions** (`tokenSuggested: true`, prompt line `[suggested] promote hard-coded
|
|
167
|
+
<property> <value> to a token; name and tier undecided`): the human clicked "Suggest promoting to
|
|
168
|
+
token" on a hard-coded value; `node` / `property` say where. You pick the name and tier (reuse an
|
|
169
|
+
existing token that already has this value), create it with a `$description`, `tokens build`,
|
|
170
|
+
replace the same literal across the project (`usage --hardcoded`; `replaces.files` lists the known
|
|
171
|
+
files), write the chosen CSS name into `target.token` and the tier into `tokenTier` in
|
|
172
|
+
`review.json`, then mark it `resolved`. Verification (token exists, literal gone) runs as for any
|
|
173
|
+
promoted literal.
|
|
174
|
+
|
|
175
|
+
### Style
|
|
176
|
+
|
|
177
|
+
Apply `property` to the source element identified by `target.node.source`, `component`, `anchor`,
|
|
178
|
+
`path` and `html`. Use the page/frame locator to find the right component in `src/`. Do not add a
|
|
179
|
+
parallel styling system or a JSON scene graph.
|
|
180
|
+
|
|
181
|
+
- `scope: "frame"` changes this use only (a prop, a className at the call site or the page markup).
|
|
182
|
+
- `scope: "component"` changes the shared component source itself, so every use follows. Edit the
|
|
183
|
+
component file in `target.node.source` / `target.node.component`, not the call site.
|
|
184
|
+
- `state` (`hover`, `active` = pressed, `focus`, `disabled`; the prompt shows it as `property:state`)
|
|
185
|
+
means the value belongs to that interaction state: write the state variant (`hover:bg-…`,
|
|
186
|
+
`active:…`, `focus-visible:…`, `disabled:…` or the matching `:hover` rule), leaving the resting
|
|
187
|
+
style unchanged. No `state` means the resting style.
|
|
188
|
+
- `padding` / `border-radius` may arrive as four values (`8px 12px 8px 12px`); keep them per side.
|
|
189
|
+
- A `width` change can come with `flex-grow` / `flex-basis` items for the same node: together they
|
|
190
|
+
express fixed / fill-container / hug-contents sizing. Apply them as one sizing change.
|
|
191
|
+
|
|
192
|
+
### Suggestion
|
|
193
|
+
|
|
194
|
+
A suggestion binds a literal to a token (`"token": "--space-card"`, `"to": "--space-card"`). Write
|
|
195
|
+
`var(--space-card)` (or the token class), never a literal copy of its resolved value.
|
|
196
|
+
|
|
197
|
+
### Free
|
|
198
|
+
|
|
199
|
+
Apply the `to` rect to the matching `FreeItem` props (`x`, `y`, `width`, `height`). Keep `from` for
|
|
200
|
+
comparison.
|
|
201
|
+
|
|
202
|
+
### Structure
|
|
203
|
+
|
|
204
|
+
Apply the requested node/page/component change using `target`, `body` and the page/frame context.
|
|
205
|
+
If the locator is ambiguous, use the anchor, `source` and HTML; ask the human if it still does not
|
|
206
|
+
resolve.
|
|
207
|
+
|
|
208
|
+
### Component
|
|
209
|
+
|
|
210
|
+
`kind: "component"` items change a component itself.
|
|
211
|
+
|
|
212
|
+
- **Tool items** carry `componentOp` (prompt label `[tool rename|merge|replace]`): `rename`,
|
|
213
|
+
`merge` and `deprecate` with `componentMode: "replace"` were already applied from the syntax
|
|
214
|
+
tree (export, file name, imports, JSX, references, re-exports, `design/components.ts` /
|
|
215
|
+
`design/components.json` keys; merge / replace also wrote the deprecation). Do **not** redo
|
|
216
|
+
them. Fix only `componentOp.leftovers` (strings, object keys, dynamic imports, package
|
|
217
|
+
specifiers, files outside the write scope …) with an AST / language-service rename (tsserver,
|
|
218
|
+
ts-morph), never text search-and-replace, then mark `resolved`. The human undoes a batch with
|
|
219
|
+
`component revert <batchId>`.
|
|
220
|
+
- Deprecation lives only in `design/components.json` (`$deprecated`, `replacement`,
|
|
221
|
+
`deprecatedAt`). Mark-only `component deprecate` / `undeprecate` write it and create no item;
|
|
222
|
+
do not edit it by hand.
|
|
223
|
+
- `delete` → search the whole project first to confirm nothing uses it (imports, aliases,
|
|
224
|
+
namespaces, `as={X}`, `createElement`, `lazy()`, re-exports, strings); if something does,
|
|
225
|
+
replace those usages first, then remove the component, its page and registrations.
|
|
226
|
+
- `tidy` → move `frames` off the component page to the page of the component or screen they
|
|
227
|
+
belong to. Agent tidy proposals act only after
|
|
228
|
+
`proposalDecision: "approved"`; skip rejected ones.
|
|
229
|
+
- `extract` (Promote to component; prompt line `promote to component <Name> from the design |
|
|
230
|
+
split out of <Parent> → <dir> | element: … | purpose: …`) asks for a **new** component `to`
|
|
231
|
+
made from the element at `node` (anchor, `source` file:line, path). `from: "design"`: the
|
|
232
|
+
element is in the design's code; `from: "component"`: it is inside the app component `parent`
|
|
233
|
+
(`parentFile`), whose public props stay as they are. Do this:
|
|
234
|
+
1. Create `to` in `dir` (one file named after it, written like its neighbours). Use existing
|
|
235
|
+
tokens wherever a value matches one (`seji usage --hardcoded <file>` lists
|
|
236
|
+
literals with exact token matches); add no new literals for them.
|
|
237
|
+
2. Add props only for what differs between uses; everything else stays inside.
|
|
238
|
+
3. Replace the original element with `<to … />` (in the design file, or in `parent`) so
|
|
239
|
+
nothing looks different. `snapshot wait <design>` first: the "before" screens are captured
|
|
240
|
+
when the item is written.
|
|
241
|
+
4. Add a component page with a default frame, register it in `design/components.ts`, and write
|
|
242
|
+
`componentDescription` as its `$description` (`seji component describe <to>
|
|
243
|
+
"<text>"`). Check with `seji component show <to>`: it is found and has its page.
|
|
244
|
+
5. Mark the item `resolved` (`status … resolved --reply`). Do not archive it.
|
|
245
|
+
|
|
246
|
+
### Comment
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
seji reply <design> <itemId> "Raised button contrast to match primary token." --resolve
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
Do not delete the comment.
|
|
253
|
+
|
|
254
|
+
## Product components vs sketch components
|
|
255
|
+
|
|
256
|
+
- **Product component**: lives in `src/` (or the shared UI package) and is used by a product entry
|
|
257
|
+
point.
|
|
258
|
+
- **Sketch component**: exists only for the canvas; the product never uses it. Sketches live in
|
|
259
|
+
`design/<design>/sketches/`. The folder is the label; no extra annotation is needed. A file in
|
|
260
|
+
`design/` outside `sketches/` that exports a React component is misplaced (`seji check` warns;
|
|
261
|
+
exceptions: `design.tsx`, `providers.tsx`, the tokens / components index files).
|
|
262
|
+
|
|
263
|
+
Where to write:
|
|
264
|
+
|
|
265
|
+
1. **The comment or request is about existing product UI** → change `src/`. Start from the source the
|
|
266
|
+
comment points at and follow it to the component the product actually renders before editing.
|
|
267
|
+
Before marking it resolved, write in the reply the call chain from the product entry point to that
|
|
268
|
+
component and the `src/` file you changed.
|
|
269
|
+
2. **A new page, inspiration, a few directions, an undecided adjustment** → you may write sketch
|
|
270
|
+
components in `design/<design>/sketches/`. Anything reusable still comes from `src/`: import the
|
|
271
|
+
existing components and tokens, never copy them.
|
|
272
|
+
3. **The comment is about a sketch component** (the editor shows a `Sketch` tag; the prompt line says
|
|
273
|
+
`Sketch: yes`) → change the sketch. Say in the reply: "Only the sketch changed; the product did
|
|
274
|
+
not."
|
|
275
|
+
4. **The direction is decided** (the person says "this one" / "build it into the product", or hands a
|
|
276
|
+
sketch to the agent to build into the product) → move the sketch into `src/`: merge it into the
|
|
277
|
+
existing product component, or create one if there is none. Then make the frame render the `src/`
|
|
278
|
+
component, delete the sketch, and write the call chain in the reply.
|
|
279
|
+
5. **Unsure whether it is 1 or 2** (e.g. `src/` has a similar component but the comment reads like a
|
|
280
|
+
new direction) → ask the person first; do not guess.
|
|
281
|
+
6. **Common mistake**: making the change in a sketch or a copy and then marking a comment about the
|
|
282
|
+
product resolved. `seji status … resolved` prints a reminder when a product-targeted comment is
|
|
283
|
+
resolved while only `design/` files changed.
|
|
284
|
+
|
|
285
|
+
## Update status, do not clear
|
|
286
|
+
|
|
287
|
+
```bash
|
|
288
|
+
seji status <design> <itemId> in_progress
|
|
289
|
+
seji status <design> <itemId> resolved --reply "Applied to shared Button in src/components/Button.tsx."
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
- `in_progress` while working; `resolved` only when the source change is complete (`resolvedAt` is
|
|
293
|
+
set for you). These are the only two statuses you write.
|
|
294
|
+
- Never delete items, never archive, never write `verifiedAt` / `archivedAt` / `checks` /
|
|
295
|
+
`snapshots` / `sourceHash`.
|
|
296
|
+
- Prefer the CLI to hand edits: every ledger writer (editor and CLI) takes the same lock, so your
|
|
297
|
+
update and the human's edits merge.
|
|
298
|
+
- `clear <design>` discards pending non-comment items; run it only when the human asks.
|
|
299
|
+
|
|
300
|
+
## Verify (three checks)
|
|
301
|
+
|
|
302
|
+
```bash
|
|
303
|
+
seji verify <design> --snapshots # values, references, and re-render + diff the screens
|
|
304
|
+
seji verify <design> # values + references (snapshot check from the last compare)
|
|
305
|
+
seji verify <design> --dry-run # why each resolved item is not verified yet
|
|
306
|
+
seji verify <design> --item <id> # one item, any status
|
|
307
|
+
seji health # token health + items awaiting verification (JSON)
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
None need the canvas. Results are stored as `item.checks`:
|
|
311
|
+
|
|
312
|
+
1. `values` — the built token source holds the requested value / alias (stale generated files
|
|
313
|
+
verify nothing: run `tokens build` first).
|
|
314
|
+
2. `references` — from the usage index: replaced literals are gone, a deprecated token has no code
|
|
315
|
+
references left, nothing references an undefined token. On failure `references.left` lists
|
|
316
|
+
files and lines.
|
|
317
|
+
3. `snapshots` — the affected screens before vs after. `pass` = nothing changed, or every changed
|
|
318
|
+
screen accepted. `review` = waiting for the human. `fail` = no screen rendered, a target screen
|
|
319
|
+
is missing, a screen failed / did not stabilise (`unstable`), or was rejected. `pending` = not
|
|
320
|
+
compared since resolve, or still capturing. Fix a broken render via the `snapshot=1` preview
|
|
321
|
+
URL, not by recapturing.
|
|
322
|
+
|
|
323
|
+
| Token action | `values` passes when |
|
|
324
|
+
| --- | --- |
|
|
325
|
+
| `create` / `update` | generated value equals `to` |
|
|
326
|
+
| `alias` / `merge` | generated alias equals `to` |
|
|
327
|
+
| `deprecate` | token is marked `$deprecated` (or gone) |
|
|
328
|
+
| `[tool op]` items | the end state in `tokenOp.expect` (present / absent / aliases / values) |
|
|
329
|
+
| item has `replaces` | also: the literal is gone from `replaces.files` |
|
|
330
|
+
|
|
331
|
+
`verifiedAt` is written when `values` and `references` pass.
|
|
332
|
+
|
|
333
|
+
### Archive rules
|
|
334
|
+
|
|
335
|
+
A `resolved` item archives 10 minutes after `resolvedAt`, except:
|
|
336
|
+
|
|
337
|
+
- token items (other than rejected proposals) also need `verifiedAt`;
|
|
338
|
+
- items with a snapshot baseline also need the snapshot check to be `pass`.
|
|
339
|
+
|
|
340
|
+
Archived items stay in the ledger (History tab).
|
|
341
|
+
|
|
342
|
+
### Snapshot review is the human's
|
|
343
|
+
|
|
344
|
+
Never run `snapshot accept` / `snapshot reject`, and never recapture a baseline (`--force`) to hide
|
|
345
|
+
a diff. A rejected screen sends the item back to you:
|
|
346
|
+
|
|
347
|
+
- the item is `open` again (no `verifiedAt` / `resolvedAt`), its `thread` has
|
|
348
|
+
`Snapshot rejected (<frame>): <reason>`, and `prompt` shows `snapshot rejected <frame>: <reason>`;
|
|
349
|
+
- `seji snapshot show <design> <itemId>` gives the diff images and changed boxes;
|
|
350
|
+
- fix exactly what the reason describes (keep the requested change unless the reason says
|
|
351
|
+
otherwise), mark `resolved`, run `verify <design> --snapshots`.
|
|
352
|
+
|
|
353
|
+
Snapshots need Playwright Chromium (`pnpm add -D playwright && pnpm exec playwright install
|
|
354
|
+
chromium`); without it `verify` still runs the other two checks. Images:
|
|
355
|
+
`design/.seji/snapshots/<design>/<item>/{before,after,diff}/`.
|
|
356
|
+
|
|
357
|
+
Finally run the host project's typecheck and build.
|
|
358
|
+
|
|
359
|
+
## UI action → CLI / HTTP
|
|
360
|
+
|
|
361
|
+
Everything the human does in the editor has a headless entry; you normally use only the first
|
|
362
|
+
block. HTTP routes are on the dev server (`POST` needs `content-type: application/json`, same
|
|
363
|
+
origin); details in `docs/operations.md`.
|
|
364
|
+
|
|
365
|
+
| Editor action | CLI | HTTP |
|
|
366
|
+
| --- | --- | --- |
|
|
367
|
+
| Hand to agent | `prompt <design>` | — |
|
|
368
|
+
| Item status / agent reply | `status`, `reply` | `POST /__seji/api/review` |
|
|
369
|
+
| Approve / Reject / Undo a proposal | `proposal <design> <id> approve\|reject\|reset [--note] [--value]` | `POST /__seji/api/proposal` |
|
|
370
|
+
| Changes: Accept / Send back a screen | `snapshot accept\|reject <design> <id> [<frame>…] [--reason]` | `POST /__seji/api/snapshots` |
|
|
371
|
+
| Changes: re-run checks | `verify --item <id> [--snapshots]` | `POST /__seji/api/verify` |
|
|
372
|
+
| Changes: Undo whole change | `tokens revert <batch>` / `consolidate revert <plan>` / `component revert <batch>` | `POST /__seji/api/tokens/revert`, `…/consolidate/revert`, `…/components {action:"revert"}` |
|
|
373
|
+
| Token page: Rename / Merge into / Deprecate / Delete / value / usage note | `tokens rename\|merge\|deprecate\|delete\|set\|describe` (seji-tokens) | `POST /__seji/api/tokens/<op>` |
|
|
374
|
+
| Promote to new token | (human) — agent equivalent: `propose token … --replaces` | `POST /__seji/api/review` |
|
|
375
|
+
| Promote to component (Inspector) | (human) — the item reaches you through `prompt <design>` | `POST /__seji/api/review` (`upsert` of a `component` / `extract` item) |
|
|
376
|
+
| Consolidate existing styles | `consolidate scan\|plan\|set\|apply\|discard` (seji-tokens) | `/__seji/api/consolidate/<cmd>` |
|
|
377
|
+
| Component page: usage note, Rename, Merge, Deprecate, Undeprecate, Delete, tidy | `component describe\|rename\|merge\|deprecate\|undeprecate\|delete\|tidy` (seji-authoring) | `/__seji/api/components` |
|
|
378
|
+
| Save as changes / comments | (human only) | `POST /__seji/api/review` |
|
|
379
|
+
| Comment screenshot (taken by the editor when a comment is posted) | — (no live view) | `POST /__seji/api/review/shot` `{ design, itemId, png }` |
|
|
380
|
+
|
|
381
|
+
## Common mistakes
|
|
382
|
+
|
|
383
|
+
- Editing generated token files or `design/tokens.ts` instead of `design/tokens/*.tokens.json`.
|
|
384
|
+
- Redoing what a `[tool op]` / `[tool rename|merge|replace]` item already did, or doing a rename /
|
|
385
|
+
merge / deprecate / delete by hand.
|
|
386
|
+
- Choosing a tier for a new token yourself, or creating one without a `$description`.
|
|
387
|
+
- Applying a suggestion as a literal instead of `var(--token)`.
|
|
388
|
+
- Reading browser drafts or alternatives, or treating a draft badge as pending work.
|
|
389
|
+
- Applying a `component`-scoped item at the call site, or a `state` item to the resting style.
|
|
390
|
+
- Editing source before `snapshot wait`.
|
|
391
|
+
- Marking a token resolved without `tokens build` + `tokens check`.
|
|
392
|
+
- Writing `verifiedAt`, `archivedAt`, `checks`, `snapshots` or `sourceHash`; deleting or archiving items.
|
|
393
|
+
- Accepting or rejecting snapshots, or recapturing a baseline to hide a diff.
|
|
394
|
+
- Making the change in a sketch or a copy, then marking a comment about the product resolved.
|
|
395
|
+
- Treating a rejected snapshot as done without reading its reason in the item `thread`.
|