You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 3, 2026. It is now read-only.
-**`src/`**: All production code lives here with co-located unit tests
62
-
-**`src/__tests__/`**: Unit tests for specific source files (tests internal functionality)
77
+
-**`src/__tests__/`**: Unit tests for root-level source files
78
+
-**`src/models/`**: Model provider implementations (Bedrock, future providers)
79
+
-**`src/tools/`**: Tool definitions and types for agent tool use
80
+
-**`src/types/`**: Core type definitions used across the SDK
63
81
-**`tests_integ/`**: Integration tests (tests public API and external integrations)
64
82
-**`.github/workflows/`**: CI/CD automation and quality gates
65
83
-**`.project/`**: Task management and project tracking
66
84
85
+
**IMPORTANT**: After making changes that affect the directory structure (adding new directories, moving files, or adding significant new files), you MUST update this directory structure section to reflect the current state of the repository.
86
+
67
87
## Development Workflow for Agents
68
88
69
89
### 1. Environment Setup
@@ -93,23 +113,19 @@ All checks must pass before commit is allowed.
93
113
94
114
## Coding Patterns and Best Practices
95
115
96
-
### TypeScript Path Aliases
116
+
### Import Organization
97
117
98
-
Use path aliases for cleaner imports:
118
+
Use relative imports for internal modules:
99
119
100
120
```typescript
101
-
// Good: Use path alias
102
-
import { hello } from'@/hello'
103
-
import { Agent } from'@/agent'
121
+
// Good: Relative imports for internal modules
122
+
import { hello } from'./hello'
123
+
import { Agent } from'../agent'
104
124
105
-
// Avoid: Relative paths
106
-
import { hello } from'../hello'
107
-
import { Agent } from'../../agent'
125
+
// Good: External dependencies
126
+
import { something } from'external-package'
108
127
```
109
128
110
-
**Configuration**: Path aliases are configured in `tsconfig.json` and `vitest.config.ts`:
111
-
-`@/*` maps to `src/*`
112
-
113
129
### File Organization Pattern
114
130
115
131
**For source files**:
@@ -133,7 +149,7 @@ Follow this nested describe pattern for consistency:
0 commit comments