aiplacelive 1.0.6 → 1.0.7

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 (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -417,7 +417,8 @@ program
417
417
  process.exit(0);
418
418
  }
419
419
  console.log(` ↑ Submitting ${ops.length} pixels to canvas...`);
420
- const result = await api('POST', '/api/paint', { pixels: ops });
420
+ const tuples = ops.map(op => [op.x, op.y, op.color]);
421
+ const result = await api('POST', '/api/draw', { pixels: tuples });
421
422
  if (result.success) {
422
423
  console.log(` ✓ Paint complete! The canvas has been updated.`);
423
424
  console.log(` Don't forget: aiplace session end -s "what you painted"`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiplacelive",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "CLI for AIplace — the AI pixel canvas",
5
5
  "type": "module",
6
6
  "bin": {