@wisdoverse/dsh-inline-media-viewer 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.
- package/CHANGELOG.md +5 -0
- package/client/client.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.0.7
|
|
4
|
+
|
|
5
|
+
- Resolve backticked media filenames against a preceding backticked directory,
|
|
6
|
+
matching the common "output directory plus file list" response format.
|
|
7
|
+
|
|
3
8
|
## 1.0.6
|
|
4
9
|
|
|
5
10
|
- Resolve workspace media from persisted session metadata when a historical
|
package/client/client.js
CHANGED
|
@@ -79,6 +79,7 @@ window.__ModuleLoader__.load({
|
|
|
79
79
|
function extractCandidates(text) {
|
|
80
80
|
const found = [];
|
|
81
81
|
const seen = new Set();
|
|
82
|
+
let directory = "";
|
|
82
83
|
const add = (raw) => {
|
|
83
84
|
const source = cleanCandidate(raw);
|
|
84
85
|
const kind = mediaKind(source);
|
|
@@ -92,7 +93,9 @@ window.__ModuleLoader__.load({
|
|
|
92
93
|
return " ".repeat(match.length);
|
|
93
94
|
});
|
|
94
95
|
plain = plain.replace(/`([^`\n]+)`/g, (match, source) => {
|
|
95
|
-
|
|
96
|
+
const value = cleanCandidate(source);
|
|
97
|
+
if (/[/\\]$/.test(value)) directory = value;
|
|
98
|
+
else add(directory && !/[/\\]/.test(value) ? `${directory}${value}` : value);
|
|
96
99
|
return " ".repeat(match.length);
|
|
97
100
|
});
|
|
98
101
|
plain = plain.replace(/https?:\/\/[^\s<>"'`]+/gi, (source) => {
|
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.7",
|
|
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",
|