@daytonaio/sdk 0.128.0-alpha.1 → 0.128.1

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.
Files changed (276) hide show
  1. package/package.json +8 -20
  2. package/{cjs → src}/CodeInterpreter.d.ts +0 -1
  3. package/src/CodeInterpreter.js.map +1 -0
  4. package/{esm → src}/ComputerUse.d.ts +0 -1
  5. package/src/ComputerUse.js.map +1 -0
  6. package/{cjs → src}/Daytona.d.ts +1 -2
  7. package/{cjs → src}/Daytona.js +8 -6
  8. package/{cjs → src}/Daytona.js.map +1 -1
  9. package/{esm → src}/FileSystem.d.ts +0 -1
  10. package/src/FileSystem.js.map +1 -0
  11. package/{esm → src}/Git.d.ts +0 -1
  12. package/src/Git.js.map +1 -0
  13. package/{cjs → src}/Image.d.ts +0 -21
  14. package/{cjs → src}/Image.js +91 -123
  15. package/src/Image.js.map +1 -0
  16. package/{cjs → src}/LspServer.d.ts +0 -1
  17. package/src/LspServer.js.map +1 -0
  18. package/{esm → src}/ObjectStorage.d.ts +0 -1
  19. package/src/ObjectStorage.js.map +1 -0
  20. package/{cjs → src}/Process.d.ts +0 -1
  21. package/src/Process.js.map +1 -0
  22. package/{cjs → src}/PtyHandle.d.ts +0 -1
  23. package/src/PtyHandle.js.map +1 -0
  24. package/{cjs → src}/Sandbox.d.ts +17 -2
  25. package/{cjs → src}/Sandbox.js +27 -1
  26. package/src/Sandbox.js.map +1 -0
  27. package/{cjs → src}/Snapshot.d.ts +0 -2
  28. package/{cjs → src}/Snapshot.js +1 -9
  29. package/src/Snapshot.js.map +1 -0
  30. package/{esm → src}/Volume.d.ts +0 -1
  31. package/src/Volume.js.map +1 -0
  32. package/{cjs → src}/code-toolbox/SandboxJsCodeToolbox.d.ts +0 -1
  33. package/src/code-toolbox/SandboxJsCodeToolbox.js.map +1 -0
  34. package/{cjs → src}/code-toolbox/SandboxPythonCodeToolbox.d.ts +0 -1
  35. package/src/code-toolbox/SandboxPythonCodeToolbox.js.map +1 -0
  36. package/{cjs → src}/code-toolbox/SandboxTsCodeToolbox.d.ts +0 -1
  37. package/src/code-toolbox/SandboxTsCodeToolbox.js.map +1 -0
  38. package/{esm → src}/errors/DaytonaError.d.ts +0 -1
  39. package/src/errors/DaytonaError.js.map +1 -0
  40. package/{cjs → src}/index.d.ts +0 -1
  41. package/src/index.js.map +1 -0
  42. package/{esm → src}/types/Charts.d.ts +0 -1
  43. package/src/types/Charts.js.map +1 -0
  44. package/{esm → src}/types/CodeInterpreter.d.ts +0 -1
  45. package/src/types/CodeInterpreter.js.map +1 -0
  46. package/{cjs → src}/types/ExecuteResponse.d.ts +0 -1
  47. package/src/types/ExecuteResponse.js.map +1 -0
  48. package/{cjs → src}/types/Pty.d.ts +0 -1
  49. package/src/types/Pty.js.map +1 -0
  50. package/{cjs → src}/utils/ArtifactParser.d.ts +0 -1
  51. package/src/utils/ArtifactParser.js.map +1 -0
  52. package/{esm → src}/utils/Binary.d.ts +0 -1
  53. package/src/utils/Binary.js.map +1 -0
  54. package/{cjs → src}/utils/FileTransfer.d.ts +0 -1
  55. package/src/utils/FileTransfer.js.map +1 -0
  56. package/{cjs → src}/utils/Import.d.ts +15 -2
  57. package/src/utils/Import.js +77 -0
  58. package/src/utils/Import.js.map +1 -0
  59. package/{esm → src}/utils/Multipart.d.ts +0 -1
  60. package/src/utils/Multipart.js.map +1 -0
  61. package/{cjs → src}/utils/Runtime.d.ts +0 -1
  62. package/src/utils/Runtime.js.map +1 -0
  63. package/{cjs → src}/utils/Stream.d.ts +0 -1
  64. package/src/utils/Stream.js.map +1 -0
  65. package/{esm → src}/utils/WebSocket.d.ts +0 -1
  66. package/src/utils/WebSocket.js.map +1 -0
  67. package/LICENSE +0 -190
  68. package/cjs/CodeInterpreter.d.ts.map +0 -1
  69. package/cjs/CodeInterpreter.js.map +0 -1
  70. package/cjs/ComputerUse.d.ts +0 -443
  71. package/cjs/ComputerUse.d.ts.map +0 -1
  72. package/cjs/ComputerUse.js.map +0 -1
  73. package/cjs/Daytona.d.ts.map +0 -1
  74. package/cjs/FileSystem.d.ts +0 -328
  75. package/cjs/FileSystem.d.ts.map +0 -1
  76. package/cjs/FileSystem.js.map +0 -1
  77. package/cjs/Git.d.ts +0 -203
  78. package/cjs/Git.d.ts.map +0 -1
  79. package/cjs/Git.js.map +0 -1
  80. package/cjs/Image.d.ts.map +0 -1
  81. package/cjs/Image.js.map +0 -1
  82. package/cjs/LspServer.d.ts.map +0 -1
  83. package/cjs/LspServer.js.map +0 -1
  84. package/cjs/ObjectStorage.d.ts +0 -79
  85. package/cjs/ObjectStorage.d.ts.map +0 -1
  86. package/cjs/ObjectStorage.js.map +0 -1
  87. package/cjs/Process.d.ts.map +0 -1
  88. package/cjs/Process.js.map +0 -1
  89. package/cjs/PtyHandle.d.ts.map +0 -1
  90. package/cjs/PtyHandle.js.map +0 -1
  91. package/cjs/README.md +0 -147
  92. package/cjs/Sandbox.d.ts.map +0 -1
  93. package/cjs/Sandbox.js.map +0 -1
  94. package/cjs/Snapshot.d.ts.map +0 -1
  95. package/cjs/Snapshot.js.map +0 -1
  96. package/cjs/Volume.d.ts +0 -84
  97. package/cjs/Volume.d.ts.map +0 -1
  98. package/cjs/Volume.js.map +0 -1
  99. package/cjs/code-toolbox/SandboxJsCodeToolbox.d.ts.map +0 -1
  100. package/cjs/code-toolbox/SandboxJsCodeToolbox.js.map +0 -1
  101. package/cjs/code-toolbox/SandboxPythonCodeToolbox.d.ts.map +0 -1
  102. package/cjs/code-toolbox/SandboxPythonCodeToolbox.js.map +0 -1
  103. package/cjs/code-toolbox/SandboxTsCodeToolbox.d.ts.map +0 -1
  104. package/cjs/code-toolbox/SandboxTsCodeToolbox.js.map +0 -1
  105. package/cjs/errors/DaytonaError.d.ts +0 -32
  106. package/cjs/errors/DaytonaError.d.ts.map +0 -1
  107. package/cjs/errors/DaytonaError.js.map +0 -1
  108. package/cjs/index.d.ts.map +0 -1
  109. package/cjs/index.js.map +0 -1
  110. package/cjs/package.json +0 -3
  111. package/cjs/types/Charts.d.ts +0 -152
  112. package/cjs/types/Charts.d.ts.map +0 -1
  113. package/cjs/types/Charts.js.map +0 -1
  114. package/cjs/types/CodeInterpreter.d.ts +0 -77
  115. package/cjs/types/CodeInterpreter.d.ts.map +0 -1
  116. package/cjs/types/CodeInterpreter.js.map +0 -1
  117. package/cjs/types/ExecuteResponse.d.ts.map +0 -1
  118. package/cjs/types/ExecuteResponse.js.map +0 -1
  119. package/cjs/types/Pty.d.ts.map +0 -1
  120. package/cjs/types/Pty.js.map +0 -1
  121. package/cjs/utils/ArtifactParser.d.ts.map +0 -1
  122. package/cjs/utils/ArtifactParser.js.map +0 -1
  123. package/cjs/utils/Binary.d.ts +0 -39
  124. package/cjs/utils/Binary.d.ts.map +0 -1
  125. package/cjs/utils/Binary.js.map +0 -1
  126. package/cjs/utils/FileTransfer.d.ts.map +0 -1
  127. package/cjs/utils/FileTransfer.js.map +0 -1
  128. package/cjs/utils/Import.d.ts.map +0 -1
  129. package/cjs/utils/Import.js +0 -81
  130. package/cjs/utils/Import.js.map +0 -1
  131. package/cjs/utils/Multipart.d.ts +0 -27
  132. package/cjs/utils/Multipart.d.ts.map +0 -1
  133. package/cjs/utils/Multipart.js.map +0 -1
  134. package/cjs/utils/Runtime.d.ts.map +0 -1
  135. package/cjs/utils/Runtime.js.map +0 -1
  136. package/cjs/utils/Stream.d.ts.map +0 -1
  137. package/cjs/utils/Stream.js.map +0 -1
  138. package/cjs/utils/WebSocket.d.ts +0 -10
  139. package/cjs/utils/WebSocket.d.ts.map +0 -1
  140. package/cjs/utils/WebSocket.js.map +0 -1
  141. package/esm/CodeInterpreter.d.ts +0 -96
  142. package/esm/CodeInterpreter.d.ts.map +0 -1
  143. package/esm/CodeInterpreter.js +0 -295
  144. package/esm/CodeInterpreter.js.map +0 -1
  145. package/esm/ComputerUse.d.ts.map +0 -1
  146. package/esm/ComputerUse.js +0 -509
  147. package/esm/ComputerUse.js.map +0 -1
  148. package/esm/Daytona.d.ts +0 -354
  149. package/esm/Daytona.d.ts.map +0 -1
  150. package/esm/Daytona.js +0 -410
  151. package/esm/Daytona.js.map +0 -1
  152. package/esm/FileSystem.d.ts.map +0 -1
  153. package/esm/FileSystem.js +0 -331
  154. package/esm/FileSystem.js.map +0 -1
  155. package/esm/Git.d.ts.map +0 -1
  156. package/esm/Git.js +0 -260
  157. package/esm/Git.js.map +0 -1
  158. package/esm/Image.d.ts +0 -285
  159. package/esm/Image.d.ts.map +0 -1
  160. package/esm/Image.js +0 -569
  161. package/esm/Image.js.map +0 -1
  162. package/esm/LspServer.d.ts +0 -172
  163. package/esm/LspServer.d.ts.map +0 -1
  164. package/esm/LspServer.js +0 -204
  165. package/esm/LspServer.js.map +0 -1
  166. package/esm/ObjectStorage.d.ts.map +0 -1
  167. package/esm/ObjectStorage.js +0 -187
  168. package/esm/ObjectStorage.js.map +0 -1
  169. package/esm/Process.d.ts +0 -442
  170. package/esm/Process.d.ts.map +0 -1
  171. package/esm/Process.js +0 -644
  172. package/esm/Process.js.map +0 -1
  173. package/esm/PtyHandle.d.ts +0 -155
  174. package/esm/PtyHandle.d.ts.map +0 -1
  175. package/esm/PtyHandle.js +0 -374
  176. package/esm/PtyHandle.js.map +0 -1
  177. package/esm/README.md +0 -147
  178. package/esm/Sandbox.d.ts +0 -359
  179. package/esm/Sandbox.d.ts.map +0 -1
  180. package/esm/Sandbox.js +0 -532
  181. package/esm/Sandbox.js.map +0 -1
  182. package/esm/Snapshot.d.ts +0 -138
  183. package/esm/Snapshot.d.ts.map +0 -1
  184. package/esm/Snapshot.js +0 -207
  185. package/esm/Snapshot.js.map +0 -1
  186. package/esm/Volume.d.ts.map +0 -1
  187. package/esm/Volume.js +0 -95
  188. package/esm/Volume.js.map +0 -1
  189. package/esm/code-toolbox/SandboxJsCodeToolbox.d.ts +0 -6
  190. package/esm/code-toolbox/SandboxJsCodeToolbox.d.ts.map +0 -1
  191. package/esm/code-toolbox/SandboxJsCodeToolbox.js +0 -13
  192. package/esm/code-toolbox/SandboxJsCodeToolbox.js.map +0 -1
  193. package/esm/code-toolbox/SandboxPythonCodeToolbox.d.ts +0 -12
  194. package/esm/code-toolbox/SandboxPythonCodeToolbox.d.ts.map +0 -1
  195. package/esm/code-toolbox/SandboxPythonCodeToolbox.js +0 -355
  196. package/esm/code-toolbox/SandboxPythonCodeToolbox.js.map +0 -1
  197. package/esm/code-toolbox/SandboxTsCodeToolbox.d.ts +0 -6
  198. package/esm/code-toolbox/SandboxTsCodeToolbox.d.ts.map +0 -1
  199. package/esm/code-toolbox/SandboxTsCodeToolbox.js +0 -14
  200. package/esm/code-toolbox/SandboxTsCodeToolbox.js.map +0 -1
  201. package/esm/errors/DaytonaError.d.ts.map +0 -1
  202. package/esm/errors/DaytonaError.js +0 -44
  203. package/esm/errors/DaytonaError.js.map +0 -1
  204. package/esm/index.d.ts +0 -22
  205. package/esm/index.d.ts.map +0 -1
  206. package/esm/index.js +0 -22
  207. package/esm/index.js.map +0 -1
  208. package/esm/package.json +0 -3
  209. package/esm/types/Charts.d.ts.map +0 -1
  210. package/esm/types/Charts.js +0 -42
  211. package/esm/types/Charts.js.map +0 -1
  212. package/esm/types/CodeInterpreter.d.ts.map +0 -1
  213. package/esm/types/CodeInterpreter.js +0 -6
  214. package/esm/types/CodeInterpreter.js.map +0 -1
  215. package/esm/types/ExecuteResponse.d.ts +0 -26
  216. package/esm/types/ExecuteResponse.d.ts.map +0 -1
  217. package/esm/types/ExecuteResponse.js +0 -6
  218. package/esm/types/ExecuteResponse.js.map +0 -1
  219. package/esm/types/Pty.d.ts +0 -48
  220. package/esm/types/Pty.d.ts.map +0 -1
  221. package/esm/types/Pty.js +0 -6
  222. package/esm/types/Pty.js.map +0 -1
  223. package/esm/utils/ArtifactParser.d.ts +0 -14
  224. package/esm/utils/ArtifactParser.d.ts.map +0 -1
  225. package/esm/utils/ArtifactParser.js +0 -51
  226. package/esm/utils/ArtifactParser.js.map +0 -1
  227. package/esm/utils/Binary.d.ts.map +0 -1
  228. package/esm/utils/Binary.js +0 -157
  229. package/esm/utils/Binary.js.map +0 -1
  230. package/esm/utils/FileTransfer.d.ts +0 -15
  231. package/esm/utils/FileTransfer.d.ts.map +0 -1
  232. package/esm/utils/FileTransfer.js +0 -209
  233. package/esm/utils/FileTransfer.js.map +0 -1
  234. package/esm/utils/Import.d.ts +0 -211
  235. package/esm/utils/Import.d.ts.map +0 -1
  236. package/esm/utils/Import.js +0 -45
  237. package/esm/utils/Import.js.map +0 -1
  238. package/esm/utils/Multipart.d.ts.map +0 -1
  239. package/esm/utils/Multipart.js +0 -107
  240. package/esm/utils/Multipart.js.map +0 -1
  241. package/esm/utils/Runtime.d.ts +0 -37
  242. package/esm/utils/Runtime.d.ts.map +0 -1
  243. package/esm/utils/Runtime.js +0 -57
  244. package/esm/utils/Runtime.js.map +0 -1
  245. package/esm/utils/Stream.d.ts +0 -20
  246. package/esm/utils/Stream.d.ts.map +0 -1
  247. package/esm/utils/Stream.js +0 -360
  248. package/esm/utils/Stream.js.map +0 -1
  249. package/esm/utils/WebSocket.d.ts.map +0 -1
  250. package/esm/utils/WebSocket.js +0 -22
  251. package/esm/utils/WebSocket.js.map +0 -1
  252. /package/{cjs → src}/CodeInterpreter.js +0 -0
  253. /package/{cjs → src}/ComputerUse.js +0 -0
  254. /package/{cjs → src}/FileSystem.js +0 -0
  255. /package/{cjs → src}/Git.js +0 -0
  256. /package/{cjs → src}/LspServer.js +0 -0
  257. /package/{cjs → src}/ObjectStorage.js +0 -0
  258. /package/{cjs → src}/Process.js +0 -0
  259. /package/{cjs → src}/PtyHandle.js +0 -0
  260. /package/{cjs → src}/Volume.js +0 -0
  261. /package/{cjs → src}/code-toolbox/SandboxJsCodeToolbox.js +0 -0
  262. /package/{cjs → src}/code-toolbox/SandboxPythonCodeToolbox.js +0 -0
  263. /package/{cjs → src}/code-toolbox/SandboxTsCodeToolbox.js +0 -0
  264. /package/{cjs → src}/errors/DaytonaError.js +0 -0
  265. /package/{cjs → src}/index.js +0 -0
  266. /package/{cjs → src}/types/Charts.js +0 -0
  267. /package/{cjs → src}/types/CodeInterpreter.js +0 -0
  268. /package/{cjs → src}/types/ExecuteResponse.js +0 -0
  269. /package/{cjs → src}/types/Pty.js +0 -0
  270. /package/{cjs → src}/utils/ArtifactParser.js +0 -0
  271. /package/{cjs → src}/utils/Binary.js +0 -0
  272. /package/{cjs → src}/utils/FileTransfer.js +0 -0
  273. /package/{cjs → src}/utils/Multipart.js +0 -0
  274. /package/{cjs → src}/utils/Runtime.js +0 -0
  275. /package/{cjs → src}/utils/Stream.js +0 -0
  276. /package/{cjs → src}/utils/WebSocket.js +0 -0
