fix aborting issue

This commit is contained in:
Dax Raad
2025-06-14 21:23:57 -04:00
parent b855511d9a
commit 0e035b3115
4 changed files with 128 additions and 88 deletions

View File

@@ -16,9 +16,19 @@
- **Naming**: camelCase for variables/functions, PascalCase for classes/namespaces
- **Error handling**: Use Result patterns, avoid throwing exceptions in tools
- **File structure**: Namespace-based organization (e.g., `Tool.define()`, `Session.create()`)
## IMPORTANT
- Try to keep things in one function unless composable or reusable
- DO NOT do unnecessary destructuring of variables
- DO NOT use else statements unless necessary
- DO NOT use try catch if it can be avoided
- AVOID try catch where possible
- AVOID else statements
- AVOID using `any` type
- AVOID let statements
- PREFER single word variable names where possible
- Use as many bun apis as possible like Bun.file()
## Architecture
@@ -27,4 +37,3 @@
- **Validation**: All inputs validated with Zod schemas
- **Logging**: Use `Log.create({ service: "name" })` pattern
- **Storage**: Use `Storage` namespace for persistence