just-bash 1.5.3 → 1.5.4
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/dist/AGENTS.md +27 -0
- package/package.json +1 -1
package/dist/AGENTS.md
CHANGED
|
@@ -200,3 +200,30 @@ Common exit codes:
|
|
|
200
200
|
- Network access requires explicit URL allowlists
|
|
201
201
|
- Execution limits prevent infinite loops
|
|
202
202
|
- No shell injection possible (commands are parsed, not eval'd)
|
|
203
|
+
|
|
204
|
+
## Discovering Types
|
|
205
|
+
|
|
206
|
+
TypeScript types are available in the `.d.ts` files. Use JSDoc-style exploration to understand the API:
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
# Find all type definition files
|
|
210
|
+
find node_modules/just-bash/dist -name "*.d.ts" | head -20
|
|
211
|
+
|
|
212
|
+
# View main exports and their types
|
|
213
|
+
cat node_modules/just-bash/dist/index.d.ts
|
|
214
|
+
|
|
215
|
+
# View Bash class options
|
|
216
|
+
grep -A 30 "interface BashOptions" node_modules/just-bash/dist/Bash.d.ts
|
|
217
|
+
|
|
218
|
+
# View AI tool options
|
|
219
|
+
cat node_modules/just-bash/dist/ai/index.d.ts
|
|
220
|
+
|
|
221
|
+
# Search for specific types
|
|
222
|
+
grep -r "interface.*Options" node_modules/just-bash/dist/*.d.ts
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
Key types to explore:
|
|
226
|
+
- `BashOptions` - Constructor options for `new Bash()`
|
|
227
|
+
- `ExecResult` - Return type of `bash.exec()`
|
|
228
|
+
- `CreateBashToolOptions` - Options for `createBashTool()`
|
|
229
|
+
- `InitialFiles` - File specification format
|