@wisdoverse/dsh-inline-media-viewer 1.0.7 → 1.0.8
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/CHANGELOG.md +5 -0
- package/client/client.js +4 -11
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.8
|
|
4
|
+
|
|
5
|
+
- Preserve output-directory context across assistant steps in one turn, so a
|
|
6
|
+
later final answer containing only media filenames still renders previews.
|
|
7
|
+
|
|
3
8
|
## 1.0.7
|
|
4
9
|
|
|
5
10
|
- Resolve backticked media filenames against a preceding backticked directory,
|
package/client/client.js
CHANGED
|
@@ -115,22 +115,15 @@ window.__ModuleLoader__.load({
|
|
|
115
115
|
function selectMedia(owner) {
|
|
116
116
|
const settings = readSettings();
|
|
117
117
|
if (!settings.autoRender) return null;
|
|
118
|
-
const
|
|
119
|
-
const seen = new Set();
|
|
118
|
+
const text = [];
|
|
120
119
|
for (const step of owner.turn.steps) {
|
|
121
120
|
const assistant = step.data.get("assistant-step");
|
|
122
121
|
if (!assistant || !assistant.finalNode || assistant.finalNode.seq > owner.seq || !Array.isArray(assistant.blocks)) continue;
|
|
123
|
-
|
|
122
|
+
text.push(...assistant.blocks
|
|
124
123
|
.filter((block) => block && block.kind === "text" && typeof block.text === "string")
|
|
125
|
-
.map((block) => block.text)
|
|
126
|
-
.join("\n");
|
|
127
|
-
for (const candidate of extractCandidates(text)) {
|
|
128
|
-
if (seen.has(candidate.source)) continue;
|
|
129
|
-
seen.add(candidate.source);
|
|
130
|
-
candidates.push(candidate);
|
|
131
|
-
if (candidates.length === settings.displayCap) return candidates;
|
|
132
|
-
}
|
|
124
|
+
.map((block) => block.text));
|
|
133
125
|
}
|
|
126
|
+
const candidates = extractCandidates(text.join("\n")).slice(0, settings.displayCap);
|
|
134
127
|
return candidates.length === 0 ? null : candidates;
|
|
135
128
|
}
|
|
136
129
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wisdoverse/dsh-inline-media-viewer",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "Persistent inline image, video, and audio previews for DeepSeek Harness Web conversations, with workspace-confined local reads and an optional ComfyUI proxy.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|