@http-forge/core 0.4.1 → 0.4.2

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.
@@ -147,6 +147,7 @@ export interface ITestSuiteService {
147
147
  deleteSuite(id: string): Promise<boolean>;
148
148
  duplicateSuite(sourceId: string, newName: string): Promise<TestSuite>;
149
149
  createTempSuiteFromCollection(collectionId: string): Promise<TestSuite | undefined>;
150
+ createTempSuiteFromFolder(collectionId: string, folderPath: string, recursive?: boolean): Promise<TestSuite | undefined>;
150
151
  saveTempSuite(suite: TestSuite, name: string): Promise<TestSuite>;
151
152
  }
152
153
  /**
@@ -79,6 +79,16 @@ export declare class TestSuiteService implements ITestSuiteService {
79
79
  * Create a temporary suite from a collection
80
80
  */
81
81
  createTempSuiteFromCollection(collectionId: string): Promise<TestSuite | undefined>;
82
+ /**
83
+ * Create a temporary suite from a single folder within a collection.
84
+ *
85
+ * @param collectionId - the owning collection
86
+ * @param folderPath - slash-separated folder names (e.g. "Auth/Login")
87
+ * @param recursive - include requests in nested subfolders (default: true)
88
+ */
89
+ createTempSuiteFromFolder(collectionId: string, folderPath: string, recursive?: boolean): Promise<TestSuite | undefined>;
90
+ /** Convert a folder path into an id-safe slug. */
91
+ private slugifyFolderPath;
82
92
  /**
83
93
  * Save a temporary suite as a permanent one
84
94
  */
@@ -20,6 +20,15 @@ export declare function runRequest(options: RunRequestOptions): Promise<unknown>
20
20
  * Returns typed result; never calls process.exit.
21
21
  */
22
22
  export declare function runCollection(options: RunCollectionOptions): Promise<unknown>;
23
+ /**
24
+ * Execute the requests under a specific folder of a collection without MCP
25
+ * server overhead. Thin wrapper over {@link runCollection} that scopes the run
26
+ * to `options.folderPath` (recursively by default). Returns the same result
27
+ * shape as a collection run.
28
+ */
29
+ export declare function runFolder(options: RunCollectionOptions & {
30
+ folderPath: string;
31
+ }): Promise<unknown>;
23
32
  /**
24
33
  * Execute a test suite without MCP server overhead.
25
34
  * Returns typed result; never calls process.exit.
@@ -84,6 +84,16 @@ export interface RunCollectionOptions {
84
84
  delay?: number;
85
85
  /** Extra response fields to include: perRequest, failedOnly, consoleOutput */
86
86
  include?: string[];
87
+ /**
88
+ * Restrict execution to requests under this folder path (slash-separated
89
+ * folder names, e.g. "Auth/Login"). When omitted, the whole collection runs.
90
+ */
91
+ folderPath?: string;
92
+ /**
93
+ * When a `folderPath` is provided, include requests in nested subfolders
94
+ * (default: true). When false, only requests directly in that folder run.
95
+ */
96
+ recursive?: boolean;
87
97
  }
88
98
  /**
89
99
  * Options for directly executing a test suite without MCP.
@@ -118,6 +128,14 @@ export declare function runRequest(options: RunRequestOptions): Promise<unknown>
118
128
  * Returns typed result object; never calls process.exit.
119
129
  */
120
130
  export declare function runCollection(options: RunCollectionOptions): Promise<unknown>;
131
+ /**
132
+ * Execute the requests under a specific folder of a collection without MCP
133
+ * server. Thin wrapper over {@link runCollection} scoped to `folderPath`
134
+ * (recursively by default). Returns the same result shape as a collection run.
135
+ */
136
+ export declare function runFolder(options: RunCollectionOptions & {
137
+ folderPath: string;
138
+ }): Promise<unknown>;
121
139
  /**
122
140
  * Execute a test suite directly without MCP server.
123
141
  * Returns typed result object; never calls process.exit.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@http-forge/core",
3
- "version": "0.4.1",
3
+ "version": "0.4.2",
4
4
  "description": "Headless HTTP testing engine with Postman collection support, dynamic variables, and script-based automation.",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",