@clawchatsai/connector 0.0.64 → 0.0.65
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/dist/index.js +11 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -127,13 +127,20 @@ async function ensureNativeModules(ctx) {
|
|
|
127
127
|
}
|
|
128
128
|
const CLAWCHATS_MD_CONTENT = `# ClawChats — Inline File Delivery
|
|
129
129
|
|
|
130
|
-
To deliver a file inline in this chat,
|
|
130
|
+
To deliver a file inline in this chat, run an exec that outputs a MEDIA: line:
|
|
131
131
|
|
|
132
132
|
MEDIA:/absolute/path/to/file
|
|
133
133
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
**After creating any file** (via Write tool or exec), deliver it by running:
|
|
135
|
+
|
|
136
|
+
exec echo "MEDIA:/absolute/path/to/file"
|
|
137
|
+
|
|
138
|
+
For files created during an exec command, you can inline it at the end of the same command:
|
|
139
|
+
|
|
140
|
+
exec python3 generate.py --output /tmp/result.png && echo "MEDIA:/tmp/result.png"
|
|
141
|
+
|
|
142
|
+
Notes:
|
|
143
|
+
- Works for images (png, jpg, gif, webp, svg, etc.), documents, markdown, code files, and more
|
|
137
144
|
- Output each path once — duplicates are ignored automatically
|
|
138
145
|
`;
|
|
139
146
|
async function startClawChats(ctx, api, mediaStash) {
|