@http-forge/core 0.6.25 → 0.6.27

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.
@@ -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';