@http-forge/core 0.6.29 → 0.6.31
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 +18 -0
- package/dist/index.js +290 -278
- package/dist/index.mjs +289 -277
- package/dist/infrastructure/config/config-service.d.ts +1 -0
- package/dist/infrastructure/config/config.interface.d.ts +8 -0
- package/dist/infrastructure/environment/environment-config-service.d.ts +29 -0
- package/dist/infrastructure/http/native-http-client.d.ts +20 -1
- package/dist/infrastructure/test-suite/html-report-generator.d.ts +10 -1
- package/dist/infrastructure/test-suite/interfaces.d.ts +1 -0
- package/dist/infrastructure/test-suite/markdown-summary-generator.d.ts +21 -0
- package/dist/infrastructure/test-suite/result-storage-service.d.ts +8 -0
- package/dist/infrastructure/test-suite/result-storage.d.ts +17 -0
- package/dist/infrastructure/test-suite/test-suite-service.d.ts +7 -0
- package/dist/types/environment-config.d.ts +7 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -27,8 +27,10 @@
|
|
|
27
27
|
| **AI and MCP automation** | Agent-ready MCP runtime and tools for listing, running, and managing API workflows | Copilot/agent integrations and autonomous API operations |
|
|
28
28
|
| **Built-in scripting and assertions** | Pre-request and post-response scripts with `pm.test()` and Chai `expect()` | API contract checks in CI/CD |
|
|
29
29
|
| **Variables and environments** | `{{variables}}` resolution across global, collection, environment, and runtime scopes; dynamic values like `{{$timestamp}}` and `{{$uuid}}` | Multi-environment testing (dev/staging/prod) |
|
|
30
|
+
| **Environment-resolved runtime config** | Request and proxy config can resolve `{{variable}}` placeholders from environment files and refresh when config/env files change | Per-environment proxy, TLS, and request tuning without restarting the runtime |
|
|
30
31
|
| **Stateful request flows** | Automatic cookie persistence and flow control with `pm.setNextRequest()` / `pm.execution.skipRequest()` | Auth/login chains and dependent request sequences |
|
|
31
32
|
| **Suite flow nodes** | Conditional/loop/script orchestration via `suite.nodes` with reusable `scriptRef` library entries | Advanced API scenarios without creating script-only HTTP requests |
|
|
33
|
+
| **AI-readable result artifacts** | Completed runs can produce HTML, JUnit XML, and `run-summary.md` summaries from persisted artifacts | CI publishing and AI-assisted failure analysis |
|
|
32
34
|
| **OpenAPI and docs-ready workflows** | Request metadata stays aligned with API contracts and generated artifacts | Spec-driven API lifecycle and governance |
|
|
33
35
|
| **Extensible architecture** | Custom HTTP clients, interceptors, module loaders, and file-watching hooks | Internal platform tooling and custom runners |
|
|
34
36
|
|
|
@@ -156,6 +158,7 @@ http-forge run collection "MyApi" --env staging --exit-code
|
|
|
156
158
|
- Enables AI agents to inspect, run, and update API testing resources programmatically.
|
|
157
159
|
- Powers HTTP Forge CLI/extension AI workflows through shared runtime behavior.
|
|
158
160
|
- Supports execution-only MCP mode for agents with workspace file access, reducing tool-list token overhead when `.http-forge/AGENTS.md` exists.
|
|
161
|
+
- Completed runs can generate `run-summary.md` alongside the HTML report so AI tools can inspect failures without reading raw paged result JSON first.
|
|
159
162
|
|
|
160
163
|
Learn more:
|
|
161
164
|
- Runtime API (MCP runtime): [RUNTIME-API.md](RUNTIME-API.md)
|
|
@@ -258,6 +261,14 @@ forge.setEnvironment({
|
|
|
258
261
|
const result = await forge.execute(request, collection);
|
|
259
262
|
```
|
|
260
263
|
|
|
264
|
+
### Environment-Resolved Request And Proxy Config
|
|
265
|
+
|
|
266
|
+
When you use the higher-level environment/config services, request settings and proxy settings can resolve `{{variable}}` placeholders from file-backed environment config.
|
|
267
|
+
|
|
268
|
+
- `EnvironmentConfigService.getResolvedConfig(env)` returns the fully resolved config for one environment.
|
|
269
|
+
- The resolved config cache is invalidated on config-file reloads, environment-file changes, and environment switches.
|
|
270
|
+
- `proxy.enabled: false` disables a configured proxy without deleting the proxy URLs.
|
|
271
|
+
|
|
261
272
|
### With Custom Configuration
|
|
262
273
|
|
|
263
274
|
```typescript
|
|
@@ -293,6 +304,13 @@ const forge = new ForgeContainer({
|
|
|
293
304
|
- Verify the path passed to `loadCollection()` points to an existing `.forge.json` file or collection folder.
|
|
294
305
|
- Use absolute paths in CI to avoid working-directory drift.
|
|
295
306
|
|
|
307
|
+
### Folder Paths With `/` In Folder Names
|
|
308
|
+
|
|
309
|
+
- User-facing folder paths should separate levels with ` / ` when a folder name itself contains `/`.
|
|
310
|
+
- Example display path: `agl-page-composition / TRAY/EPG / AVS5-5304 - TRAY/EPG`
|
|
311
|
+
- Internal `folderPath` values encode embedded slashes as `%2F`, for example `agl-page-composition/TRAY%2FEPG/AVS5-5304 - TRAY%2FEPG`.
|
|
312
|
+
- This convention is used by folder-scoped helpers such as temporary suite creation, MCP folder tools, and flat request/folder listings.
|
|
313
|
+
|
|
296
314
|
### Variables Not Resolving (`{{baseUrl}}` remains literal)
|
|
297
315
|
|
|
298
316
|
- Ensure variables are set before `execute()` via `setEnvironment(...)` or environment config.
|