@fastgpt-sdk/sandbox-adapter 0.0.4 → 0.0.5

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -843,6 +843,10 @@ class SealosDevboxAdapter extends BaseSandboxAdapter {
843
843
  command: cmd,
844
844
  timeoutSeconds: options?.timeoutMs ? Math.ceil(options.timeoutMs / 1000) : undefined
845
845
  });
846
+ if (!res.data) {
847
+ console.log(res);
848
+ throw new CommandExecutionError(`Command execution failed: ${command}`, command);
849
+ }
846
850
  return {
847
851
  stdout: res.data.stdout,
848
852
  stderr: res.data.stderr,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastgpt-sdk/sandbox-adapter",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "description": "Unified abstraction layer for cloud sandbox providers with adapter pattern and feature polyfilling",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",