@lemoncat7/dsh-ssh 1.1.7 → 1.1.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/lib/adaptive-workspace.d.ts +22 -0
- package/lib/adaptive-workspace.d.ts.map +1 -0
- package/lib/adaptive-workspace.js +22 -0
- package/lib/adaptive-workspace.js.map +1 -0
- package/lib/client.d.ts.map +1 -1
- package/lib/client.js +46 -28
- package/lib/client.js.map +4 -4
- package/lib/workspace-ownership.d.ts +5 -0
- package/lib/workspace-ownership.d.ts.map +1 -0
- package/lib/workspace-ownership.js +18 -0
- package/lib/workspace-ownership.js.map +1 -0
- package/package.json +1 -2
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Claim the conversation workspace while remaining compatible with installed plugin versions. */
|
|
2
|
+
export declare function activatePluginWorkspace(pluginId: string): void;
|
|
3
|
+
/** Close this workspace when another plugin claims the conversation area. */
|
|
4
|
+
export declare function observePluginWorkspace(pluginId: string, close: () => void): () => void;
|
|
5
|
+
//# sourceMappingURL=workspace-ownership.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-ownership.d.ts","sourceRoot":"","sources":["../src/workspace-ownership.ts"],"names":[],"mappings":"AAMA,kGAAkG;AAClG,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAI9D;AAED,6EAA6E;AAC7E,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAOtF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const WORKSPACE_ACTIVATE_EVENT = '@lemoncat7/dsh-plugin-ui/workspace-activate';
|
|
2
|
+
/** Claim the conversation workspace while remaining compatible with installed plugin versions. */
|
|
3
|
+
export function activatePluginWorkspace(pluginId) {
|
|
4
|
+
window.dispatchEvent(new CustomEvent(WORKSPACE_ACTIVATE_EVENT, {
|
|
5
|
+
detail: { pluginId },
|
|
6
|
+
}));
|
|
7
|
+
}
|
|
8
|
+
/** Close this workspace when another plugin claims the conversation area. */
|
|
9
|
+
export function observePluginWorkspace(pluginId, close) {
|
|
10
|
+
const onActivate = (event) => {
|
|
11
|
+
const detail = event.detail;
|
|
12
|
+
if (detail?.pluginId !== pluginId)
|
|
13
|
+
close();
|
|
14
|
+
};
|
|
15
|
+
window.addEventListener(WORKSPACE_ACTIVATE_EVENT, onActivate);
|
|
16
|
+
return () => window.removeEventListener(WORKSPACE_ACTIVATE_EVENT, onActivate);
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=workspace-ownership.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-ownership.js","sourceRoot":"","sources":["../src/workspace-ownership.ts"],"names":[],"mappings":"AAAA,MAAM,wBAAwB,GAAG,6CAA6C,CAAA;AAM9E,kGAAkG;AAClG,MAAM,UAAU,uBAAuB,CAAC,QAAgB;IACtD,MAAM,CAAC,aAAa,CAAC,IAAI,WAAW,CAA0B,wBAAwB,EAAE;QACtF,MAAM,EAAE,EAAE,QAAQ,EAAE;KACrB,CAAC,CAAC,CAAA;AACL,CAAC;AAED,6EAA6E;AAC7E,MAAM,UAAU,sBAAsB,CAAC,QAAgB,EAAE,KAAiB;IACxE,MAAM,UAAU,GAAG,CAAC,KAAY,EAAQ,EAAE;QACxC,MAAM,MAAM,GAAI,KAA8C,CAAC,MAAM,CAAA;QACrE,IAAI,MAAM,EAAE,QAAQ,KAAK,QAAQ;YAAE,KAAK,EAAE,CAAA;IAC5C,CAAC,CAAA;IACD,MAAM,CAAC,gBAAgB,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAA;IAC7D,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,wBAAwB,EAAE,UAAU,CAAC,CAAA;AAC/E,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lemoncat7/dsh-ssh",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.8",
|
|
4
4
|
"description": "Secure SSH profiles, browser terminals, proxies, port forwarding, and session-scoped AI access for DeepSeek Harness",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"deepseek-harness",
|
|
@@ -87,7 +87,6 @@
|
|
|
87
87
|
"@deepseek-ai/dsh-system-prompt": "0.1.1-rc.2",
|
|
88
88
|
"@deepseek-ai/dsh-terminal": "0.1.1-rc.2",
|
|
89
89
|
"@deepseek-ai/dsh-tools": "0.1.1-rc.2",
|
|
90
|
-
"@lemoncat7/dsh-plugin-ui": "file:../dsh-plugin-ui",
|
|
91
90
|
"@types/node": "^24.0.0",
|
|
92
91
|
"@types/react": "18.3.28",
|
|
93
92
|
"@types/ssh2": "^1.15.5",
|