@@ -1,211 +0,0 @@
1
- declare const loaderMap: {
2
- 'fast-glob': () => Promise<{
3
- default: typeof import("fast-glob");
4
- sync(source: import("fast-glob/out/types").Pattern | import("fast-glob/out/types").Pattern[], options: import("fast-glob/out/settings").Options & ({
5
- objectMode: true;
6
- } | {
7
- stats: true;
8
- })): import("fast-glob/out/types").Entry[];
9
- sync(source: import("fast-glob/out/types").Pattern | import("fast-glob/out/types").Pattern[], options?: import("fast-glob/out/settings").Options): string[];
10
- stream(source: import("fast-glob/out/types").Pattern | import("fast-glob/out/types").Pattern[], options?: import("fast-glob/out/settings").Options): NodeJS.ReadableStream;
11
- generateTasks(source: import("fast-glob/out/types").Pattern | import("fast-glob/out/types").Pattern[], options?: import("fast-glob/out/settings").Options): import("fast-glob").Task[];
12
- isDynamicPattern(source: import("fast-glob/out/types").Pattern, options?: import("fast-glob/out/settings").Options): boolean;
13
- escapePath(source: string): import("fast-glob/out/types").Pattern;
14
- convertPathToPattern(source: string): import("fast-glob/out/types").Pattern;
15
- glob: typeof import("fast-glob");
16
- globSync: typeof import("fast-glob").sync;
17
- globStream: typeof import("fast-glob").stream;
18
- async: typeof import("fast-glob");
19
- posix: typeof import("fast-glob").posix;
20
- win32: typeof import("fast-glob").win32;
21
- }>;
22
- '@iarna/toml': () => Promise<{
23
- default: typeof import("@iarna/toml");
24
- parse: import("@iarna/toml").FuncParse;
25
- stringify: import("@iarna/toml").FuncStringify;
26
- }>;
27
- stream: () => Promise<{
28
- default: typeof import("stream");
29
- Stream: typeof import("stream");
30
- promises: typeof import("node:stream/promises");
31
- duplexPair(options?: import("stream").DuplexOptions): [import("stream").Duplex, import("stream").Duplex];
32
- addAbortSignal<T extends import("stream")>(signal: AbortSignal, stream: T): T;
33
- getDefaultHighWaterMark(objectMode: boolean): number;
34
- setDefaultHighWaterMark(objectMode: boolean, value: number): void;
35
- finished: typeof import("stream").finished;
36
- pipeline: typeof import("stream").pipeline;
37
- isErrored(stream: import("stream").Readable | import("stream").Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
38
- isReadable(stream: import("stream").Readable | NodeJS.ReadableStream): boolean;
39
- Readable: typeof import("stream").Readable;
40
- Writable: typeof import("stream").Writable;
41
- Duplex: typeof import("stream").Duplex;
42
- Transform: typeof import("stream").Transform;
43
- PassThrough: typeof import("stream").PassThrough;
44
- errorMonitor: typeof import("events").errorMonitor;
45
- captureRejectionSymbol: typeof import("events").captureRejectionSymbol;
46
- captureRejections: boolean;
47
- defaultMaxListeners: number;
48
- EventEmitter: typeof import("events");
49
- EventEmitterAsyncResource: typeof import("events").EventEmitterAsyncResource;
50
- }>;
51
- tar: () => Promise<{
52
- default: typeof import("tar");
53
- Extract(opts: import("tar").ExtractOptions | string): import("tar").ParseStream;
54
- create(options: import("tar").CreateOptions, fileList: readonly string[], callback?: (err?: Error) => void): import("stream").Readable;
55
- create(options: import("tar").CreateOptions & import("tar").FileOptions, fileList: readonly string[]): Promise<void>;
56
- create(options: import("tar").CreateOptions & import("tar").FileOptions & {
57
- sync: true;
58
- }, fileList: readonly string[]): void;
59
- create(options: import("tar").CreateOptions & import("tar").FileOptions, fileList: readonly string[], callback: (err?: Error) => void): void;
60
- extract(options: import("tar").ExtractOptions, fileList?: readonly string[], callback?: (err?: Error) => void): import("stream").Writable;
61
- extract(options: import("tar").ExtractOptions & import("tar").FileOptions, fileList?: readonly string[]): Promise<void>;
62
- extract(options: import("tar").ExtractOptions & import("tar").FileOptions & {
63
- sync: true;
64
- }, fileList?: readonly string[]): void;
65
- extract(options: import("tar").ExtractOptions & import("tar").FileOptions, fileList: readonly string[] | undefined, callback: (err?: Error) => void): void;
66
- list(options: import("tar").ListOptions & import("tar").RequiredFileOptions, fileList?: readonly string[]): Promise<void>;
67
- list(options: import("tar").ListOptions & import("tar").RequiredFileOptions & {
68
- sync: true;
69
- }, fileList?: readonly string[]): void;
70
- list(callback?: (err?: Error) => void): import("tar").Parse;
71
- list(optionsOrFileList: import("tar").ListOptions | readonly string[], callback?: (err?: Error) => void): import("tar").Parse;
72
- list(options: import("tar").ListOptions, fileList: readonly string[], callback?: (err?: Error) => void): import("tar").Parse;
73
- replace(options: import("tar").ReplaceOptions, fileList?: readonly string[]): Promise<void>;
74
- replace(options: import("tar").ReplaceOptions, fileList: readonly string[] | undefined, callback: (err?: Error) => void): Promise<void>;
75
- update(options: import("tar").ReplaceOptions, fileList?: readonly string[]): Promise<void>;
76
- update(options: import("tar").ReplaceOptions, fileList: readonly string[] | undefined, callback: (err?: Error) => void): Promise<void>;
77
- fieldSize: number[];
78
- fieldOffs: number[];
79
- fieldEnds: number[];
80
- types: {
81
- 0: string;
82
- "\0": string;
83
- "": string;
84
- 1: string;
85
- 2: string;
86
- 3: string;
87
- 4: string;
88
- 5: string;
89
- 6: string;
90
- 7: string;
91
- g: string;
92
- x: string;
93
- A: string;
94
- D: string;
95
- I: string;
96
- K: string;
97
- L: string;
98
- M: string;
99
- N: string;
100
- S: string;
101
- V: string;
102
- X: string;
103
- File: string;
104
- OldFile: string;
105
- Link: string;
106
- SymbolicLick: string;
107
- CharacterDevice: string;
108
- BlockDevice: string;
109
- Directory: string;
110
- FIFO: string;
111
- ContiguousFile: string;
112
- GlobalExtendedHeader: string;
113
- ExtendedHeader: string;
114
- SolarisACL: string;
115
- GNUDumpDir: string;
116
- INode: string;
117
- NextFileHasLonLinkPath: string;
118
- NextFileHasLongPath: string;
119
- ContinuationFile: string;
120
- TapeVolumeHeader: string;
121
- OldExtendedHeader: string;
122
- };
123
- modes: {
124
- suid: number;
125
- sgid: number;
126
- svtx: number;
127
- uread: number;
128
- uwrite: number;
129
- uexec: number;
130
- gread: number;
131
- gwrite: number;
132
- gexec: number;
133
- oread: number;
134
- owrite: number;
135
- oexec: number;
136
- };
137
- numeric: {
138
- mode: boolean;
139
- uid: boolean;
140
- gid: boolean;
141
- size: boolean;
142
- mtime: boolean;
143
- devmaj: boolean;
144
- devmin: boolean;
145
- cksum: boolean;
146
- atime: boolean;
147
- ctime: boolean;
148
- dev: boolean;
149
- ino: boolean;
150
- nlink: boolean;
151
- };
152
- knownExtended: {
153
- atime: boolean;
154
- charset: boolean;
155
- comment: boolean;
156
- ctime: boolean;
157
- gid: boolean;
158
- gname: boolean;
159
- linkpat: boolean;
160
- mtime: boolean;
161
- path: boolean;
162
- realtime: boolean;
163
- security: boolean;
164
- size: boolean;
165
- uid: boolean;
166
- uname: boolean;
167
- };
168
- headerSize: number;
169
- blockSize: number;
170
- Parse: {
171
- new (opt?: import("tar").ParseOptions): import("tar").Parse;
172
- };
173
- Pack: typeof import("tar").Pack;
174
- c: typeof import("tar").create;
175
- x: typeof import("tar").extract;
176
- t: typeof import("tar").list;
177
- r: typeof import("tar").replace;
178
- u: typeof import("tar").update;
179
- }>;
180
- 'expand-tilde': () => Promise<any>;
181
- ObjectStorage: () => Promise<typeof import("../ObjectStorage.js")>;
182
- fs: () => Promise<typeof import("fs")>;
183
- 'form-data': () => Promise<{
184
- default: typeof import("form-data");
185
- Stream: typeof import("stream");
186
- promises: typeof import("node:stream/promises");
187
- duplexPair(options?: import("stream").DuplexOptions): [import("stream").Duplex, import("stream").Duplex];
188
- addAbortSignal<T extends import("stream")>(signal: AbortSignal, stream: T): T;
189
- getDefaultHighWaterMark(objectMode: boolean): number;
190
- setDefaultHighWaterMark(objectMode: boolean, value: number): void;
191
- finished: typeof import("stream").finished;
192
- pipeline: typeof import("stream").pipeline;
193
- isErrored(stream: import("stream").Readable | import("stream").Writable | NodeJS.ReadableStream | NodeJS.WritableStream): boolean;
194
- isReadable(stream: import("stream").Readable | NodeJS.ReadableStream): boolean;
195
- Readable: typeof import("stream").Readable;
196
- Writable: typeof import("stream").Writable;
197
- Duplex: typeof import("stream").Duplex;
198
- Transform: typeof import("stream").Transform;
199
- PassThrough: typeof import("stream").PassThrough;
200
- errorMonitor: typeof import("events").errorMonitor;
201
- captureRejectionSymbol: typeof import("events").captureRejectionSymbol;
202
- captureRejections: boolean;
203
- defaultMaxListeners: number;
204
- EventEmitter: typeof import("events");
205
- EventEmitterAsyncResource: typeof import("events").EventEmitterAsyncResource;
206
- }>;
207
- };
208
- type ModuleMap = typeof loaderMap;
209
- export declare function dynamicImport<K extends keyof ModuleMap>(name: K, errorPrefix?: string): Promise<Awaited<ReturnType<ModuleMap[K]>>>;
210
- export {};
211
- //# sourceMappingURL=Import.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Import.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/utils/Import.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iGAiDinpB,CAAC;;;;;4HAA8qB,CAAC;oGAA41B,CAAC;;;;;0IAAw+B,CAAC;;;;;4BAA0lB,CAAC;8FAAkH,CAAC;6FAAiH,CAAC;;8GAAysB,CAAC;;6GAA2qB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAhiuB,CAAC;;;;;;;;;;;cA1CnwE,OAAO,CAAC,cAAc,IAAI,CAAC,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;CAErC,CAAA;AAYD,KAAK,SAAS,GAAG,OAAO,SAAS,CAAA;AAEjC,wBAAsB,aAAa,CAAC,CAAC,SAAS,MAAM,SAAS,EAC3D,IAAI,EAAE,CAAC,EACP,WAAW,CAAC,EAAE,MAAM,GACnB,OAAO,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAsB5C"}
@@ -1,45 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import { DaytonaError } from '../errors/DaytonaError.js';
6
- import { RUNTIME } from './Runtime.js';
7
- const loaderMap = {
8
- 'fast-glob': () => import('fast-glob'),
9
- '@iarna/toml': () => import('@iarna/toml'),
10
- stream: () => import('stream'),
11
- tar: () => import('tar'),
12
- 'expand-tilde': () => import('expand-tilde'),
13
- ObjectStorage: () => import('../ObjectStorage.js'),
14
- fs: () => import('fs'),
15
- 'form-data': () => import('form-data'),
16
- };
17
- const validateMap = {
18
- 'fast-glob': (mod) => typeof mod === 'function' && typeof mod?.sync === 'function',
19
- '@iarna/toml': (mod) => typeof mod.parse === 'function' && typeof mod.stringify === 'function',
20
- stream: (mod) => typeof mod.Readable === 'function' && typeof mod.Writable === 'function',
21
- tar: (mod) => typeof mod.extract === 'function' && typeof mod.create === 'function',
22
- 'expand-tilde': (mod) => typeof mod === 'function',
23
- fs: (mod) => typeof mod.createReadStream === 'function' && typeof mod.readFile === 'function',
24
- 'form-data': (mod) => typeof mod === 'function',
25
- };
26
- export async function dynamicImport(name, errorPrefix) {
27
- const loader = loaderMap[name];
28
- if (!loader) {
29
- throw new DaytonaError(`${errorPrefix || ''} Unknown module "${name}"`);
30
- }
31
- let mod;
32
- try {
33
- mod = (await loader());
34
- mod = mod?.default ?? mod;
35
- }
36
- catch (err) {
37
- const msg = err instanceof Error ? err.message : String(err);
38
- throw new DaytonaError(`${errorPrefix || ''} Module "${name}" is not available in the "${RUNTIME}" runtime: ${msg}`);
39
- }
40
- if (validateMap[name] && !validateMap[name](mod)) {
41
- throw new DaytonaError(`${errorPrefix || ''} Module "${name}" didn't pass import validation in the "${RUNTIME}" runtime`);
42
- }
43
- return mod;
44
- }
45
- //# sourceMappingURL=Import.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Import.js","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/utils/Import.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAA;AAEnC,MAAM,SAAS,GAAG;IAChB,WAAW,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC;IACtC,aAAa,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC;IAC1C,MAAM,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC;IAC9B,GAAG,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC;IACxB,cAAc,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,cAAc,CAAC;IAC5C,aAAa,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,qBAAqB,CAAC;IAClD,EAAE,EAAE,GAAiC,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC;IACpD,WAAW,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC;CACvC,CAAA;AAED,MAAM,WAAW,GAA0C;IACzD,WAAW,EAAE,CAAC,GAAQ,EAAE,EAAE,CAAC,OAAO,GAAG,KAAK,UAAU,IAAI,OAAO,GAAG,EAAE,IAAI,KAAK,UAAU;IACvF,aAAa,EAAE,CAAC,GAAQ,EAAE,EAAE,CAAC,OAAO,GAAG,CAAC,KAAK,KAAK,UAAU,IAAI,OAAO,GAAG,CAAC,SAAS,KAAK,UAAU;IACnG,MAAM,EAAE,CAAC,GAAQ,EAAE,EAAE,CAAC,OAAO,GAAG,CAAC,QAAQ,KAAK,UAAU,IAAI,OAAO,GAAG,CA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AAC;QACjD,MAAM,IAAI,YAAY,CACpB,GAAG,WAAW,IAAI,EAAE,YAAY,IAAI,2CAA2C,OAAO,WAAW,CAClG,CAAA;IACH,CAAC;IAED,OAAO,GAAG,CAAA;AACZ,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"Multipart.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/utils/Multipart.ts"],"names":[],"mappings":"AAOA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,GAAG,SAAS,CAAA;IACxB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;IAC5B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,IAAI,EAAE,UAAU,CAAA;CACjB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGlE;AAWD;;GAEG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,GAAG,aAAa,EAAE,CAmDlF;AAED;;;GAGG;AACH,wBAAsB,0BAA0B,CAC9C,SAAS,EAAE,UAAU,EACrB,WAAW,EAAE,MAAM,GAClB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC,CA0B9D;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAMvE"}
@@ -1,107 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- import { concatUint8Arrays, findAllBytes, findBytesInRange, indexAfterSequence, utf8Decode, isFile } from './Binary.js';
6
- /**
7
- * Extracts the boundary from a Content-Type header
8
- */
9
- export function extractBoundary(contentType) {
10
- const match = /boundary="?([^";]+)"?/i.exec(contentType || '');
11
- return match ? match[1] : null;
12
- }
13
- /**
14
- * Extracts a parameter value from Content-Disposition header
15
- */
16
- function getDispositionParam(disposition, paramName) {
17
- const match = disposition.match(new RegExp(`${paramName}\\*?=([^;]+)`, 'i'));
18
- if (!match)
19
- return undefined;
20
- return match[1].replace(/^"|"$/g, '').trim();
21
- }
22
- /**
23
- * Parses multipart/form-data or multipart/mixed response body
24
- */
25
- export function parseMultipart(body, boundary) {
26
- const encoder = new TextEncoder();
27
- const dashBoundary = encoder.encode(`--${boundary}`);
28
- const crlf = encoder.encode('\r\n');
29
- const boundaryLine = concatUint8Arrays([dashBoundary, crlf]);
30
- const boundaryPositions = findAllBytes(body, dashBoundary);
31
- if (boundaryPositions.length === 0)
32
- return [];
33
- const parts = [];
34
- for (let i = 0; i < boundaryPositions.length; i++) {
35
- const start = boundaryPositions[i];
36
- // Headers start after "--boundary\r\n"
37
- const headerStart = indexAfterSequence(body, start, boundaryLine);
38
- if (headerStart < 0)
39
- continue;
40
- // Part ends before next boundary
41
- const nextBoundary = boundaryPositions[i + 1] ?? body.length;
42
- let partEnd = nextBoundary - 2; // Remove trailing CRLF
43
- if (partEnd < headerStart)
44
- partEnd = headerStart;
45
- // Find headers/body separator (\r\n\r\n)
46
- const separator = findBytesInRange(body, headerStart, partEnd, encoder.encode('\r\n\r\n'));
47
- if (separator < 0)
48
- continue;
49
- // Parse headers
50
- const headersText = utf8Decode(body.subarray(headerStart, separator));
51
- const headers = {};
52
- headersText.split(/\r\n/).forEach((line) => {
53
- const [key, ...valueParts] = line.split(':');
54
- if (valueParts.length > 0) {
55
- headers[key.trim().toLowerCase()] = valueParts.join(':').trim();
56
- }
57
- });
58
- // Extract body
59
- const dataStart = separator + 4;
60
- const data = body.subarray(dataStart, partEnd);
61
- // Extract name and filename from Content-Disposition
62
- const disposition = headers['content-disposition'] || '';
63
- const name = getDispositionParam(disposition, 'name');
64
- const filename = getDispositionParam(disposition, 'filename');
65
- parts.push({ name, filename, headers, data });
66
- }
67
- return parts;
68
- }
69
- /**
70
- * Parses multipart response using browser's native FormData API
71
- * This is more reliable than manual parsing when available
72
- */
73
- export async function parseMultipartWithFormData(bodyBytes, contentType) {
74
- const result = new Map();
75
- // Create a Blob and parse with FormData API
76
- const blob = new Blob([bodyBytes.slice()], { type: contentType });
77
- const formData = await new Response(blob).formData();
78
- // Process FormData entries (forEach is more universally supported than entries())
79
- const filePromises = [];
80
- formData.forEach((value, fieldName) => {
81
- if (isFile(value)) {
82
- filePromises.push((async () => {
83
- const file = value;
84
- const arrayBuffer = await file.arrayBuffer();
85
- result.set(fieldName, {
86
- filename: file.name,
87
- data: new Uint8Array(arrayBuffer),
88
- });
89
- })());
90
- }
91
- });
92
- await Promise.all(filePromises);
93
- return result;
94
- }
95
- /**
96
- * Extracts a header value from response headers (case-insensitive)
97
- */
98
- export function getHeader(headers, key) {
99
- if (!headers)
100
- return undefined;
101
- const headerKey = Object.keys(headers).find((h) => h.toLowerCase() === key.toLowerCase());
102
- if (!headerKey)
103
- return undefined;
104
- const value = headers[headerKey];
105
- return Array.isArray(value) ? value[0] : value;
106
- }
107
- //# sourceMappingURL=Multipart.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Multipart.js","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/utils/Multipart.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AASpH;;GAEG;AACH,MAAM,UAAU,eAAe,CAAC,WAAmB;IACjD,MAAM,KAAK,GAAG,wBAAwB,CAAC,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,CAAA;IAC9D,OAAO,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AAChC,CAAC;AAED;;GAEG;AACH,SAAS,mBAAmB,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AAA;IAC9B,MAAM,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,WAAW,EAAE,CAAC,CAAA;IACzF,IAAI,CAAC,SAAS;QAAE,OAAO,SAAS,CAAA;IAChC,MAAM,KAAK,GAAG,OAAO,CAAC,SAAS,CAAC,CAAA;IAChC,OAAO,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAA;AAChD,CAAC"}
@@ -1,37 +0,0 @@
1
- declare global {
2
- /**
3
- * In Deno this global exists and has a `version.deno` string;
4
- * in all other runtimes it will be `undefined`.
5
- */
6
- var Deno: {
7
- version: {
8
- deno: string;
9
- };
10
- env: {
11
- get(name: string): string | undefined;
12
- toObject(): Record<string, string>;
13
- };
14
- } | undefined;
15
- /**
16
- * In Bun this global exists and has a `version.bun` string;
17
- * in all other runtimes it will be `undefined`.
18
- */
19
- var Bun: {
20
- version: {
21
- bun: string;
22
- };
23
- file: (path: string) => File;
24
- } | undefined;
25
- }
26
- export declare enum Runtime {
27
- NODE = "node",
28
- DENO = "deno",
29
- BUN = "bun",
30
- BROWSER = "browser",
31
- SERVERLESS = "serverless",
32
- UNKNOWN = "unknown"
33
- }
34
- export declare const RUNTIME: Runtime;
35
- export declare function getEnvVar(name: string): string | undefined;
36
- export declare function isServerlessRuntime(): boolean;
37
- //# sourceMappingURL=Runtime.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Runtime.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/utils/Runtime.ts"],"names":[],"mappings":"AAKA,OAAO,CAAC,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,IAAI,EACJ;QACE,OAAO,EAAE;YAAE,IAAI,EAAE,MAAM,CAAA;SAAE,CAAA;QACzB,GAAG,EAAE;YACH,GAAG,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAA;YACrC,QAAQ,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;SACnC,CAAA;KACF,GACD,SAAS,CAAA;IAEb;;;OAGG;IACH,IAAI,GAAG,EACH;QACE,OAAO,EAAE;YAAE,GAAG,EAAE,MAAM,CAAA;SAAE,CAAA;QACxB,IAAI,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;KAC7B,GACD,SAAS,CAAA;CACd;AAED,oBAAY,OAAO;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,UAAU,eAAe;IACzB,OAAO,YAAY;CACpB;AAED,eAAO,MAAM,OAAO,SAWS,CAAA;AAE7B,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAS1D;AAED,wBAAgB,mBAAmB,IAAI,OAAO,CAyB7C"}
@@ -1,57 +0,0 @@
1
- /*
2
- * Copyright 2025 Daytona Platforms Inc.
3
- * SPDX-License-Identifier: Apache-2.0
4
- */
5
- export var Runtime;
6
- (function (Runtime) {
7
- Runtime["NODE"] = "node";
8
- Runtime["DENO"] = "deno";
9
- Runtime["BUN"] = "bun";
10
- Runtime["BROWSER"] = "browser";
11
- Runtime["SERVERLESS"] = "serverless";
12
- Runtime["UNKNOWN"] = "unknown";
13
- })(Runtime || (Runtime = {}));
14
- export const RUNTIME = typeof Deno !== 'undefined'
15
- ? Runtime.DENO
16
- : typeof Bun !== 'undefined' && !!Bun.version
17
- ? Runtime.BUN
18
- : isServerlessRuntime()
19
- ? Runtime.SERVERLESS
20
- : typeof window !== 'undefined'
21
- ? Runtime.BROWSER
22
- : typeof process !== 'undefined' && !!process.versions?.node
23
- ? Runtime.NODE
24
- : Runtime.UNKNOWN;
25
- export function getEnvVar(name) {
26
- if (RUNTIME === Runtime.NODE || RUNTIME === Runtime.BUN) {
27
- return process.env[name];
28
- }
29
- if (RUNTIME === Runtime.DENO) {
30
- return Deno.env.get(name);
31
- }
32
- return undefined;
33
- }
34
- export function isServerlessRuntime() {
35
- // Safely grab env vars, even if `process` is undeclared
36
- const env = typeof process !== 'undefined' ? process.env : {};
37
- // Worker-specific globals
38
- const globalObj = globalThis;
39
- return Boolean(
40
- // Cloudflare Workers (V8 isolate API)
41
- typeof globalObj.WebSocketPair === 'function' ||
42
- // Cloudflare Pages
43
- env.CF_PAGES === '1' ||
44
- // AWS Lambda (incl. SAM local)
45
- env.AWS_EXECUTION_ENV?.startsWith('AWS_Lambda') ||
46
- env.LAMBDA_TASK_ROOT !== undefined ||
47
- env.AWS_SAM_LOCAL === 'true' ||
48
- // Azure Functions
49
- env.FUNCTIONS_WORKER_RUNTIME !== undefined ||
50
- // Google Cloud Functions / Cloud Run
51
- (env.FUNCTION_TARGET !== undefined && env.FUNCTION_SIGNATURE_TYPE !== undefined) ||
52
- // Vercel
53
- env.VERCEL === '1' ||
54
- // Netlify Functions
55
- env.SITE_NAME !== undefined);
56
- }
57
- //# sourceMappingURL=Runtime.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Runtime.js","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/utils/Runtime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AA6BH,MAAM,CAAN,IAAY,OAOX;AAPD,WAAY,OAAO;IACjB,wBAAa,CAAA;IACb,wBAAa,CAAA;IACb,sBAAW,CAAA;IACX,8BAAmB,CAAA;IACnB,oCAAyB,CAAA;IACzB,8BAAmB,CAAA;AACrB,CAAC,EAPW,OAAO,KAAP,OAAO,QAOlB;AAED,MAAM,CAAC,MAAM,OAAO,GAClB,OAAO,IAAI,KAAK,WAAW;IACzB,CAAC,CAAC,OAAO,CAAC,IAAI;IACd,CAAC,CAAC,OAAO,GAAG,KAAK,WAAW,IAAI,CAAC,CAAC,GAAG,CAAC,OAAO;QAC3C,CAAC,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wB,KAAK,SAAS;QAC1C,qCAAqC;QACrC,CAAC,GAAG,CAAC,eAAe,KAAK,SAAS,IAAI,GAAG,CAAC,uBAAuB,KAAK,SAAS,CAAC;QAChF,SAAS;QACT,GAAG,CAAC,MAAM,KAAK,GAAG;QAClB,oBAAoB;QACpB,GAAG,CAAC,SAAS,KAAK,SAAS,CAC9B,CAAA;AACH,CAAC"}
@@ -1,20 +0,0 @@
1
- import WebSocket from 'isomorphic-ws';
2
- /**
3
- * Process a streaming response from fetch(), where getStream() returns a Fetch Response.
4
- *
5
- * @param getStream – zero-arg function that does `await fetch(...)` and returns the Response
6
- * @param onChunk – called with each decoded UTF-8 chunk
7
- * @param shouldTerminate – pollable; if true for two consecutive timeouts (or once if requireConsecutiveTermination=false), the loop breaks
8
- * @param chunkTimeout – milliseconds to wait for a new chunk before calling shouldTerminate()
9
- * @param requireConsecutiveTermination – whether you need two time-outs in a row to break
10
- */
11
- export declare function processStreamingResponse(getStream: () => Promise<Response>, onChunk: (chunk: string) => void, shouldTerminate: () => Promise<boolean>, chunkTimeout?: number, requireConsecutiveTermination?: boolean): Promise<void>;
12
- /**
13
- * Demultiplexes a WebSocket stream into separate stdout and stderr streams.
14
- *
15
- * @param socket - The WebSocket instance to demultiplex.
16
- * @param onStdout - Callback function for stdout messages.
17
- * @param onStderr - Callback function for stderr messages.
18
- */
19
- export declare function stdDemuxStream(ws: WebSocket, onStdout: (data: string) => void, onStderr: (data: string) => void): Promise<void>;
20
- //# sourceMappingURL=Stream.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Stream.d.ts","sourceRoot":"","sources":["../../../../../../libs/sdk-typescript/src/utils/Stream.ts"],"names":[],"mappings":"AAIA,OAAO,SAAS,MAAM,eAAe,CAAA;AAmBrC;;;;;;;;GAQG;AACH,wBAAsB,wBAAwB,CAC5C,SAAS,EAAE,MAAM,OAAO,CAAC,QAAQ,CAAC,EAClC,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,EAChC,eAAe,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,EACvC,YAAY,SAAO,EACnB,6BAA6B,UAAO,GACnC,OAAO,CAAC,IAAI,CAAC,CAoEf;AAED;;;;;;GAMG;AACH,wBAAgB,cAAc,CAC5B,EAAE,EAAE,SAAS,EACb,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAChC,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAC/B,OAAO,CAAC,IAAI,CAAC,CA2Pf"}