dsh-ssh-file 1.2.2 → 1.2.3

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/client.js CHANGED
@@ -1318,7 +1318,11 @@ window.__ModuleLoader__.load({
1318
1318
  return h('span', { style: { fontSize: 16 } }, '🌐');
1319
1319
  }
1320
1320
  try {
1321
- tabsCtx.sidebarRightTabs.register({
1321
+ // Return the register() disposer so the tab type unregisters when
1322
+ // this module generation unloads (remove/disable/reinstall). The
1323
+ // registration otherwise outlives us and the next generation's
1324
+ // register() throws "tab type id is already registered".
1325
+ return tabsCtx.sidebarRightTabs.register({
1322
1326
  id: 'dsh-ssh-file',
1323
1327
  kind: 'remote-files',
1324
1328
  multiple: true,
package/lib/index.js CHANGED
@@ -953,12 +953,20 @@ const RemoteWorkspaceService = class extends TypertRemoteService {
953
953
  clearTimeout(timer);
954
954
  resolve(value);
955
955
  };
956
- const timer = setTimeout(() => finish({ stdout, stderr, exitCode: null, truncated: true, timedOut: true, stdoutBytes, stderrBytes }), timeoutMs);
957
956
  const stdoutParts = [];
958
957
  const stderrParts = [];
959
958
  let stdoutBytes = 0;
960
959
  let stderrBytes = 0;
961
960
  let exitCode = null;
961
+ const timer = setTimeout(() => finish({
962
+ stdout: Buffer.concat(stdoutParts).toString('utf8'),
963
+ stderr: Buffer.concat(stderrParts).toString('utf8'),
964
+ exitCode: null,
965
+ truncated: true,
966
+ timedOut: true,
967
+ stdoutBytes,
968
+ stderrBytes,
969
+ }), timeoutMs);
962
970
  try {
963
971
  connection.client.exec(command, (error, stream) => {
964
972
  if (error) {
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "dsh-ssh-file",
3
3
  "description": "SSH file workspace for DeepSeek Harness: bind DSH workspaces to remote server directories and let the agent read/write remote files and run remote commands via SFTP/SSH. Standalone — no dsh-ssh-ops required.",
4
4
  "icon": "./icon.svg",
5
- "version": "1.2.2",
5
+ "version": "1.2.3",
6
6
  "license": "MIT",
7
7
  "type": "module",
8
8
  "main": "lib/index.js",