@pixerate/editor 0.44.0 → 0.46.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.
Files changed (88) hide show
  1. package/README.md +29 -3
  2. package/dist/agent/index.cjs +548 -45
  3. package/dist/agent/index.cjs.map +1 -1
  4. package/dist/agent/index.d.cts +47 -17
  5. package/dist/agent/index.d.ts +47 -17
  6. package/dist/agent/index.js +536 -33
  7. package/dist/agent/index.js.map +1 -1
  8. package/dist/{builtins-BLud97fC.d.cts → builtins-CZW-aYKS.d.cts} +1 -1
  9. package/dist/{builtins-D0BDyAgw.d.ts → builtins-DghNQbT-.d.ts} +1 -1
  10. package/dist/chart/index.cjs +1984 -0
  11. package/dist/chart/index.cjs.map +1 -0
  12. package/dist/chart/index.d.cts +646 -0
  13. package/dist/chart/index.d.ts +646 -0
  14. package/dist/chart/index.js +1984 -0
  15. package/dist/chart/index.js.map +1 -0
  16. package/dist/{chunk-I6BZB5ZH.cjs → chunk-EFDCLENW.cjs} +73 -6
  17. package/dist/chunk-EFDCLENW.cjs.map +1 -0
  18. package/dist/chunk-HHQ4XJWT.js +826 -0
  19. package/dist/chunk-HHQ4XJWT.js.map +1 -0
  20. package/dist/chunk-J3R2OWOE.cjs +1465 -0
  21. package/dist/chunk-J3R2OWOE.cjs.map +1 -0
  22. package/dist/chunk-K2LVZ4FA.cjs +826 -0
  23. package/dist/chunk-K2LVZ4FA.cjs.map +1 -0
  24. package/dist/{chunk-6MDQKHRH.cjs → chunk-N4MLNJPO.cjs} +21 -899
  25. package/dist/chunk-N4MLNJPO.cjs.map +1 -0
  26. package/dist/chunk-PQM5W7ZN.js +168 -0
  27. package/dist/chunk-PQM5W7ZN.js.map +1 -0
  28. package/dist/{chunk-DDADOHJW.js → chunk-Q25ZS4F7.js} +5 -883
  29. package/dist/chunk-Q25ZS4F7.js.map +1 -0
  30. package/dist/chunk-TK2XZK6Z.js +1465 -0
  31. package/dist/chunk-TK2XZK6Z.js.map +1 -0
  32. package/dist/commands/index.cjs +3 -2
  33. package/dist/commands/index.cjs.map +1 -1
  34. package/dist/commands/index.d.cts +5 -5
  35. package/dist/commands/index.d.ts +5 -5
  36. package/dist/commands/index.js +2 -1
  37. package/dist/commands/index.js.map +1 -1
  38. package/dist/extensions/index.cjs +4 -4
  39. package/dist/extensions/index.cjs.map +1 -1
  40. package/dist/extensions/index.d.cts +3 -3
  41. package/dist/extensions/index.d.ts +3 -3
  42. package/dist/extensions/index.js +12 -12
  43. package/dist/generation/index.cjs +2 -2
  44. package/dist/generation/index.d.cts +4 -4
  45. package/dist/generation/index.d.ts +4 -4
  46. package/dist/generation/index.js +1 -1
  47. package/dist/image-editor/index.cjs +24 -24
  48. package/dist/image-editor/index.cjs.map +1 -1
  49. package/dist/image-editor/index.d.cts +2 -2
  50. package/dist/image-editor/index.d.ts +2 -2
  51. package/dist/image-editor/index.js +24 -24
  52. package/dist/image-editor/index.js.map +1 -1
  53. package/dist/{index-C6gaQRH0.d.cts → index-CfOQf70b.d.cts} +1 -1
  54. package/dist/{index-DXAv_R08.d.ts → index-jwJ_onWf.d.ts} +1 -1
  55. package/dist/index.cjs +9 -9
  56. package/dist/index.cjs.map +1 -1
  57. package/dist/index.d.cts +4 -4
  58. package/dist/index.d.ts +4 -4
  59. package/dist/index.js +12 -12
  60. package/dist/parameters/index.d.cts +2 -2
  61. package/dist/parameters/index.d.ts +2 -2
  62. package/dist/{registry-DnzpgY27.d.cts → registry-B4l-lYts.d.cts} +1 -1
  63. package/dist/{registry-DhVUZioj.d.ts → registry-BfVD-vVg.d.ts} +1 -1
  64. package/dist/{registry-BDe-vlv3.d.ts → registry-CSlH4iUn.d.ts} +1 -1
  65. package/dist/{registry-D0GADKc7.d.cts → registry-vz6HOiiy.d.cts} +1 -1
  66. package/dist/{schema-DYDGdYL9.d.cts → schema-Di0CS6Pe.d.cts} +26 -2
  67. package/dist/{schema-DYDGdYL9.d.ts → schema-Di0CS6Pe.d.ts} +26 -2
  68. package/dist/tools/index.cjs +37 -3
  69. package/dist/tools/index.cjs.map +1 -1
  70. package/dist/tools/index.d.cts +871 -11
  71. package/dist/tools/index.d.ts +871 -11
  72. package/dist/tools/index.js +36 -2
  73. package/dist/vector/index.d.cts +2 -2
  74. package/dist/vector/index.d.ts +2 -2
  75. package/package.json +6 -1
  76. package/dist/chunk-36BLROHV.js +0 -438
  77. package/dist/chunk-36BLROHV.js.map +0 -1
  78. package/dist/chunk-5H2OPMXZ.js +0 -586
  79. package/dist/chunk-5H2OPMXZ.js.map +0 -1
  80. package/dist/chunk-6MDQKHRH.cjs.map +0 -1
  81. package/dist/chunk-D6S5M7HV.js +0 -101
  82. package/dist/chunk-D6S5M7HV.js.map +0 -1
  83. package/dist/chunk-DDADOHJW.js.map +0 -1
  84. package/dist/chunk-I6BZB5ZH.cjs.map +0 -1
  85. package/dist/chunk-MC2LQN5S.cjs +0 -586
  86. package/dist/chunk-MC2LQN5S.cjs.map +0 -1
  87. package/dist/chunk-V7CC7RZ6.cjs +0 -438
  88. package/dist/chunk-V7CC7RZ6.cjs.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.cjs';
