dsh-workspace-browser 0.4.13 → 0.4.16
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/README.md +1 -0
- package/lib/client.js +1278 -1090
- package/package.json +40 -40
- package/scripts/build.mjs +37 -37
- package/src/browser.css +451 -439
- package/src/client.js +1275 -1087
- package/src/large-icons.svg +6 -6
- package/src/list-view.svg +6 -6
- package/src/menu-folder.svg +7 -7
package/package.json
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dsh-workspace-browser",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"license": "MIT",
|
|
5
|
-
"repository": {
|
|
6
|
-
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/tm5452/dsh-workspace-browser.git"
|
|
8
|
-
},
|
|
9
|
-
"description": "Add folder browsing to DeepSeek Harness sidebar view options.",
|
|
10
|
-
"type": "module",
|
|
11
|
-
"main": "./lib/index.js",
|
|
12
|
-
"exports": {
|
|
13
|
-
".": "./lib/index.js",
|
|
14
|
-
"./client": "./lib/client.js",
|
|
15
|
-
"./package.json": "./package.json"
|
|
16
|
-
},
|
|
17
|
-
"dsh": {
|
|
18
|
-
"bundle": { "patch": "./cordis.patch.yml" },
|
|
19
|
-
"client": {
|
|
20
|
-
"platform": "web",
|
|
21
|
-
"inject": [
|
|
22
|
-
"@deepseek-ai/dsh-api-remotes",
|
|
23
|
-
"@deepseek-ai/dsh-api-workspace-controller",
|
|
24
|
-
"@deepseek-ai/dsh-api-session-controller",
|
|
25
|
-
"@deepseek-ai/dsh-client-locale",
|
|
26
|
-
"@deepseek-ai/dsh-client-ui-context-menu",
|
|
27
|
-
"@deepseek-ai/dsh-client-ui-layout",
|
|
28
|
-
"@deepseek-ai/dsh-client-ui-session",
|
|
29
|
-
"@deepseek-ai/dsh-client-ui-sidebar",
|
|
30
|
-
"@deepseek-ai/dsh-client-ui-workspace"
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
},
|
|
34
|
-
"files": ["lib", "src", "scripts", "cordis.patch.yml"],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "node scripts/build.mjs",
|
|
37
|
-
"prepack": "npm run build"
|
|
38
|
-
},
|
|
39
|
-
"keywords": ["dsh-plugin", "deepseek-harness", "workspace", "sessions"]
|
|
40
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dsh-workspace-browser",
|
|
3
|
+
"version": "0.4.16",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/tm5452/dsh-workspace-browser.git"
|
|
8
|
+
},
|
|
9
|
+
"description": "Add folder browsing to DeepSeek Harness sidebar view options.",
|
|
10
|
+
"type": "module",
|
|
11
|
+
"main": "./lib/index.js",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./lib/index.js",
|
|
14
|
+
"./client": "./lib/client.js",
|
|
15
|
+
"./package.json": "./package.json"
|
|
16
|
+
},
|
|
17
|
+
"dsh": {
|
|
18
|
+
"bundle": { "patch": "./cordis.patch.yml" },
|
|
19
|
+
"client": {
|
|
20
|
+
"platform": "web",
|
|
21
|
+
"inject": [
|
|
22
|
+
"@deepseek-ai/dsh-api-remotes",
|
|
23
|
+
"@deepseek-ai/dsh-api-workspace-controller",
|
|
24
|
+
"@deepseek-ai/dsh-api-session-controller",
|
|
25
|
+
"@deepseek-ai/dsh-client-locale",
|
|
26
|
+
"@deepseek-ai/dsh-client-ui-context-menu",
|
|
27
|
+
"@deepseek-ai/dsh-client-ui-layout",
|
|
28
|
+
"@deepseek-ai/dsh-client-ui-session",
|
|
29
|
+
"@deepseek-ai/dsh-client-ui-sidebar",
|
|
30
|
+
"@deepseek-ai/dsh-client-ui-workspace"
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"files": ["lib", "src", "scripts", "cordis.patch.yml"],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "node scripts/build.mjs",
|
|
37
|
+
"prepack": "npm run build"
|
|
38
|
+
},
|
|
39
|
+
"keywords": ["dsh-plugin", "deepseek-harness", "workspace", "sessions"]
|
|
40
|
+
}
|
package/scripts/build.mjs
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
|
-
|
|
3
|
-
const root = new URL('../', import.meta.url);
|
|
4
|
-
const read = path => readFileSync(new URL(path, root), 'utf8');
|
|
5
|
-
const { name } = JSON.parse(read('package.json'));
|
|
6
|
-
const source = [read('src/mouse-gestures.js'), read('src/client.js')].join('\n');
|
|
7
|
-
const css = [read('src/browser.css'), read('src/gesture.css')].join('\n');
|
|
8
|
-
const folderIcon = `data:image/svg+xml;base64,${Buffer.from(read('src/folder.svg')).toString('base64')}`;
|
|
9
|
-
const sessionIcon = `data:image/svg+xml;base64,${Buffer.from(read('src/session.svg')).toString('base64')}`;
|
|
10
|
-
|
|
11
|
-
const menuFolderIcon = 'data:image/svg+xml;base64,' + Buffer.from(read('src/menu-folder.svg')).toString('base64');
|
|
12
|
-
const largeIconsMenuIcon = 'data:image/svg+xml;base64,' + Buffer.from(read('src/large-icons.svg')).toString('base64');
|
|
13
|
-
const listMenuIcon = 'data:image/svg+xml;base64,' + Buffer.from(read('src/list-view.svg')).toString('base64');
|
|
14
|
-
|
|
15
|
-
// DSH supplies React and its UI primitives through the client module loader.
|
|
16
|
-
const bundle = `// Generated by scripts/build.mjs.
|
|
17
|
-
window.__ModuleLoader__.load({
|
|
18
|
-
id: ${JSON.stringify(name)},
|
|
19
|
-
factory(require) {
|
|
20
|
-
const id = ${JSON.stringify(name)};
|
|
21
|
-
const react = require('react');
|
|
22
|
-
const { createPortal, flushSync } = require('react-dom');
|
|
23
|
-
const ui = require('@deepseek-ai/dsh-client-ui-primitives');
|
|
24
|
-
const css = ${JSON.stringify(css)};
|
|
25
|
-
const folderIcon = ${JSON.stringify(folderIcon)};
|
|
26
|
-
const sessionIcon = ${JSON.stringify(sessionIcon)};
|
|
27
|
-
const largeIconsMenuIcon = ${JSON.stringify(largeIconsMenuIcon)};
|
|
28
|
-
const menuFolderIcon = ${JSON.stringify(menuFolderIcon)};
|
|
29
|
-
const listMenuIcon = ${JSON.stringify(listMenuIcon)};
|
|
30
|
-
${source.trimEnd().split('\n').map(line => ` ${line}`).join('\n')}
|
|
31
|
-
return { apply, inject };
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
`;
|
|
35
|
-
|
|
36
|
-
mkdirSync(new URL('lib/', root), { recursive: true });
|
|
37
|
-
writeFileSync(new URL('lib/client.js', root), bundle);
|
|
1
|
+
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
2
|
+
|
|
3
|
+
const root = new URL('../', import.meta.url);
|
|
4
|
+
const read = path => readFileSync(new URL(path, root), 'utf8');
|
|
5
|
+
const { name } = JSON.parse(read('package.json'));
|
|
6
|
+
const source = [read('src/mouse-gestures.js'), read('src/client.js')].join('\n');
|
|
7
|
+
const css = [read('src/browser.css'), read('src/gesture.css')].join('\n');
|
|
8
|
+
const folderIcon = `data:image/svg+xml;base64,${Buffer.from(read('src/folder.svg')).toString('base64')}`;
|
|
9
|
+
const sessionIcon = `data:image/svg+xml;base64,${Buffer.from(read('src/session.svg')).toString('base64')}`;
|
|
10
|
+
|
|
11
|
+
const menuFolderIcon = 'data:image/svg+xml;base64,' + Buffer.from(read('src/menu-folder.svg')).toString('base64');
|
|
12
|
+
const largeIconsMenuIcon = 'data:image/svg+xml;base64,' + Buffer.from(read('src/large-icons.svg')).toString('base64');
|
|
13
|
+
const listMenuIcon = 'data:image/svg+xml;base64,' + Buffer.from(read('src/list-view.svg')).toString('base64');
|
|
14
|
+
|
|
15
|
+
// DSH supplies React and its UI primitives through the client module loader.
|
|
16
|
+
const bundle = `// Generated by scripts/build.mjs.
|
|
17
|
+
window.__ModuleLoader__.load({
|
|
18
|
+
id: ${JSON.stringify(name)},
|
|
19
|
+
factory(require) {
|
|
20
|
+
const id = ${JSON.stringify(name)};
|
|
21
|
+
const react = require('react');
|
|
22
|
+
const { createPortal, flushSync } = require('react-dom');
|
|
23
|
+
const ui = require('@deepseek-ai/dsh-client-ui-primitives');
|
|
24
|
+
const css = ${JSON.stringify(css)};
|
|
25
|
+
const folderIcon = ${JSON.stringify(folderIcon)};
|
|
26
|
+
const sessionIcon = ${JSON.stringify(sessionIcon)};
|
|
27
|
+
const largeIconsMenuIcon = ${JSON.stringify(largeIconsMenuIcon)};
|
|
28
|
+
const menuFolderIcon = ${JSON.stringify(menuFolderIcon)};
|
|
29
|
+
const listMenuIcon = ${JSON.stringify(listMenuIcon)};
|
|
30
|
+
${source.trimEnd().split('\n').map(line => ` ${line}`).join('\n')}
|
|
31
|
+
return { apply, inject };
|
|
32
|
+
},
|
|
33
|
+
});
|
|
34
|
+
`;
|
|
35
|
+
|
|
36
|
+
mkdirSync(new URL('lib/', root), { recursive: true });
|
|
37
|
+
writeFileSync(new URL('lib/client.js', root), bundle);
|