@vellumai/assistant 0.12.2-dev.202609171516.2acdfd4 → 0.12.2-dev.202609171820.9ecfa87
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/package.json
CHANGED
|
@@ -37,13 +37,27 @@ Pass a concrete model ID only if the user names one explicitly. If the tool reje
|
|
|
37
37
|
Generate (no model parameter, default is correct):
|
|
38
38
|
|
|
39
39
|
```json
|
|
40
|
-
{
|
|
40
|
+
{
|
|
41
|
+
"tool": "media_generate_image",
|
|
42
|
+
"input": {
|
|
43
|
+
"prompt": "A sunset over the ocean, golden hour, soft haze, 35mm photo style",
|
|
44
|
+
"variants": 2
|
|
45
|
+
}
|
|
46
|
+
}
|
|
41
47
|
```
|
|
42
48
|
|
|
43
49
|
Edit:
|
|
44
50
|
|
|
45
51
|
```json
|
|
46
|
-
{
|
|
52
|
+
{
|
|
53
|
+
"tool": "media_generate_image",
|
|
54
|
+
"input": {
|
|
55
|
+
"prompt": "Remove the watermark text from the background. Keep the subject, framing, lighting, and colors exactly identical. Change nothing else.",
|
|
56
|
+
"mode": "edit",
|
|
57
|
+
"source_paths": ["conversations/<conv-id>/attachments/photo.jpeg"],
|
|
58
|
+
"model": "openai"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
47
61
|
```
|
|
48
62
|
|
|
49
63
|
`source_paths` is a flat array of file path strings. Do NOT pass objects:
|
|
@@ -72,6 +86,7 @@ Edits on large photos are slow (1 to 2 minutes). If the tool reports a timeout (
|
|
|
72
86
|
Each generated image is saved into the workspace under `media/generated/` and the tool result lists the saved paths. The images also come back as inline content blocks so you can judge the result before presenting it.
|
|
73
87
|
|
|
74
88
|
- Present an image to the user by embedding its saved path in your reply: ``. The app renders it inline where your text refers to it, and chat channels (Slack, Telegram, WhatsApp) deliver it as a native image upload.
|
|
89
|
+
- Label a plain image link "View image", for example `[View image](vellum://workspace/media/generated/<file>.png)`. The link opens a preview; do not call it "Download" or promise a download in the surrounding text. To save the image, the user can choose Download in the preview.
|
|
75
90
|
- If you do not embed it, the image is still auto-attached to your reply as a file, so it is never lost. Prefer embedding: an attachment chip at the end of the message is a worse presentation than the image inline.
|
|
76
91
|
- To iterate on a result, pass its saved path via `source_paths` with `mode: "edit"`.
|
|
77
92
|
|
|
@@ -46,7 +46,7 @@ const log = getLogger("desktop-session");
|
|
|
46
46
|
|
|
47
47
|
export const DESKTOP_VNC_PORT = 5999;
|
|
48
48
|
const DESKTOP_GEOMETRY = `${DESKTOP_WIDTH}x${DESKTOP_HEIGHT}`;
|
|
49
|
-
const DESKTOP_LINGER_MS =
|
|
49
|
+
const DESKTOP_LINGER_MS = 24 * 60 * 60_000;
|
|
50
50
|
const VNC_READY_DEADLINE_MS = 10_000;
|
|
51
51
|
const VNC_PROBE_INTERVAL_MS = 100;
|
|
52
52
|
const KILL_GRACE_MS = 2_000;
|