2
- import { A as AgentToolProvider, a as AgentTool } from '../registry-DnzpgY27.cjs';
3
- import '../schema-DYDGdYL9.cjs';
2
+ import { A as AgentToolProvider, a as AgentTool } from '../registry-B4l-lYts.cjs';
3
+ import '../schema-Di0CS6Pe.cjs';
4
4
 
5
5
  /**
6
6
  * Photoshop blend modes on straight (non-premultiplied) 0..1 colours.
@@ -1,6 +1,6 @@
1
1
  import { b as LoadReport, J as JsonObject, f as MigrationStep } from '../migrate-iTlm3a8h.js';
2
- import { A as AgentToolProvider, a as AgentTool } from '../registry-BDe-vlv3.js';
3
- import '../schema-DYDGdYL9.js';
2
+ import { A as AgentToolProvider, a as AgentTool } from '../registry-CSlH4iUn.js';
3
+ import '../schema-Di0CS6Pe.js';
4
4
 
5
5
  /**
6
6
  * Photoshop blend modes on straight (non-premultiplied) 0..1 colours.
@@ -5190,11 +5190,11 @@ function createImageSelectionTools(controller) {
5190
5190
  inputSchema: {
5191
5191
  type: "object",
5192
5192
  properties: {
5193
- shape: { type: "string", enum: ["rect", "ellipse", "all", "none", "invert"] },
5194
- x: { type: "number" },
5195
- y: { type: "number" },
5196
- width: { type: "number" },
5197
- height: { type: "number" },
5193
+ shape: { type: "string", enum: ["rect", "ellipse", "all", "none", "invert"], description: "What to select." },
5194
+ x: { type: "number", description: "rect / ellipse: left edge in natural image pixels." },
5195
+ y: { type: "number", description: "rect / ellipse: top edge in natural image pixels." },
5196
+ width: { type: "number", description: "rect / ellipse: width in natural image pixels." },
5197
+ height: { type: "number", description: "rect / ellipse: height in natural image pixels." },
5198
5198
  mode: modeSchema,
5199
5199
  feather: { type: "number", minimum: 0, description: "Feather radius in pixels (default 0)." }
5200
5200
  },
@@ -5237,8 +5237,8 @@ function createImageSelectionTools(controller) {
5237
5237
  inputSchema: {
5238
5238
  type: "object",
5239
5239
  properties: {
5240
- x: { type: "number" },
5241
- y: { type: "number" },
5240
+ x: { type: "number", description: "Seed point x in natural image pixels." },
5241
+ y: { type: "number", description: "Seed point y in natural image pixels." },
5242
5242
  color: { type: "string", description: "#rrggbb: select this colour everywhere instead of a seed point." },
5243
5243
  tolerance: { type: "number", minimum: 0, maximum: 255, description: "Magic wand tolerance (default 32)." },
5244
5244
  contiguous: { type: "boolean", description: "Only the connected region around (x, y) (default true)." },
@@ -5268,8 +5268,8 @@ function createImageSelectionTools(controller) {
5268
5268
  inputSchema: {
5269
5269
  type: "object",
5270
5270
  properties: {
5271
- op: { type: "string", enum: [...SELECTION_MODIFY_OPS] },
5272
- radius: { type: "number", minimum: 0, maximum: 500 }
5271
+ op: { type: "string", enum: [...SELECTION_MODIFY_OPS], description: "How to modify the selection." },
5272
+ radius: { type: "number", minimum: 0, maximum: 500, description: "Radius in pixels." }
5273
5273
  },
5274
5274
  required: ["op", "radius"],
5275
5275
  additionalProperties: false
@@ -5289,12 +5289,12 @@ function createImageSelectionTools(controller) {
5289
5289
  inputSchema: {
5290
5290
  type: "object",
5291
5291
  properties: {
5292
- radius: { type: "number", minimum: 0, maximum: 64 },
5293
- smartRadius: { type: "boolean" },
5294
- smooth: { type: "number", minimum: 0, maximum: 100 },
5295
- feather: { type: "number", minimum: 0, maximum: 250 },
5296
- contrast: { type: "number", minimum: 0, maximum: 100 },
5297
- shiftEdge: { type: "number", minimum: -100, maximum: 100 }
5292
+ radius: { type: "number", minimum: 0, maximum: 64, description: "Edge detection radius in pixels." },
5293
+ smartRadius: { type: "boolean", description: "Adapt the radius to hard and soft edges." },
5294
+ smooth: { type: "number", minimum: 0, maximum: 100, description: "Smooth the edge outline (0-100)." },
5295
+ feather: { type: "number", minimum: 0, maximum: 250, description: "Feather the edge (pixels)." },
5296
+ contrast: { type: "number", minimum: 0, maximum: 100, description: "Sharpen the edge transition (0-100)." },
5297
+ shiftEdge: { type: "number", minimum: -100, maximum: 100, description: "Move the edge out (+) or in (-), in percent." }
5298
5298
  },
5299
5299
  additionalProperties: false
5300
5300
  },
@@ -5319,11 +5319,11 @@ function createImageSelectionTools(controller) {
5319
5319
  inputSchema: {
5320
5320
  type: "object",
5321
5321
  properties: {
5322
- layerId: { type: "string" },
5323
- kind: { type: "string", enum: ADJUSTMENT_KINDS.map((k) => k.kind) },
5324
- params: { type: "object" },
5325
- density: { type: "number", minimum: 0, maximum: 1 },
5326
- feather: { type: "number", minimum: 0, maximum: 1e3 }
5322
+ layerId: { type: "string", description: "Existing adjustment layer to mask." },
5323
+ kind: { type: "string", enum: ADJUSTMENT_KINDS.map((k) => k.kind), description: "Kind of a new layer to add and mask (instead of layerId)." },
5324
+ params: { type: "object", description: "Parameters for the new layer (see list_controls)." },
5325
+ density: { type: "number", minimum: 0, maximum: 1, description: "Mask density 0-1." },
5326
+ feather: { type: "number", minimum: 0, maximum: 1e3, description: "Mask feather in pixels." }
5327
5327
  },
5328
5328
  additionalProperties: false
5329
5329
  },
@@ -5504,11 +5504,11 @@ function createImageEditorToolProvider(controller, options = {}) {
5504
5504
  inputSchema: {
5505
5505
  type: "object",
5506
5506
  properties: {
5507
- kind: { type: "string", enum: ADJUSTMENT_KINDS.map((k) => k.kind) },
5507
+ kind: { type: "string", enum: ADJUSTMENT_KINDS.map((k) => k.kind), description: "Adjustment kind." },
5508
5508
  params: { type: "object", description: "Initial parameters (see list_controls); merged with neutral defaults." },
5509
- opacity: { type: "number", minimum: 0, maximum: 1 },
5510
- blend: { type: "string", enum: BLEND_MODES.map((m) => m.id) },
5511
- name: { type: "string" }
5509
+ opacity: { type: "number", minimum: 0, maximum: 1, description: "Layer opacity 0-1 (default 1)." },
5510
+ blend: { type: "string", enum: BLEND_MODES.map((m) => m.id), description: "Blend mode (default normal)." },
5511
+ name: { type: "string", description: "Layer name shown in the layers panel." }
5512
5512
  },
5513
5513
  required: ["kind"],
5514
5514
  additionalProperties: false