@http-forge/core 0.6.42 → 0.7.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.
package/README.md CHANGED
@@ -34,6 +34,7 @@
34
34
  | **API discovery from source code** | `ApiDiscoveryService` scans Express, NestJS, Fastify, Lambda, Spring, and FastAPI projects and returns deterministic, provenance-tagged endpoints | Generate requests/test suites from a backend repo with no OpenAPI spec |
35
35
  | **Workflow & drift automation** | Discover auth/CRUD chains, generate `.suite.json`/`.flow.js`, and 3-way-diff regenerated content against user edits | Self-maintaining generated test suites |
36
36
  | **AI API design** | `ApiArchitectService.designFromIntent` designs an OpenAPI spec from plain English and packages it as collection + suite + flow + docs | Greenfield API design and review |
37
+ | **WebSocket & Socket.IO execution** | Raw WebSocket and Socket.IO requests execute headlessly with saved messages, frame transcripts, scripts, and assertions; mixed with HTTP in collections and suites | API testing for real-time endpoints |
37
38
  | **Business knowledge for AI** | `.http-forge/knowledge/**/*.md`, per-request `doc.md`, and run-results assembled into bounded AI context blocks | Grounded Copilot/agent workflows |
38
39
  | **OpenAPI and docs-ready workflows** | Request metadata stays aligned with API contracts and generated artifacts | Spec-driven API lifecycle and governance |
39
40
  | **Extensible architecture** | Custom HTTP clients, interceptors, module loaders, and file-watching hooks | Internal platform tooling and custom runners |
@@ -179,8 +180,8 @@ http-forge run collection "MyApi" --env staging --exit-code
179
180
  - Completed runs can generate `run-summary.md` alongside the HTML report so AI tools can inspect failures without reading raw paged result JSON first.
180
181
 
181
182
  Learn more:
182
- - Runtime API (MCP runtime): [RUNTIME-API.md](RUNTIME-API.md)
183
- - MCP management tools reference: [docs/MCP_MANAGEMENT_TOOLS.md](docs/MCP_MANAGEMENT_TOOLS.md)
183
+ - Runtime API (MCP runtime): [docs/api/RUNTIME-API.md](docs/api/RUNTIME-API.md)
184
+ - MCP management tools reference: [docs/developer/MCP_MANAGEMENT_TOOLS.md](docs/developer/MCP_MANAGEMENT_TOOLS.md)
184
185
 
185
186
  ## 🔍 API Discovery and Architect
186
187
 
@@ -280,8 +281,8 @@ Flow scripts run through the same script session runtime as request scripts, so
280
281
  ```
281
282
 
282
283
  For the full runtime behavior and limits, see:
283
- - [RUNTIME-API.md](RUNTIME-API.md)
284
- - [docs/SUITE_FLOW_SCRIPT_SANDBOX_SOLUTION.md](docs/SUITE_FLOW_SCRIPT_SANDBOX_SOLUTION.md)
284
+ - [docs/api/RUNTIME-API.md](docs/api/RUNTIME-API.md)
285
+ - [docs/developer/SUITE_FLOW_SCRIPT_SANDBOX_SOLUTION.md](docs/developer/SUITE_FLOW_SCRIPT_SANDBOX_SOLUTION.md)
285
286
 
286
287
  ## 🎯 Installation
287
288
 
@@ -1070,7 +1071,7 @@ MIT © Henry Huang
1070
1071
 
1071
1072
  - [HTTP Forge Extension](https://marketplace.visualstudio.com/items?itemName=henry-huang.http-forge)
1072
1073
  - [HTTP Forge CLI](https://github.com/hsl1230/http-forge.cli#readme)
1073
- - [Core Reference Docs](docs/core-reference.md)
1074
+ - [Core Reference Docs](docs/api/core-reference.md)
1074
1075
  - [Changelog](CHANGELOG.md)
1075
1076
  - [GitHub Repository](https://github.com/hsl1230/http-forge)
1076
1077
  - [Issues](https://github.com/hsl1230/http-forge/issues)
@@ -10,7 +10,7 @@
10
10
  * 迁移指南:
11
11
  * - 旧的 ServiceContainer 已被新的架构集成
12
12
  * - 使用 bootstrapComplete() 替代 registerCoreServices()
13
- * - 详见 ARCHITECTURE_IMPLEMENTATION.md
13
+ * - 详见 docs/archive/ARCHITECTURE_IMPLEMENTATION.md
14
14
  */
15
15
  export { registerCoreServices } from './core-bootstrap';
16
16
  export type { PlatformAdapters } from './platform-adapters';
@@ -15,7 +15,7 @@ import type { IRequestHistoryService } from '../infrastructure/history/request-h
15
15
  import type { IHttpRequestService } from '../infrastructure/http/interfaces';
16
16
  import type { IScriptExecutor } from '../infrastructure/script/interfaces';
17
17
  import type { IConsoleService } from '../types/console-service';
18
- import type { IHttpClient } from '../types/platform';
18
+ import type { IHttpClient, IWebSocketClient, ISocketIoClient } from '../types/platform';
19
19
  import type { ServiceIdentifier } from './service-identifiers';
20
20
  import type { IOAuth2TokenManager } from '../infrastructure/auth/interfaces';
21
21
  import type { IConfigService } from '../infrastructure/config';
@@ -95,6 +95,8 @@ export declare class ServiceContainer {
95
95
  get collection(): ICollectionService;
96
96
  get httpRequest(): IHttpRequestService;
97
97
  get httpClient(): IHttpClient;
98
+ get webSocketClient(): IWebSocketClient;
99
+ get socketIoClient(): ISocketIoClient;
98
100
  get cookie(): IAsyncCookieService;
99
101
  get requestHistory(): IRequestHistoryService;
100
102
  get dataFileParser(): IDataFileParser;
@@ -11,6 +11,8 @@ export declare const ServiceIdentifiers: {
11
11
  readonly Collection: symbol;
12
12
  readonly HttpRequest: symbol;
13
13
  readonly HttpClient: symbol;
14
+ readonly WebSocketClient: symbol;
15
+ readonly SocketIoClient: symbol;
14
16
  readonly Cookie: symbol;
15
17
  readonly RequestHistory: symbol;
16
18
  readonly TestSuite: symbol;
package/dist/index.d.ts CHANGED
@@ -116,6 +116,10 @@ export { RequestExecutor } from './infrastructure/execution/request-executor';
116
116
  export type { ExecuteOptions, ExecuteResult } from './infrastructure/execution/request-executor';
117
117
  export { RequestPreparer } from './infrastructure/execution/request-preparer';
118
118
  export * from './infrastructure/execution/request-preparer-interfaces';
119
+ export { NodeWebSocketClient } from './infrastructure/websocket/node-websocket-client';
120
+ export type { NodeWebSocketClientOptions } from './infrastructure/websocket/node-websocket-client';
121
+ export { NodeSocketIoClient, SocketIoClientAdapter } from './infrastructure/websocket/node-socketio-client';
122
+ export type { SocketIoConnectOptions, SocketIoEvent, ISocketIoConnection, ISocketIoClient } from './types/platform';
119
123
  export * from './infrastructure/history/history-interfaces';
120
124
  export { RequestHistoryStore } from './infrastructure/history/request-history';
121
125
  export { RequestHistoryService } from './infrastructure/history/request-history-service';