@pydantic/logfire-agent-sandboxes 0.2.2 → 0.2.4

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 (2) hide show
  1. package/README.md +3 -14
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -21,20 +21,9 @@ console.log(await session.feedRun('sum([20, 21, 1])')) // 42
21
21
  `agentSandboxes()` resolves to a `MontyRemote` pool from `@pydantic/monty`, set up with your API key, region URL,
22
22
  and the trace context active at each checkout. It accepts every `MontyRemote` option, plus `apiKey` and `url`.
23
23
 
24
- An explicit `url` or `LOGFIRE_BASE_URL` must have no path, query, or fragment. Remove the old `/monty-ws/` path;
25
- the client selects its gRPC session path itself.
26
-
27
- The package exports these errors:
28
-
29
- - `AgentSandboxError`: the base class, also used for SDK configuration errors.
30
- - `AgentSandboxRefusedError`: a refused checkout, with `statusCode`, `statusMessage`, and `reason` fields, plus
31
- Logfire hints for project access, API key configuration, and capacity when applicable.
32
- - `AgentSandboxConnectionError`: any other failure to create the pool or check out a session.
33
-
34
- Refusal and connection errors preserve the original error as the standard `Error.cause`. For a refusal, the original
35
- `MontyRefusedError` is on `cause`; its policy string is copied to the outer error's `reason`, not `cause`. Error
36
- messages start with **Agent Sandboxes**. Errors from operations on an already checked-out session pass through
37
- unchanged, including user-code errors, `MontyCrashedError`, `MontyDisconnectError`, and `MontyShutdown`.
24
+ The package exports `AgentSandboxError`, `AgentSandboxRefusedError`, and `AgentSandboxConnectionError`. Refusal and
25
+ connection errors preserve the original error on `cause`. Errors from operations on a checked-out session pass
26
+ through unchanged.
38
27
 
39
28
  See the [Agent Sandboxes docs](https://github.com/pydantic/logfire-js/blob/main/docs/agent-sandboxes.md) for host
40
29
  functions, sessions, snapshots, and options.
package/package.json CHANGED
@@ -23,7 +23,7 @@
23
23
  "agents",
24
24
  "python"
25
25
  ],
26
- "version": "0.2.2",
26
+ "version": "0.2.4",
27
27
  "type": "module",
28
28
  "main": "./dist/index.cjs",
29
29
  "module": "./dist/index.js",
@@ -41,7 +41,7 @@
41
41
  }
42
42
  },
43
43
  "dependencies": {
44
- "logfire": "0.26.0"
44
+ "logfire": "0.26.2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "@opentelemetry/api": ">=1.9.1 <1.10.0",