Spaces:
Running
Running
docs: updated conventions
Browse files- docs/conventions.md +2 -2
docs/conventions.md
CHANGED
@@ -889,7 +889,7 @@ const process = await teleoperate(robot, { calibrationData });
|
|
889 |
**Proper utils organization prevents reimplementation:**
|
890 |
|
891 |
```
|
892 |
-
|
893 |
βββ sts3215-protocol.ts # Protocol constants
|
894 |
βββ sign-magnitude.ts # Encoding/decoding
|
895 |
βββ serial-port-wrapper.ts # Web Serial wrapper
|
@@ -914,7 +914,7 @@ src/lerobot/web/utils/
|
|
914 |
**Types belong in dedicated directories, not mixed with business logic:**
|
915 |
|
916 |
```
|
917 |
-
|
918 |
βββ robot-connection.ts # Core connection types
|
919 |
βββ robot-config.ts # Hardware configuration types
|
920 |
```
|
|
|
889 |
**Proper utils organization prevents reimplementation:**
|
890 |
|
891 |
```
|
892 |
+
packages/web/src/utils/
|
893 |
βββ sts3215-protocol.ts # Protocol constants
|
894 |
βββ sign-magnitude.ts # Encoding/decoding
|
895 |
βββ serial-port-wrapper.ts # Web Serial wrapper
|
|
|
914 |
**Types belong in dedicated directories, not mixed with business logic:**
|
915 |
|
916 |
```
|
917 |
+
packages/web/src/types/
|
918 |
βββ robot-connection.ts # Core connection types
|
919 |
βββ robot-config.ts # Hardware configuration types
|
920 |
```
|