@declaw/sdk 1.1.7 → 1.1.9

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,14 @@ All notable changes to the Declaw TypeScript / JavaScript SDK are documented in
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.1.8]
9
+
10
+ ### Documentation
11
+
12
+ - README clarifies `files.write` path semantics: `path` is the literal
13
+ absolute path inside the sandbox — no remapping, no bridge directory,
14
+ no prefix.
15
+
8
16
  ## [1.1.7]
9
17
 
10
18
  ### Added
package/README.md CHANGED
@@ -159,7 +159,8 @@ const sandbox = await Sandbox.create({ template, apiKey, timeout, network, secur
159
159
  const result = await sandbox.commands.run('ls -la');
160
160
  const stream = sandbox.commands.stream('python script.py');
161
161
 
162
- // Files
162
+ // Files — `path` is the literal absolute path inside the sandbox.
163
+ // Files appear at exactly that path — no remapping, no bridge directory.
163
164
  await sandbox.files.write(path, content);
164
165
  const data = await sandbox.files.read(path);
165
166
  const entries = await sandbox.files.list('/');
package/dist/index.cjs CHANGED
@@ -246,9 +246,16 @@ function getDispatcher() {
246
246
  }
247
247
  const undici = await import("undici");
248
248
  const connOverride = parseInt(process.env.DECLAW_SDK_CONNECTIONS || "", 10);
249
- const connections = Number.isFinite(connOverride) && connOverride > 0 ? connOverride : 64;
249
+ const connections = Number.isFinite(connOverride) && connOverride > 0 ? connOverride : 256;
250
+ const streamsOverride = parseInt(process.env.DECLAW_SDK_MAX_CONCURRENT_STREAMS || "", 10);
251
+ const maxConcurrentStreams = Number.isFinite(streamsOverride) && streamsOverride > 0 ? streamsOverride : 1e3;
250
252
  return new undici.Agent({
251
253
  connections,
254
+ // maxConcurrentStreams only matters on H2 connections. undici negotiates
255
+ // down to whatever the server advertises in SETTINGS_MAX_CONCURRENT_STREAMS,
256
+ // so setting a high value here is safe — it caps the client-side intent,
257
+ // server still wins.
258
+ maxConcurrentStreams,
252
259
  keepAliveTimeout: 3e4,
253
260
  keepAliveMaxTimeout: 6e4,
254
261
  pipelining: 1,