@goodtiming/baton-sdk 1.1.0 → 1.2.0

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/README.md CHANGED
@@ -129,6 +129,7 @@ Baton runs on Workers with the `nodejs_compat` flag, in a plain `fetch` handler
129
129
 
130
130
  - **`settings: "console"` is not supported on Workers yet.** Baton warns once and the capture values in your config apply. The report tool it turns on stays on.
131
131
  - **A tool that only computes can show a duration of 0 ms.** A Worker's clock moves only across I/O.
132
+ - **In tests, Baton may still send events after a test ends.** If a test puts back the real `fetch` afterwards, those sends go to your DSN's host. Leave `fetch` stubbed, or give Baton no `dsn` in tests.
132
133
 
133
134
  ## Without MCP: the library API
134
135
 
@@ -255,7 +256,7 @@ Three things can differ by audience.
255
256
  | `goal` | Whether the `user_goal` Baton adds is required or optional. A tool that declares its own `user_goal` keeps it as it is. | The next `tools/list` |
256
257
  | `reports` | Whether the caller sees the report tool. A report from a caller with reports off, such as one from an older tool list, is still recorded. | The next `tools/list` |
257
258
 
258
- The SDK reads the settings every 60 seconds, in the background: a read never delays startup or a call. Set `settingsRefreshMs` to change that, down to 15000. Until the first read succeeds, and while nothing is saved, the values in your config apply. Once settings are read, each event says which ones it ran under, in `capture`. One `createBaton` reads them once for every server it wraps.
259
+ The SDK reads the settings every 60 seconds, in the background: a read never delays startup or a call. Set `settingsRefreshMs` to change how often, down to 15000. The one exception is `BATON_CANDIDATE`, a test change for the whole process: a connection's handshake, tool lists and tool calls wait up to 5 seconds for it at startup. Until the first read succeeds, and while nothing is saved, the values in your config apply. Once settings are read, each event says which ones it ran under, in `capture`. One `createBaton` reads them once for every server it wraps.
259
260
 
260
261
  `reportMode` is `"on"` by default here, so the Console decides who sees the report tool. Set `reportMode: "off"` to keep it off for everyone. The report sentence in your server's instructions stays while any audience has reports on. A client reads the instructions when it connects, so a change reaches new connections only.
261
262