@agent-canvas/cli 0.9.2 → 0.9.3
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.
|
@@ -23,7 +23,11 @@ export async function addShape(options, deps = defaultDeps) {
|
|
|
23
23
|
customData: options.note ? { note: options.note } : undefined,
|
|
24
24
|
};
|
|
25
25
|
if (options.label) {
|
|
26
|
-
params.label = {
|
|
26
|
+
params.label = {
|
|
27
|
+
text: options.label,
|
|
28
|
+
fontSize: options.labelFontSize,
|
|
29
|
+
strokeColor: options.labelStrokeColor,
|
|
30
|
+
};
|
|
27
31
|
}
|
|
28
32
|
const result = await client.send({
|
|
29
33
|
type: 'addShape',
|
package/dist/index.js
CHANGED
|
@@ -25,7 +25,7 @@ const program = new Command();
|
|
|
25
25
|
program
|
|
26
26
|
.name('agent-canvas')
|
|
27
27
|
.description('CLI for Agent Canvas - Excalidraw interface for AI agents')
|
|
28
|
-
.version('0.9.
|
|
28
|
+
.version('0.9.3');
|
|
29
29
|
program
|
|
30
30
|
.command('start')
|
|
31
31
|
.description('Start the canvas server and open in browser')
|
|
@@ -56,6 +56,7 @@ program
|
|
|
56
56
|
.option('--fill-style <style>', 'Fill style: hachure, cross-hatch, solid, or zigzag')
|
|
57
57
|
.option('-l, --label <text>', 'Text label inside the shape')
|
|
58
58
|
.option('--label-font-size <number>', 'Label font size', parseFloat)
|
|
59
|
+
.option('--label-stroke-color <color>', 'Label text color (hex, defaults to --stroke-color)')
|
|
59
60
|
.option('-n, --note <text>', 'Note for this element (stored in customData)')
|
|
60
61
|
.action(async (options) => {
|
|
61
62
|
await addShape({
|
|
@@ -71,6 +72,7 @@ program
|
|
|
71
72
|
fillStyle: options.fillStyle,
|
|
72
73
|
label: options.label,
|
|
73
74
|
labelFontSize: options.labelFontSize,
|
|
75
|
+
labelStrokeColor: options.labelStrokeColor,
|
|
74
76
|
note: options.note,
|
|
75
77
|
}, addShapeDeps);
|
|
76
78
|
});
|