@http-forge/core 0.6.27 → 0.6.29
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 +8 -0
- package/dist/index.js +435 -399
- package/dist/index.mjs +431 -395
- package/dist/infrastructure/config/config.interface.d.ts +20 -0
- package/dist/infrastructure/http/native-http-client.d.ts +13 -2
- package/dist/infrastructure/test-suite/html-report-generator.d.ts +13 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -155,6 +155,7 @@ http-forge run collection "MyApi" --env staging --exit-code
|
|
|
155
155
|
- Exposes MCP-compatible operations for collections, environments, and test execution.
|
|
156
156
|
- Enables AI agents to inspect, run, and update API testing resources programmatically.
|
|
157
157
|
- Powers HTTP Forge CLI/extension AI workflows through shared runtime behavior.
|
|
158
|
+
- Supports execution-only MCP mode for agents with workspace file access, reducing tool-list token overhead when `.http-forge/AGENTS.md` exists.
|
|
158
159
|
|
|
159
160
|
Learn more:
|
|
160
161
|
- Runtime API (MCP runtime): [RUNTIME-API.md](RUNTIME-API.md)
|
|
@@ -281,6 +282,12 @@ const forge = new ForgeContainer({
|
|
|
281
282
|
|
|
282
283
|
## 🧯 Troubleshooting
|
|
283
284
|
|
|
285
|
+
### Request body not reaching backend
|
|
286
|
+
|
|
287
|
+
- `@http-forge/core` sends request bodies for all HTTP methods. This includes DELETE, GET, HEAD, and OPTIONS, matching RFC 9110 and Postman behavior.
|
|
288
|
+
- When `useNativeHttp: true` is enabled, the native Node.js HTTP client uses explicit `Content-Length` handling so backend services receive the body payload reliably.
|
|
289
|
+
- If a request still fails, verify the request headers and body content in the response detail or development logs.
|
|
290
|
+
|
|
284
291
|
### Collection Not Found
|
|
285
292
|
|
|
286
293
|
- Verify the path passed to `loadCollection()` points to an existing `.forge.json` file or collection folder.
|
|
@@ -305,6 +312,7 @@ const forge = new ForgeContainer({
|
|
|
305
312
|
|
|
306
313
|
- Inspect `postResponseResult?.assertions` after each request and exit with non-zero code when failures exist.
|
|
307
314
|
- If using CLI, include `--exit-code`.
|
|
315
|
+
- If embedding `@http-forge/core` directly or bootstrapping a Node runtime, call `container.dispose()` before your process exits so runtime file watchers and disposable services are released cleanly.
|
|
308
316
|
|
|
309
317
|
## 📚 Core Concepts
|
|
310
318
|
|