@http-forge/core 0.5.0 → 0.5.1
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.
|
@@ -42,6 +42,12 @@ export declare class ServiceContainer {
|
|
|
42
42
|
* Get the singleton instance
|
|
43
43
|
*/
|
|
44
44
|
static get instance(): ServiceContainer;
|
|
45
|
+
/**
|
|
46
|
+
* Create a fresh isolated container instance that is NOT the global singleton.
|
|
47
|
+
* Use this for short-lived, per-operation containers (e.g. MCP tool execution)
|
|
48
|
+
* to avoid touching the singleton registered by the host application (VS Code extension).
|
|
49
|
+
*/
|
|
50
|
+
static createFresh(): ServiceContainer;
|
|
45
51
|
/**
|
|
46
52
|
* Reset the container (useful for testing)
|
|
47
53
|
*/
|