@daydreamui/figma 0.0.0-stage → 0.3.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/icon.svg ADDED
@@ -0,0 +1,10 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none">
2
+ <!-- Figma symbol: https://www.figma.com/using-the-figma-brand/; Daydream palette. -->
3
+ <g transform="translate(5.333333 2) scale(.0333333333) translate(-312 -340)">
4
+ <path d="M312 840C312 784.772 356.772 740 412 740H512V840C512 895.228 467.228 940 412 940C356.772 940 312 895.228 312 840Z" fill="#E7E5DE"/>
5
+ <path d="M512 340V540H612C667.228 540 712 495.228 712 440C712 384.772 667.228 340 612 340H512Z" fill="#E7E5DE"/>
6
+ <circle cx="611.167" cy="640" r="100" fill="#F66A2C"/>
7
+ <path d="M312 440C312 495.228 356.772 540 412 540H512V340H412C356.772 340 312 384.772 312 440Z" fill="#839999"/>
8
+ <path d="M312 640C312 695.228 356.772 740 412 740H512V540H412C356.772 540 312 584.772 312 640Z" fill="#839999"/>
9
+ </g>
10
+ </svg>
package/manifest.json ADDED
@@ -0,0 +1,35 @@
1
+ {
2
+ "id": "daydream.figma",
3
+ "name": "Figma",
4
+ "description": "Bring frames from the file open in Figma desktop onto the canvas, as images or as pages.",
5
+ "version": "0.3.0",
6
+ "api": "3.1",
7
+ "contributes": {
8
+ "panels": [
9
+ "figma"
10
+ ],
11
+ "conversation": true,
12
+ "itemKinds": [
13
+ "daydream.figma.reference",
14
+ "mrbavio.figma.reference"
15
+ ],
16
+ "tools": [
17
+ "figma_metadata",
18
+ "figma_design_context",
19
+ "figma_screenshot",
20
+ "figma_variables"
21
+ ],
22
+ "instructions": "The Figma plugin reads the file open in Figma desktop on this machine through Figma's own Dev Mode MCP server, so you need no Figma setup of your own: figma_metadata answers a node's tree (XML of ids, names and boxes; with no node, Figma's selection, or the document's pages when nothing is selected), figma_design_context its code as Figma renders it (React and Tailwind, to transcribe into the project's own HTML and CSS, never to ship as it is; its images are served at http://localhost:3845/assets/ only while Figma runs, so copy the ones a page uses into the project's assets/), figma_screenshot its PNG, written into the open project's .daydream/figma/<node>.png and answered as that path, and figma_variables the variables it uses. Figma desktop must be open with the Dev Mode MCP server on in its preferences; when it is not, each tool answers one sentence saying so, and the user opens Figma. The panel's two gestures take what is selected in Figma, one frame or several. Add as image lands each frame's screenshot on the canvas as a daydream.figma.reference item, payload {src, name, nodeId}: src a file of the project's own (assets/<file>), name the frame's, nodeId Figma's id or null. Add as page sends you a prompt to transcribe the frame as a page of the project, and the plugin holds the project's conversation for those rounds, showing your turn in its panel. Nothing writes to Figma."
23
+ },
24
+ "permissions": [
25
+ {
26
+ "name": "network",
27
+ "reason": "the host part talks to Figma desktop's Dev Mode MCP server on this machine only (http://127.0.0.1:3845), reading what Figma has open; nothing leaves the machine"
28
+ },
29
+ {
30
+ "name": "Writes project files",
31
+ "reason": "an image copies a frame's screenshot into the project's assets/, an agent's screenshot is written into its .daydream/figma/, and a page an agent transcribes is made in the project"
32
+ }
33
+ ],
34
+ "built": "dist/index.js"
35
+ }
package/package.json CHANGED
@@ -1,6 +1,17 @@
1
1
  {
2
2
  "name": "@daydreamui/figma",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.3.0",
4
+ "type": "module",
5
+ "description": "Bring frames from the file open in Figma desktop onto the canvas, as images or as pages.",
6
+ "keywords": [
7
+ "daydream-plugin"
8
+ ],
9
+ "publishConfig": {
10
+ "access": "public"
11
+ },
12
+ "repository": {
13
+ "type": "git",
14
+ "url": "git+https://github.com/martinbavio/daydream-plugins.git",
15
+ "directory": "plugins/daydream.figma"
16
+ }
17
+ }