@tangle-network/agent-provider-tangle 0.14.2 → 0.14.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.
package/README.md CHANGED
@@ -1,9 +1,8 @@
1
1
  # @tangle-network/agent-provider-tangle
2
2
 
3
3
  Wraps `@tangle-network/sandbox` as an `AgentEnvironmentProvider`.
4
- The peer range is `>=0.34.0 <1.0.0`, and this package is developed and tested against 0.34.3.
5
- The floor is 0.34.0 because workspace branching uses the keyed snapshot, fork,
6
- lookup, and cleanup operations added to that SDK.
4
+ The peer range is `>=0.34.4 <1.0.0`, and this package is developed and tested against 0.34.4.
5
+ The floor is 0.34.4 because exact interactive attachment needs the host receiver, and workspace branching needs keyed snapshot, fork, lookup, and cleanup operations.
7
6
  The provider fails closed when the configured backend or its catalog entry cannot be read.
8
7
  Newer SDKs may also provide `getBackend()` as a lookup over the same catalog.
9
8
 
@@ -23,9 +23,12 @@ function failureCause(error) {
23
23
  if (name === "TimeoutError")
24
24
  return "timed out";
25
25
  const status = httpStatus(detail.status);
26
+ const code = bareIdentifier(detail.code);
27
+ if (status !== undefined && code !== undefined) {
28
+ return `HTTP ${status}; code ${code}`;
29
+ }
26
30
  if (status !== undefined)
27
31
  return `HTTP ${status}`;
28
- const code = bareIdentifier(detail.code);
29
32
  if (code !== undefined)
30
33
  return `code ${code}`;
31
34
  // A bare `Error` names no cause beyond the message, which is never carried.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/agent-provider-tangle",
3
- "version": "0.14.2",
3
+ "version": "0.14.4",
4
4
  "description": "AgentEnvironmentProvider adapter for Tangle sandboxes",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -92,7 +92,7 @@
92
92
  "@tangle-network/agent-interface": "^1.8.0"
93
93
  },
94
94
  "peerDependencies": {
95
- "@tangle-network/sandbox": ">=0.34.0 <1.0.0"
95
+ "@tangle-network/sandbox": ">=0.34.4 <1.0.0"
96
96
  },
97
97
  "peerDependenciesMeta": {
98
98
  "@tangle-network/sandbox": {
@@ -102,7 +102,7 @@
102
102
  "devDependencies": {
103
103
  "@tangle-network/agent-eval": "0.170.0",
104
104
  "@tangle-network/agent-runtime": "0.178.0",
105
- "@tangle-network/sandbox": "0.34.3",
105
+ "@tangle-network/sandbox": "0.34.4",
106
106
  "@types/node": "26.4.0",
107
107
  "typescript": "7.0.2",
108
108
  "vitest": "4.1.11",