skema-core 0.2.0 → 2.1.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/README.md +11 -3
- package/dist/cli.js +896 -63
- package/dist/index.d.mts +37 -7
- package/dist/index.d.ts +37 -7
- package/dist/index.js +739 -136
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +740 -137
- package/dist/index.mjs.map +1 -1
- package/dist/mcp.js +413 -0
- package/dist/server.d.mts +107 -31
- package/dist/server.d.ts +107 -31
- package/dist/server.js +451 -42
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +430 -32
- package/dist/server.mjs.map +1 -1
- package/package.json +11 -4
package/README.md
CHANGED
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
|
|
14
14
|
## Overview
|
|
15
15
|
|
|
16
|
-
Skema is
|
|
16
|
+
Skema is an npm package that provides a tldraw-powered drawing overlay for annotating and manipulating DOM elements visually. It sits on top of your localhost website, allowing developers to annotate, draw, and select DOM elements directly on the live page. Combined with AI, your annotations become code changes.
|
|
17
17
|
|
|
18
18
|
## Features
|
|
19
19
|
|
|
20
20
|
- **Drawing Overlay**: Use tldraw's powerful drawing tools directly on your website
|
|
21
|
-
- **DOM
|
|
21
|
+
- **DOM Selection**: Double-click on the canvas to select the element under the cursor (or use brush/lasso selection)
|
|
22
22
|
- **AI Code Generation**: Annotations are sent to AI (Gemini or Claude) which edits your code
|
|
23
23
|
- **Undo/Revert**: Git-based snapshots let you revert changes per-annotation
|
|
24
24
|
- **Non-Invasive**: Transparent overlay that doesn't interfere with your page when not in use
|
|
@@ -112,7 +112,15 @@ npx skema-core help # Show help
|
|
|
112
112
|
## Keyboard Shortcuts
|
|
113
113
|
|
|
114
114
|
- **⌘⇧E** (Cmd+Shift+E / Ctrl+Shift+E): Toggle Skema overlay
|
|
115
|
-
- **
|
|
115
|
+
- **s**: Select tool
|
|
116
|
+
- **d**: Draw tool
|
|
117
|
+
- **l**: Lasso select
|
|
118
|
+
- **e**: Eraser
|
|
119
|
+
- **r**: Rectangle (shapes)
|
|
120
|
+
- **o**: Ellipse (shapes)
|
|
121
|
+
- **Escape**: Close popup or shape picker
|
|
122
|
+
|
|
123
|
+
To select a DOM element for annotation, double-click on the canvas over that element.
|
|
116
124
|
|
|
117
125
|
## Props
|
|
118
126
|
|