toolcraft 0.0.557 → 0.0.559

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/composition.json CHANGED
@@ -98,7 +98,7 @@
98
98
  },
99
99
  {
100
100
  "name": "tiny-http-mcp-server",
101
- "version": "0.1.98",
101
+ "version": "0.1.99",
102
102
  "license": "MIT"
103
103
  },
104
104
  {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.557",
116
+ "version": "0.0.559",
117
117
  "license": "MIT"
118
118
  },
119
119
  {
@@ -123,7 +123,7 @@
123
123
  },
124
124
  {
125
125
  "name": "toolcraft-schema",
126
- "version": "0.0.557",
126
+ "version": "0.0.559",
127
127
  "license": "MIT"
128
128
  },
129
129
  {
@@ -98,7 +98,7 @@
98
98
  },
99
99
  {
100
100
  "name": "tiny-http-mcp-server",
101
- "version": "0.1.98",
101
+ "version": "0.1.99",
102
102
  "license": "MIT"
103
103
  },
104
104
  {
@@ -113,7 +113,7 @@
113
113
  },
114
114
  {
115
115
  "name": "toolcraft",
116
- "version": "0.0.557",
116
+ "version": "0.0.559",
117
117
  "license": "MIT"
118
118
  },
119
119
  {
@@ -123,7 +123,7 @@
123
123
  },
124
124
  {
125
125
  "name": "toolcraft-schema",
126
- "version": "0.0.557",
126
+ "version": "0.0.559",
127
127
  "license": "MIT"
128
128
  },
129
129
  {
@@ -18,7 +18,7 @@
18
18
  },
19
19
  {
20
20
  "name": "tiny-http-mcp-server",
21
- "version": "0.1.98",
21
+ "version": "0.1.99",
22
22
  "license": "MIT"
23
23
  },
24
24
  {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tiny-http-mcp-server",
3
- "version": "0.1.98",
3
+ "version": "0.1.99",
4
4
  "description": "Minimal MCP server over HTTP built on tiny-stdio-mcp-server",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -41,7 +41,8 @@ the options object cannot leave a finished call's progress token active; progres
41
41
  notifications remain available while that call is pending.
42
42
 
43
43
  Set `requestTimeoutMs` on `McpClient` or `timeoutMs` on individual requests.
44
- Numeric deadlines must be finite, nonnegative and no greater than
44
+ Use `Infinity` to disable a deadline while retaining caller cancellation.
45
+ Finite numeric deadlines must be nonnegative and no greater than
45
46
  2,147,483,647 ms; oversized values fail before a request is sent. Individual
46
47
  JSON-RPC requests also accept `timeoutMs: null` to disable their timer.
47
48
  The deadline covers the complete request, including modern input callbacks and
@@ -7888,7 +7888,7 @@ var HttpTransport = class {
7888
7888
  }
7889
7889
  async completeInitialization(options) {
7890
7890
  validateRequestTimer(options.timeoutMs, "timeoutMs");
7891
- const deadline = options.timeoutMs > 0 ? AbortSignal.timeout(Math.ceil(options.timeoutMs)) : void 0;
7891
+ const deadline = options.timeoutMs !== Infinity && options.timeoutMs > 0 ? AbortSignal.timeout(Math.ceil(options.timeoutMs)) : void 0;
7892
7892
  const signals = [options.signal, deadline].filter((signal2) => signal2 !== void 0);
7893
7893
  const signal = signals.length === 0 ? new AbortController().signal : AbortSignal.any(signals);
7894
7894
  signal.throwIfAborted();
@@ -8703,7 +8703,7 @@ var SseParser = class {
8703
8703
  }
8704
8704
  };
8705
8705
  function validateRequestTimer(value, name) {
8706
- if (!Number.isFinite(value) || value < 0 || value > 2147483647)
8706
+ if (value !== Infinity && (!Number.isFinite(value) || value < 0 || value > 2147483647))
8707
8707
  throw new Error(`${name} must be a non-negative finite number no greater than 2147483647`);
8708
8708
  }
8709
8709
  var JsonRpcMessageLayer = class {
@@ -8799,7 +8799,7 @@ var JsonRpcMessageLayer = class {
8799
8799
  currentRequestId = id;
8800
8800
  onRequestId?.(id);
8801
8801
  } };
8802
- const deadline = timeoutMs === null ? void 0 : setTimeout(() => {
8802
+ const deadline = timeoutMs === null || timeoutMs === Infinity ? void 0 : setTimeout(() => {
8803
8803
  let reason = new Error(`JSON-RPC request "${method}" timed out after ${timeoutMs}ms`);
8804
8804
  try {
8805
8805
  if (currentRequestId !== void 0) options.onTimeout?.(currentRequestId);
@@ -8,7 +8,7 @@
8
8
  },
9
9
  {
10
10
  "name": "toolcraft-schema",
11
- "version": "0.0.557",
11
+ "version": "0.0.559",
12
12
  "license": "MIT"
13
13
  }
14
14
  ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft-schema",
3
- "version": "0.0.557",
3
+ "version": "0.0.559",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "toolcraft",
3
- "version": "0.0.557",
3
+ "version": "0.0.559",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -162,7 +162,7 @@
162
162
  "yaml"
163
163
  ],
164
164
  "optionalDependencies": {
165
- "toolcraft-schema": "0.0.557",
165
+ "toolcraft-schema": "0.0.559",
166
166
  "toolcraft-design": "*",
167
167
  "@poe-code/frontmatter": "*",
168
168
  "@poe-code/agent-mcp-config": "*",