@kition/kit-design-darwin-x64 0.0.0-stage → 0.1.2

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/kit.json ADDED
@@ -0,0 +1,225 @@
1
+ {
2
+ "$schema": "https://github.com/KitionAI/kition-sdk/schemas/kit.schema.json",
3
+ "khp": "1.0",
4
+ "level": "agent-ready",
5
+ "id": "kit.design",
6
+ "name": "Design",
7
+ "version": "0.1.2",
8
+ "license": "Apache-2.0",
9
+ "distribution": "plugin",
10
+ "engine": {
11
+ "runtime": "rust-wasm",
12
+ "module": "kition_design_kit",
13
+ "class": "DesignDocument",
14
+ "contract": 2,
15
+ "crate": "kition-design-kit",
16
+ "editorState": ["/page", "/tree", "/background", "/area", "/initialArea", "/contentBounds", "/selection", "/selectionBounds", "/tool", "/editing", "/textEdit", "/vectorEdit", "/interaction", "/hover"]
17
+ },
18
+ "formats": [
19
+ {
20
+ "id": "design",
21
+ "extensions": ["kdesign"],
22
+ "mime": "application/vnd.kition.design+zip",
23
+ "role": "edit"
24
+ },
25
+ {
26
+ "id": "design-import",
27
+ "extensions": ["fig", "sketch"],
28
+ "mime": "application/octet-stream",
29
+ "role": "view"
30
+ }
31
+ ],
32
+ "creates": [
33
+ {
34
+ "id": "design",
35
+ "extension": "kdesign",
36
+ "baseName": "Untitled design",
37
+ "size": { "width": 1440, "height": 1024 }
38
+ }
39
+ ],
40
+ "exports": [
41
+ { "extension": "png", "mime": "image/png", "command": "file.export" },
42
+ { "extension": "jpg", "mime": "image/jpeg", "command": "file.export" },
43
+ { "extension": "svg", "mime": "image/svg+xml", "command": "file.export" },
44
+ { "extension": "pdf", "mime": "application/pdf", "command": "file.export" }
45
+ ],
46
+ "capabilities": ["engine-tools", "kdm", "lent-files"],
47
+ "ui": {
48
+ "mode": "embedded",
49
+ "display": "menus",
50
+ "entry": "ui/index.html",
51
+ "menus": ["File", "Edit", "View", "Object", "Text", "Arrange", "Vector", "Preferences", "Libraries"],
52
+ "layout": "canvas",
53
+ "brand": {
54
+ "light": "#00875F",
55
+ "dark": "#02DA96"
56
+ }
57
+ },
58
+ "agent": {
59
+ "prefix": "design",
60
+ "tools": "document",
61
+ "drafts": false,
62
+ "objectModel": true,
63
+ "layout": false,
64
+ "describe": {
65
+ "noun": "interface design",
66
+ "fileTypes": ".kdesign",
67
+ "reports": "its pages, layer count, selection, tool, and undo state",
68
+ "covers": "frames, shapes, text, auto layout, components, styles, variables, prototyping, and more",
69
+ "queries": "`rectangle`, `auto layout`, or `component`",
70
+ "example": "shape.rectangle"
71
+ },
72
+ "render": "file.render",
73
+ "export": {
74
+ "command": "file.export",
75
+ "data": "data",
76
+ "params": {
77
+ "ids": []
78
+ }
79
+ }
80
+ },
81
+ "headless": {
82
+ "executable": "kition-design",
83
+ "protocol": "kition-kit/1",
84
+ "features": [
85
+ "view.describe",
86
+ "document.check",
87
+ "model.open",
88
+ "model.import",
89
+ "model.export",
90
+ "model.save",
91
+ "model.describe",
92
+ "model.batch",
93
+ "document.identity"
94
+ ]
95
+ },
96
+ "model": {
97
+ "schema": "crates/kdm/kdm-model/model/schema.json",
98
+ "schemaVersion": 4
99
+ },
100
+ "collaboration": {
101
+ "merge": ["structured", "rich-text", "binary"],
102
+ "leases": [],
103
+ "serverValidation": false
104
+ },
105
+ "objectModel": {
106
+ "namespace": "Design"
107
+ },
108
+ "extras": {
109
+ "query": {
110
+ "params": ["name: string", "params: string"],
111
+ "returns": "string",
112
+ "description": "A panel's answer as JSON: pages, layers, selection, node, document, selectionColors, componentProperties, instanceExposed, prototype, components, styles, variables, devInspect, code, componentCode, devAssets, readyForDev, annotations, annotationCategories, measurements, devResources, comments, versions, branches, framePresets, fonts, documentColors, imagePresets, vectorEdit, textSelection, menus, checked, exportSettings, fontFamilies, font, missingFonts, textStyles, recentColors, prefs, keymap, toolbar, layersAt, distances, paddingLines, redlines, commentPeople, commentPins, protoConnections, paintHandles, blurHandles, playground, evaluate, vectorBounds, shapeBuilderRegions, variable.modeRows, clipboard.paintState, image.info, history, layers.dropInfo, assets.list, drop.preview, library.list, library.updates, library.files, variables.pickFor, menu.context, hitTest, rename.preview, prefs.recentActions, layout.gridGeometry, arrange.spacingInfo, dev.focusState, dev.compare, codeLinks, annotation.callouts, version.previewState, proto.destinations, proto.parseExpression (bindings/wasm/src/query.rs, canvas.rs, panels.rs, lists.rs)"
113
+ },
114
+ "chrome": {
115
+ "params": ["zoom: number"],
116
+ "returns": "string",
117
+ "description": "The canvas chrome in document pixels as JSON: frame labels, the size pill, auto layout padding and gap handles, layout grids, the pixel grid, rulers, ruler guides (bindings/wasm/src/chrome.rs)"
118
+ },
119
+ "exportNode": {
120
+ "params": ["id: string", "format: string", "scale: number"],
121
+ "returns": "Uint8Array",
122
+ "description": "One layer exported as png, jpg, webp, svg, pdf, or xml at scale: the file's bytes"
123
+ },
124
+ "exportNodeWith": {
125
+ "params": ["id: string", "params: string"],
126
+ "returns": "Uint8Array",
127
+ "description": "One layer exported with an export setting's options ({ index?, setting?: { format, size, contentsOnly, includeBoundingBox, svgOutlineText, svgIdAttribute, svgSimplifyStroke, print, vdCompat }, format?, scale? }): the file's bytes (bindings/wasm/src/query.rs)"
128
+ },
129
+ "thumbnail": {
130
+ "params": [],
131
+ "returns": "Uint8Array",
132
+ "description": "A PNG thumbnail of the first page"
133
+ },
134
+ "beginInteraction": {
135
+ "params": ["label: string"],
136
+ "returns": "boolean",
137
+ "description": "Starts an interaction: the edits until commitInteraction are one undo step named label (number scrubs, colour drags, handle drags); true when this call opened it, false when one was open already (bindings/wasm/src/view.rs)"
138
+ },
139
+ "commitInteraction": {
140
+ "params": [],
141
+ "returns": "boolean",
142
+ "description": "Ends the editor's interaction as one undo step; true when it recorded one"
143
+ },
144
+ "cancelInteraction": {
145
+ "params": [],
146
+ "returns": "boolean",
147
+ "description": "Abandons the editor's interaction and restores the document; true when there was one"
148
+ },
149
+ "setViewport": {
150
+ "params": ["x: number", "y: number", "width: number", "height: number", "zoom: number"],
151
+ "returns": "void",
152
+ "description": "Tells the engine the editor's view: document pixel (x, y) at the viewport's top-left, width x height screen pixels, zoom; never an edit"
153
+ },
154
+ "viewTarget": {
155
+ "params": ["command: string", "params: string"],
156
+ "returns": "string",
157
+ "description": "Where a View menu zoom command (view.zoomFit, view.zoomSelection, view.zoom100, view.zoomIn, view.zoomAt, view.nextFrame, ...) takes the view, as JSON { zoom, x, y, centerX, centerY, rect, selection } in document pixels, for the editor to animate its own viewport (bindings/wasm/src/view.rs)"
158
+ },
159
+ "nodeThumbnail": {
160
+ "params": ["id: string", "size: number"],
161
+ "returns": "Uint8Array",
162
+ "description": "A layer drawn to fit a size x size square (at most 2x) as a transparent PNG: layer and asset thumbnails (bindings/wasm/src/preview.rs)"
163
+ },
164
+ "textPreview": {
165
+ "params": ["params: string"],
166
+ "returns": "Uint8Array",
167
+ "description": "Text drawn in its own font as a transparent PNG, for font lists ({ family, style?, size?, text? }) and text style samples ({ styleId }), with color, scale, maxWidth, maxHeight (bindings/wasm/src/preview.rs)"
168
+ },
169
+ "samplePixel": {
170
+ "params": ["x: number", "y: number", "zoom: number"],
171
+ "returns": "string",
172
+ "description": "The colour the canvas shows at a document pixel, #rrggbb: the colour picker's eyedropper"
173
+ },
174
+ "strokePreviewOutline": {
175
+ "params": ["params: string"],
176
+ "returns": "string",
177
+ "description": "A brush's outline ({ preset, width?, height? }) along a short line as SVG path data in CSS pixels, stroked with 1 px lines by the Stroke section's brush rows (bindings/wasm/src/panels.rs)"
178
+ },
179
+ "setHover": {
180
+ "params": ["id: string | null"],
181
+ "returns": "boolean",
182
+ "description": "Outlines a layer on the canvas as the hover does (null clears it), shared with the layers panel; inspect().hover reads it back; never moves the revision (bindings/wasm/src/view.rs)"
183
+ },
184
+ "setDevMode": {
185
+ "params": ["on: boolean"],
186
+ "returns": "boolean",
187
+ "description": "Turns the engine's Dev Mode tool state on or off (measure on hover, no handles, ends text and vector editing); true when it changed (bindings/wasm/src/view.rs)"
188
+ },
189
+ "player": {
190
+ "params": ["command: string", "params: string"],
191
+ "returns": "string",
192
+ "description": "The prototype player (start, stop, state, tick, event, restart, back, closeOverlay, scrollTo, resize, inspect) as JSON { handled, changed, missed, cursor, links, transition, state }, inspect as { id, name, bounds, clip, sections }; never changes the document (bindings/wasm/src/player.rs)"
193
+ },
194
+ "playerRender": {
195
+ "params": ["params: string"],
196
+ "returns": "Uint8Array",
197
+ "description": "The player's screen ({ scale?, format?: png or rgba, progress?, state?: current or from }) as PNG bytes, or RGBA: the picture's width and height (two little-endian u32) then its pixels; the last transition drawn at progress (bindings/wasm/src/player.rs)"
198
+ },
199
+ "devCompareRender": {
200
+ "params": ["params: string"],
201
+ "returns": "Uint8Array",
202
+ "description": "Dev Mode's compare view picture ({ id?, version?, side: before or after, maxSide? }) as a PNG, at the scale query('dev.compare') gives (bindings/wasm/src/lists/dev.rs)"
203
+ },
204
+ "playgroundPreview": {
205
+ "params": ["params: string"],
206
+ "returns": "Uint8Array",
207
+ "description": "A component playground's instance with the chosen property values ({ id?, properties?, scale?, maxSide? }) as a PNG; never changes the document (bindings/wasm/src/lists/dev.rs)"
208
+ },
209
+ "lendLibrary": {
210
+ "params": ["path: string", "bytes: Uint8Array | null"],
211
+ "returns": "boolean",
212
+ "description": "Lends the library file a design names (query('library.files'): a workspace path relative to the document's folder) as the editor read it with host/read, or null when it can't be read; the engine reads library files through it, else through the host's lent files; never an edit; true when what the path reads changed (bindings/wasm/src/libraries.rs)"
213
+ },
214
+ "libraryThumbnail": {
215
+ "params": ["library: string", "id: string", "size: number"],
216
+ "returns": "Uint8Array",
217
+ "description": "A component or set of an enabled library drawn from its published snapshot to fit a size x size square, as a PNG: the Assets panel's library tiles (bindings/wasm/src/libraries.rs)"
218
+ },
219
+ "recordAction": {
220
+ "params": ["key: string"],
221
+ "returns": "void",
222
+ "description": "Remembers an action run from the Actions palette for its Recents (query('prefs.recentActions')), newest first; session only (bindings/wasm/src/lists.rs)"
223
+ }
224
+ }
225
+ }
package/kition-design ADDED
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/kition-design
3
+ size: 89361968 bytes
4
+ sha256: e8c75bc601973f75c8bf058fd73561fa78772f2f10c21ddb8e3b83a4e57a4c43
package/package.json CHANGED
@@ -1,6 +1,39 @@
1
1
  {
2
2
  "name": "@kition/kit-design-darwin-x64",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.2",
4
+ "description": "Kition's Design kit (kit.design 0.1.2) for darwin-x64: its headless executable and kit.json. Not for installing by hand: kition installs it.",
5
+ "license": "Apache-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/KitionAI/kition-design.git"
9
+ },
10
+ "os": [
11
+ "darwin"
12
+ ],
13
+ "cpu": [
14
+ "x64"
15
+ ],
16
+ "files": [
17
+ "kit.json",
18
+ "kition-design"
19
+ ],
20
+ "kition": {
21
+ "kit": "design",
22
+ "id": "kit.design",
23
+ "name": "Design",
24
+ "version": "0.1.2",
25
+ "role": "headless",
26
+ "platform": "darwin-x64",
27
+ "protocol": "kition-kit/1",
28
+ "extensions": [
29
+ "kdesign"
30
+ ],
31
+ "views": [
32
+ "fig",
33
+ "sketch"
34
+ ],
35
+ "build": {
36
+ "commit": "24c53ca27d9e06f7188c999cdc6ae37822ddb9ce"
37
+ }
38
+ }
39
+ }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.