@http-forge/core 0.6.41 → 0.7.0
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 +1 -0
- package/dist/di/service-container.d.ts +3 -1
- package/dist/di/service-identifiers.d.ts +2 -0
- package/dist/index.d.ts +6 -1
- package/dist/index.js +199 -198
- package/dist/index.mjs +189 -188
- package/dist/infrastructure/config/config.interface.d.ts +9 -1
- package/dist/infrastructure/execution/collection-request-executor.d.ts +4 -1
- package/dist/infrastructure/history/request-history-service-interfaces.d.ts +1 -1
- package/dist/infrastructure/history/request-history-service.d.ts +1 -1
- package/dist/infrastructure/script/script-executor.d.ts +10 -1
- package/dist/infrastructure/secrets/aws-secret-resolver.d.ts +5 -1
- package/dist/infrastructure/secrets/azure-keyvault-resolver.d.ts +1 -0
- package/dist/infrastructure/secrets/doppler-resolver.d.ts +5 -1
- package/dist/infrastructure/secrets/gcp-secret-resolver.d.ts +1 -0
- package/dist/infrastructure/secrets/hashicorp-vault-resolver.d.ts +4 -4
- package/dist/infrastructure/secrets/onepassword-resolver.d.ts +21 -6
- package/dist/infrastructure/secrets/secret-resolver-registry.d.ts +25 -3
- package/dist/infrastructure/security/secret-values.d.ts +26 -0
- package/dist/infrastructure/security/sensitive-data-redactor.d.ts +15 -6
- package/dist/infrastructure/websocket/node-socketio-client.d.ts +18 -0
- package/dist/infrastructure/websocket/node-websocket-client.d.ts +20 -0
- package/dist/infrastructure/websocket/socketio-request-runner.d.ts +15 -0
- package/dist/infrastructure/websocket/websocket-request-runner.d.ts +26 -0
- package/dist/runtime/execution-helpers.d.ts +9 -1
- package/dist/types/platform.d.ts +81 -1
- package/dist/types/secret-resolver.d.ts +40 -5
- package/dist/types/types.d.ts +148 -0
- package/package.json +10 -3
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 |
|
|
@@ -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
|
@@ -69,6 +69,7 @@ export { concatenateScripts, createTestFunction, formatConsoleOutput, hasChanged
|
|
|
69
69
|
export type { ConsoleMessage } from './infrastructure/script/script-utils';
|
|
70
70
|
export { applyExtractionPlan, buildExtractionPlan, redactFullResponse, redactFullResultDetails, redactHeaders, redactHistoryEntry } from './infrastructure/security/sensitive-data-redactor';
|
|
71
71
|
export type { SensitiveExtraction } from './infrastructure/security/sensitive-data-redactor';
|
|
72
|
+
export { getSecretValues } from './infrastructure/security/secret-values';
|
|
72
73
|
export { CollectionLoader } from './infrastructure/collection/collection-loader';
|
|
73
74
|
export type { LoadOptions } from './infrastructure/collection/collection-loader';
|
|
74
75
|
export { CollectionLoaderFactory } from './infrastructure/collection/collection-loader-factory';
|
|
@@ -115,6 +116,10 @@ export { RequestExecutor } from './infrastructure/execution/request-executor';
|
|
|
115
116
|
export type { ExecuteOptions, ExecuteResult } from './infrastructure/execution/request-executor';
|
|
116
117
|
export { RequestPreparer } from './infrastructure/execution/request-preparer';
|
|
117
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';
|
|
118
123
|
export * from './infrastructure/history/history-interfaces';
|
|
119
124
|
export { RequestHistoryStore } from './infrastructure/history/request-history';
|
|
120
125
|
export { RequestHistoryService } from './infrastructure/history/request-history-service';
|
|
@@ -183,7 +188,7 @@ export { GcpSecretResolver } from './infrastructure/secrets/gcp-secret-resolver'
|
|
|
183
188
|
export { HashiCorpVaultResolver } from './infrastructure/secrets/hashicorp-vault-resolver';
|
|
184
189
|
export { OnePasswordResolver } from './infrastructure/secrets/onepassword-resolver';
|
|
185
190
|
export { SecretResolverRegistry } from './infrastructure/secrets/secret-resolver-registry';
|
|
186
|
-
export type { DopplerConfig, GcpSecretsConfig, ISecretResolver, SecretProviderConfig, SecretsConfig } from './types/secret-resolver';
|
|
191
|
+
export type { CustomSecretProviderConfig, CustomSecretProviderContext, CustomSecretResolver, CustomSecretResolverFactory, DopplerConfig, GcpSecretsConfig, ISecretResolver, SecretProviderConfig, SecretsConfig, } from './types/secret-resolver';
|
|
187
192
|
export { evaluateExpression, isExpression } from './utils/expression-evaluator';
|
|
188
193
|
export { applyFilterChain, parseFilterChain } from './utils/filter-engine';
|
|
189
194
|
export { generateId } from './utils/helpers';
|