@womp/spark-agent 5.2.1 → 5.2.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.
@@ -828,7 +828,7 @@ export function createWompSceneApi(context) {
828
828
  update(id, { lineHeight: clamp(finite(lineHeight, "lineHeight"), 0.5, 3) });
829
829
  },
830
830
  nodeGetDensity: (id) => requireCurve(id).density,
831
- nodeSetDensity: (id, density) => update(id, { density: clamp(Math.round(finite(density, "density")), 1, 250) }),
831
+ nodeSetDensity: (id, density) => update(id, { density: clamp(Math.round(finite(density, "density")), 0, 250) }),
832
832
  nodeGetRoundness: (id) => requireCurve(id).roundness,
833
833
  nodeSetRoundness: (id, roundness) => update(id, { roundness: clamp(Math.round(finite(roundness, "roundness")), 1, 10) }),
834
834
  nodeGetSmoothing: (id) => requireCurve(id).smoothing,
@@ -910,6 +910,8 @@ export function createWompSceneApi(context) {
910
910
  throw new Error("Thickness is unsupported");
911
911
  return node.thickness * unitMultiplier;
912
912
  },
913
+ // Kakapo keeps a node solid for thickness <= 0 and has no maximum. The 1000 cap is this API's
914
+ // own; very large values can overflow the modeller's fp16 encoding in small, high-resolution areas.
913
915
  nodeSetThickness: (id, thickness) => update(id, { thickness: clamp(finite(thickness, "thickness") / unitMultiplier, 0, 1000) }),
914
916
  curveGetClosed: (curveId) => requireBezierCurve(curveId).closed ?? false,
915
917
  curveSetClosed: (curveId, closed) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@womp/spark-agent",
3
- "version": "5.2.1",
3
+ "version": "5.2.2",
4
4
  "description": "Portable skills-based AI agent with local and durable chat transports for Womp",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -110,7 +110,7 @@
110
110
  "@ai-sdk/openai": "4.0.63",
111
111
  "@jitl/quickjs-wasmfile-release-sync": "0.32.0",
112
112
  "@womp/flowir": "0.3.0",
113
- "@womp/kakapo-sdk": "0.7.1",
113
+ "@womp/kakapo-sdk": "0.7.2",
114
114
  "ai": "7.0.95",
115
115
  "eventsource-parser": "^3.0.6",
116
116
  "express": "^5.2.1",