@kition/kit-photo-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,210 @@
1
+ {
2
+ "$schema": "https://github.com/KitionAI/kition-sdk/schemas/kit.schema.json",
3
+ "khp": "1.0",
4
+ "level": "basic",
5
+ "id": "kit.photo",
6
+ "name": "Photo",
7
+ "version": "0.1.2",
8
+ "license": "Apache-2.0",
9
+ "distribution": "plugin",
10
+ "engine": {
11
+ "runtime": "rust-wasm",
12
+ "module": "kition_photo_kit",
13
+ "class": "PhotoDocument",
14
+ "contract": 2,
15
+ "crate": "kition-photo-kit",
16
+ "editorState": ["/activeLayer", "/selectedLayers", "/isolatedLayers", "/effectsCollapsed", "/hasSelection", "/selectionBounds", "/layerMaskView", "/symmetry", "/quickMask", "/channels/target", "/historyIndex", "/historyRedo", "selected"]
17
+ },
18
+ "formats": [
19
+ {
20
+ "id": "psd",
21
+ "extensions": [
22
+ "psd",
23
+ "psb"
24
+ ],
25
+ "mime": "image/vnd.adobe.photoshop",
26
+ "role": "edit"
27
+ },
28
+ {
29
+ "id": "photo",
30
+ "extensions": [
31
+ "kphoto"
32
+ ],
33
+ "mime": "application/vnd.kition.photo+zip",
34
+ "role": "edit"
35
+ }
36
+ ],
37
+ "creates": [
38
+ {
39
+ "id": "photo",
40
+ "extension": "psd",
41
+ "baseName": "Untitled photo",
42
+ "size": {
43
+ "width": 1920,
44
+ "height": 1080
45
+ }
46
+ }
47
+ ],
48
+ "exports": [
49
+ {
50
+ "extension": "png",
51
+ "mime": "image/png",
52
+ "command": "file.exportImage"
53
+ },
54
+ {
55
+ "extension": "jpg",
56
+ "mime": "image/jpeg",
57
+ "command": "file.exportImage"
58
+ },
59
+ {
60
+ "extension": "tiff",
61
+ "mime": "image/tiff",
62
+ "command": "file.exportImage"
63
+ },
64
+ {
65
+ "extension": "webp",
66
+ "mime": "image/webp",
67
+ "command": "file.exportImage"
68
+ }
69
+ ],
70
+ "capabilities": [
71
+ "selection-outline",
72
+ "kdm"
73
+ ],
74
+ "extras": {
75
+ "selectionOutline": {
76
+ "params": [
77
+ "x0: i32",
78
+ "y0: i32",
79
+ "x1: i32",
80
+ "y1: i32",
81
+ "step: u32"
82
+ ],
83
+ "returns": "Int32Array",
84
+ "description": "The selection's marching-ants segments as flat [ax, ay, bx, by, ...]."
85
+ },
86
+ "layerThumbnail": {
87
+ "params": [
88
+ "layer: u32",
89
+ "max: u32"
90
+ ],
91
+ "returns": "Uint8Array",
92
+ "description": "A layer's own content laid out on the canvas (pixel, type, shape, and object layers their pixels, fill layers their fill; no opacity, mask, or layer style), the canvas's aspect with its longer side max (1-1024): [width u32 LE][height u32 LE] then width x height straight RGBA. Transparent for groups and adjustment layers, which the panel shows as icons; throws for an unknown layer."
93
+ },
94
+ "maskThumbnail": {
95
+ "params": [
96
+ "layer: u32",
97
+ "max: u32"
98
+ ],
99
+ "returns": "Uint8Array",
100
+ "description": "A layer's layer mask in gray, encoded like layerThumbnail; throws when the layer has no layer mask."
101
+ },
102
+ "channelThumbnails": {
103
+ "params": [
104
+ "max: u32"
105
+ ],
106
+ "returns": "Uint8Array",
107
+ "description": "The Channels panel's thumbnails from one reduced render of the composite: [count u32 LE], then each encoded like layerThumbnail, in order: the composite in color, each color channel of the document's mode in gray (a CMYK ink dark where it prints), each alpha or spot channel, and the Quick Mask when the document is in Quick Mask mode."
108
+ },
109
+ "maskTargetCommands": {
110
+ "params": [],
111
+ "returns": "string",
112
+ "description": "JSON {follows, disabled}: the commands the editor aims at a targeted layer mask with \"target\": \"mask\" (paint, fill, paste, filter, and adjustment commands), and those of them that cannot run so aimed now."
113
+ },
114
+ "histogram": {
115
+ "params": [
116
+ "channel: string"
117
+ ],
118
+ "returns": "Uint32Array",
119
+ "description": "The composite's 256 histogram bins of channel rgb (mean of R, G, B), red, green, blue, or luminosity, sampled from a render reduced by a whole factor to at most 1024 pixels on its longer side, so the bins sum to the reduced pixel count (fully transparent pixels are not counted). Throws for another channel."
120
+ },
121
+ "navigatorImage": {
122
+ "params": [
123
+ "max: u32"
124
+ ],
125
+ "returns": "Uint8Array",
126
+ "description": "The Navigator panel's image of the whole composite, its longer side max (1-1024) but never more than the image's own, rendered reduced from a downsampled copy where that is faithful: [width u32 LE][height u32 LE] then width x height straight RGBA."
127
+ },
128
+ "layerObjectIds": {
129
+ "params": [],
130
+ "returns": "string",
131
+ "description": "Each layer's KDM object id by its local layer id, as JSON {\"<layer>\": \"<objectId>\"}: the same on every replica of the document, so a lease on layer:<objectId> names the same layer to everyone (Kit UI protocol section 7b). Empty before the document has made a replica."
132
+ }
133
+ },
134
+ "ui": {
135
+ "mode": "embedded",
136
+ "display": "menus",
137
+ "entry": "ui/index.html",
138
+ "menus": [
139
+ "File",
140
+ "Edit",
141
+ "Image",
142
+ "Layer",
143
+ "Type",
144
+ "Select",
145
+ "Filter",
146
+ "View",
147
+ "Window",
148
+ "Help"
149
+ ],
150
+ "layout": "canvas",
151
+ "brand": {
152
+ "light": "#087fa1",
153
+ "dark": "#4ccbf0"
154
+ }
155
+ },
156
+ "agent": {
157
+ "prefix": "photo",
158
+ "tools": "document",
159
+ "drafts": true,
160
+ "objectModel": true,
161
+ "layout": false,
162
+ "render": "file.render",
163
+ "describe": {
164
+ "noun": "layered image",
165
+ "fileTypes": "PSD, PSB, or .kphoto",
166
+ "reports": "its size, color mode, bit depth, and layers",
167
+ "covers": "layers, adjustments, filters, selections, transforms, type, and more",
168
+ "queries": "`brightness`, `gaussian blur`, or `new layer`",
169
+ "example": "layer.new.layer"
170
+ },
171
+ "export": {
172
+ "command": "file.exportImage",
173
+ "data": "data"
174
+ }
175
+ },
176
+ "headless": {
177
+ "executable": "kition-photo",
178
+ "protocol": "kition-kit/1",
179
+ "features": [
180
+ "view.describe",
181
+ "document.check",
182
+ "document.identity",
183
+ "model.open",
184
+ "model.import",
185
+ "model.export",
186
+ "model.save",
187
+ "model.describe",
188
+ "model.batch"
189
+ ],
190
+ "capabilities": [
191
+ "document-text"
192
+ ]
193
+ },
194
+ "collaboration": {
195
+ "merge": [
196
+ "raster"
197
+ ],
198
+ "leases": [
199
+ "layer:{objectId}"
200
+ ],
201
+ "serverValidation": false
202
+ },
203
+ "model": {
204
+ "schema": "crates/kdm/kdm-model/model/schema.json",
205
+ "schemaVersion": 3
206
+ },
207
+ "objectModel": {
208
+ "namespace": "Photo"
209
+ }
210
+ }
package/kition-photo ADDED
@@ -0,0 +1,4 @@
1
+ [diffend] Oversized file quarantined before diffing.
2
+ name: package/kition-photo
3
+ size: 49595424 bytes
4
+ sha256: fedf8e5938700bce3700771e00b7913eb98b2b1e87dc4341256973c9e0675c46
package/package.json CHANGED
@@ -1,6 +1,38 @@
1
1
  {
2
2
  "name": "@kition/kit-photo-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 Photo kit (kit.photo 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-photo.git"
9
+ },
10
+ "os": [
11
+ "darwin"
12
+ ],
13
+ "cpu": [
14
+ "x64"
15
+ ],
16
+ "files": [
17
+ "kit.json",
18
+ "kition-photo"
19
+ ],
20
+ "kition": {
21
+ "kit": "photo",
22
+ "id": "kit.photo",
23
+ "name": "Photo",
24
+ "version": "0.1.2",
25
+ "role": "headless",
26
+ "platform": "darwin-x64",
27
+ "protocol": "kition-kit/1",
28
+ "extensions": [
29
+ "psd",
30
+ "psb",
31
+ "kphoto"
32
+ ],
33
+ "views": [],
34
+ "build": {
35
+ "commit": "4b57ade7501efe4e7defa9a125f3977ff6fbb231"
36
+ }
37
+ }
38
+ }
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.