@loopstack/sandbox-filesystem 0.4.1 → 0.4.2

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/README.md +3 -32
  2. package/package.json +8 -4
package/README.md CHANGED
@@ -24,40 +24,11 @@ This module is essential for workflows that need to manipulate files in isolated
24
24
 
25
25
  ## Installation
26
26
 
27
- You can add this module using the `loopstack` cli or via `npm`.
27
+ See [SETUP.md](./SETUP.md) for installation and setup instructions.
28
28
 
29
- ### a) Add Sources via `loopstack add`
29
+ **Note:** This module requires `@loopstack/sandbox-tool` as a dependency.
30
30
 
31
- ```bash
32
- loopstack add @loopstack/sandbox-filesystem
33
- ```
34
-
35
- This command copies the source files into your `src` directory.
36
-
37
- - It is a great way to explore the code to learn new concepts or add own customizations
38
- - It will set up the module for you, so you do not need to manually update your application
39
-
40
- ### b) Install via `npm install`(recommended)
41
-
42
- ```bash
43
- npm install --save @loopstack/sandbox-filesystem
44
- ```
45
-
46
- Use npm install if you want to use and maintain the module as node dependency.
47
-
48
- - Use this, if you do not need to make changes to the code or want to review the source code.
49
-
50
- ## Setup
51
-
52
- ### 1. Manual setup (optional)
53
-
54
- > This step is automatically done for you when using the `loopstack add` command.
55
-
56
- - Add `SandboxFilesystemModule` to the imports of `default.module.ts` or any other custom module.
57
-
58
- See here for more information about working with [Modules](https://loopstack.ai/docs/building-with-loopstack/creating-a-module) and [Workspaces](https://loopstack.ai/docs/building-with-loopstack/creating-workspaces)
59
-
60
- ### 2. Use in Your Workflow
31
+ ## Usage
61
32
 
62
33
  Inject the tools in your workflow class using the @InjectTool() decorator:
63
34
 
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "filesystem",
8
8
  "sandbox"
9
9
  ],
10
- "version": "0.4.1",
10
+ "version": "0.4.2",
11
11
  "license": "Apache-2.0",
12
12
  "author": {
13
13
  "name": "Tobias Blättermann, Jakob Klippel"
@@ -27,8 +27,8 @@
27
27
  "watch": "nest build --watch"
28
28
  },
29
29
  "dependencies": {
30
- "@loopstack/common": "^0.20.0",
31
- "@loopstack/sandbox-tool": "^0.4.1",
30
+ "@loopstack/common": "^0.20.3",
31
+ "@loopstack/sandbox-tool": "^0.4.2",
32
32
  "@nestjs/common": "^11.1.12",
33
33
  "zod": "^4.3.5"
34
34
  },
@@ -48,6 +48,10 @@
48
48
  "maxWorkers": 1
49
49
  },
50
50
  "loopstack": {
51
- "module": "src/sandbox-filesystem.module.ts"
51
+ "module": "src/sandbox-filesystem.module.ts",
52
+ "installModes": [
53
+ "add",
54
+ "install"
55
+ ]
52
56
  }
53
57
  }