@http-forge/core 0.6.26 → 0.6.28

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
@@ -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)
@@ -305,6 +306,7 @@ const forge = new ForgeContainer({
305
306
 
306
307
  - Inspect `postResponseResult?.assertions` after each request and exit with non-zero code when failures exist.
307
308
  - If using CLI, include `--exit-code`.
309
+ - 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
310
 
309
311
  ## 📚 Core Concepts
310
312
 
@@ -78,6 +78,13 @@ export declare class ServiceContainer {
78
78
  * Check if a service is registered
79
79
  */
80
80
  has(identifier: ServiceIdentifier): boolean;
81
+ /**
82
+ * Dispose all singleton instances that implement a dispose() method,
83
+ * then clear all registrations. Call this when the container is no longer
84
+ * needed (e.g. at the end of a CLI command) so that file watchers and other
85
+ * I/O handles are closed and the Node.js event loop can exit naturally.
86
+ */
87
+ dispose(): void;
81
88
  /**
82
89
  * Clear all registrations
83
90
  */
package/dist/index.d.ts CHANGED
@@ -22,7 +22,7 @@ export { getServiceContainer, registerCoreServices, ServiceContainer, ServiceIde
22
22
  export type { PlatformAdapters, ServiceIdentifier } from './di';
23
23
  export { countRequests, decodeFolderName, decodeFolderPath, encodeFolderName, enumerateFolders, flattenRequests, normalizeFolderInput } from './runtime/mcp-collection-utils';
24
24
  export type { FlatRequest } from './runtime/mcp-collection-utils';
25
- export { CACHE_BUSTING_TOOLS, dispatchGenericTool } from './runtime/mcp-dispatcher';
25
+ export { applyMcpBodyTruncation, CACHE_BUSTING_TOOLS, dispatchGenericTool } from './runtime/mcp-dispatcher';
26
26
  export type { McpDispatchServices, McpRunCallbacks } from './runtime/mcp-dispatcher';
27
27
  export { buildPromptResult, MCP_PROMPTS } from './runtime/mcp-prompts';
28
28
  export type { McpPromptArg, McpPromptDef, PromptResult } from './runtime/mcp-prompts';