Commit 113b412
committed
feat: add cpToInstance and cpFromInstance functions
Add manually-maintained cp functionality to the SDK for copying files
to/from running instances. This is placed in src/lib/ directory following
the SDK's convention for custom extensions.
Features:
- cpToInstance: Copy local file/directory to instance
- cpFromInstance: Copy file/directory from instance to local
- WebSocket-based streaming with JSON control messages
- Supports files and recursive directory operations
- Handles symlinks, permissions, and modification times
- Chunked binary data transfer for efficient streaming
Adds ws as a peer dependency for WebSocket support.1 parent 14bd119 commit 113b412
4 files changed
+1397
-2198
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
| |||
0 commit comments