@http-forge/core 0.6.32 → 0.6.36-beta.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 +51 -0
- package/dist/__tests__/api-discovery/golden-utils.d.ts +10 -0
- package/dist/index.d.ts +49 -22
- package/dist/index.js +456 -480
- package/dist/index.mjs +456 -480
- package/dist/infrastructure/ai/ai-context.d.ts +109 -0
- package/dist/infrastructure/ai/ai-provider.d.ts +1 -1
- package/dist/infrastructure/ai/ai-utils.d.ts +38 -0
- package/dist/infrastructure/ai/http-providers.d.ts +34 -0
- package/dist/infrastructure/api-discovery/analyzer/component-analyzer.d.ts +60 -0
- package/dist/infrastructure/api-discovery/analyzer/express-component-analyzer.d.ts +14 -0
- package/dist/infrastructure/api-discovery/analyzer/fastify-component-analyzer.d.ts +14 -0
- package/dist/infrastructure/api-discovery/analyzer/index.d.ts +11 -0
- package/dist/infrastructure/api-discovery/analyzer/lambda-component-analyzer.d.ts +18 -0
- package/dist/infrastructure/api-discovery/api-discovery-service.d.ts +49 -0
- package/dist/infrastructure/api-discovery/auth-validation.d.ts +34 -0
- package/dist/infrastructure/api-discovery/drift-engine.d.ts +139 -0
- package/dist/infrastructure/api-discovery/fastapi/fastapi-discovery-provider.d.ts +19 -0
- package/dist/infrastructure/api-discovery/fastapi/fastapi-parser.d.ts +60 -0
- package/dist/infrastructure/api-discovery/framework-detector.d.ts +8 -0
- package/dist/infrastructure/api-discovery/index.d.ts +29 -0
- package/dist/infrastructure/api-discovery/path-utils.d.ts +17 -0
- package/dist/infrastructure/api-discovery/project-name.d.ts +2 -0
- package/dist/infrastructure/api-discovery/provider.d.ts +29 -0
- package/dist/infrastructure/api-discovery/providers/express-discovery-provider.d.ts +13 -0
- package/dist/infrastructure/api-discovery/providers/fastify-discovery-provider.d.ts +13 -0
- package/dist/infrastructure/api-discovery/providers/lambda-discovery-provider.d.ts +19 -0
- package/dist/infrastructure/api-discovery/providers/nest-discovery-provider.d.ts +12 -0
- package/dist/infrastructure/api-discovery/seed-loader.d.ts +11 -0
- package/dist/infrastructure/api-discovery/source-files.d.ts +1 -0
- package/dist/infrastructure/api-discovery/spring/controller-visitor.d.ts +141 -0
- package/dist/infrastructure/api-discovery/spring/endpoint-parser.d.ts +51 -0
- package/dist/infrastructure/api-discovery/spring/file-utils.d.ts +28 -0
- package/dist/infrastructure/api-discovery/spring/model.d.ts +84 -0
- package/dist/infrastructure/api-discovery/spring/schema-generator.d.ts +65 -0
- package/dist/infrastructure/api-discovery/spring/spring-discovery-provider.d.ts +30 -0
- package/dist/infrastructure/api-discovery/spring/spring-types.d.ts +27 -0
- package/dist/infrastructure/api-discovery/test-generator.d.ts +69 -0
- package/dist/infrastructure/api-discovery/types.d.ts +154 -0
- package/dist/infrastructure/api-discovery/workflow-discovery.d.ts +55 -0
- package/dist/infrastructure/architect/api-architect-service.d.ts +85 -0
- package/dist/infrastructure/architect/architect-prompt.d.ts +22 -0
- package/dist/infrastructure/architect/collection-to-endpoints.d.ts +13 -0
- package/dist/infrastructure/architect/index.d.ts +10 -0
- package/dist/infrastructure/collection/collection-service.d.ts +1 -5
- package/dist/infrastructure/collection/json-collection-loader.d.ts +0 -8
- package/dist/infrastructure/cookie/cookie-service.d.ts +2 -13
- package/dist/infrastructure/cookie/cookie-utils.d.ts +5 -0
- package/dist/infrastructure/docs/index.d.ts +5 -0
- package/dist/infrastructure/docs/release-notes.d.ts +51 -0
- package/dist/infrastructure/environment/environment-config-service.d.ts +0 -1
- package/dist/infrastructure/environment/variable-interpolator.d.ts +9 -0
- package/dist/infrastructure/http/header-utils.d.ts +13 -0
- package/dist/infrastructure/http/http-request-service.d.ts +3 -3
- package/dist/infrastructure/http/interceptor-chain.d.ts +35 -16
- package/dist/infrastructure/http/native-http-client.d.ts +0 -10
- package/dist/infrastructure/openapi/interfaces.d.ts +14 -0
- package/dist/infrastructure/openapi/openapi-exporter.d.ts +11 -91
- package/dist/infrastructure/openapi/openapi-importer.d.ts +19 -0
- package/dist/infrastructure/openapi/openapi-operation-builder.d.ts +36 -0
- package/dist/infrastructure/openapi/openapi-schema-merger.d.ts +33 -0
- package/dist/infrastructure/openapi/openapi-spec-writer.d.ts +27 -0
- package/dist/infrastructure/openapi/openapi-utils.d.ts +62 -0
- package/dist/infrastructure/parsers/har-parser.d.ts +63 -0
- package/dist/infrastructure/parsers/index.d.ts +2 -0
- package/dist/infrastructure/review/index.d.ts +5 -0
- package/dist/infrastructure/review/review-engine.d.ts +95 -0
- package/dist/infrastructure/script/crypto-js-compat.d.ts +123 -0
- package/dist/infrastructure/script/request-object-factory.d.ts +54 -0
- package/dist/infrastructure/script/request-script-session.d.ts +0 -5
- package/dist/infrastructure/script/script-executor.d.ts +4 -33
- package/dist/infrastructure/script/script-factories.d.ts +13 -0
- package/dist/infrastructure/script/variable-scopes.d.ts +101 -0
- package/dist/infrastructure/test-suite/interfaces.d.ts +6 -0
- package/dist/infrastructure/test-suite/result-storage-service.d.ts +6 -1
- package/dist/infrastructure/test-suite/result-storage.d.ts +14 -1
- package/dist/runtime/collection-traversal.d.ts +32 -0
- package/dist/runtime/direct-execution.d.ts +7 -0
- package/dist/runtime/execution-helpers.d.ts +30 -0
- package/dist/runtime/mcp-dispatcher.d.ts +10 -34
- package/dist/runtime/mcp-handlers/ai.d.ts +6 -0
- package/dist/runtime/mcp-handlers/collection.d.ts +5 -0
- package/dist/runtime/mcp-handlers/discovery.d.ts +12 -0
- package/dist/runtime/mcp-handlers/environment-management.d.ts +6 -0
- package/dist/runtime/mcp-handlers/environment.d.ts +5 -0
- package/dist/runtime/mcp-handlers/execution.d.ts +6 -0
- package/dist/runtime/mcp-handlers/helpers.d.ts +43 -0
- package/dist/runtime/mcp-handlers/inspection.d.ts +5 -0
- package/dist/runtime/mcp-handlers/registry.d.ts +12 -0
- package/dist/runtime/mcp-handlers/request.d.ts +5 -0
- package/dist/runtime/mcp-handlers/review.d.ts +10 -0
- package/dist/runtime/mcp-handlers/run-status.d.ts +5 -0
- package/dist/runtime/mcp-handlers/suite.d.ts +6 -0
- package/dist/runtime/mcp-handlers/types.d.ts +59 -0
- package/dist/runtime/mcp-prompts.d.ts +16 -2
- package/dist/runtime/mcp-tool-schemas.d.ts +8 -0
- package/dist/runtime/suite-executor.d.ts +20 -0
- package/dist/types/types.d.ts +0 -9
- package/dist/utils/env-hints.d.ts +17 -0
- package/package.json +16 -6
package/README.md
CHANGED
|
@@ -31,6 +31,10 @@
|
|
|
31
31
|
| **Stateful request flows** | Automatic cookie persistence and flow control with `pm.setNextRequest()` / `pm.execution.skipRequest()` | Auth/login chains and dependent request sequences |
|
|
32
32
|
| **Suite flow nodes** | Conditional/loop/script orchestration via `suite.nodes` with reusable `scriptRef` library entries | Advanced API scenarios without creating script-only HTTP requests |
|
|
33
33
|
| **AI-readable result artifacts** | Completed runs can produce HTML, JUnit XML, and `run-summary.md` summaries from persisted artifacts | CI publishing and AI-assisted failure analysis |
|
|
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
|
+
| **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
|
+
| **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
|
+
| **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 |
|
|
34
38
|
| **OpenAPI and docs-ready workflows** | Request metadata stays aligned with API contracts and generated artifacts | Spec-driven API lifecycle and governance |
|
|
35
39
|
| **Extensible architecture** | Custom HTTP clients, interceptors, module loaders, and file-watching hooks | Internal platform tooling and custom runners |
|
|
36
40
|
|
|
@@ -45,6 +49,8 @@
|
|
|
45
49
|
|
|
46
50
|
- Pick the right entry point: [Start Here](#-start-here)
|
|
47
51
|
- AI/agent integrations: [AI and MCP Features](#-ai-and-mcp-features)
|
|
52
|
+
- Discovery, workflow, drift, and API design: [API Discovery & Architect](#-api-discovery-and-architect)
|
|
53
|
+
- Business knowledge for AI features: [AI Context & Business Knowledge](#-ai-context-and-business-knowledge)
|
|
48
54
|
- First integration run: [Quick Start](#-quick-start)
|
|
49
55
|
- Common setup issues: [Troubleshooting](#-troubleshooting)
|
|
50
56
|
- Install: [Installation](#-installation)
|
|
@@ -155,6 +161,10 @@ http-forge run collection "MyApi" --env staging --exit-code
|
|
|
155
161
|
`@http-forge/core` includes MCP runtime capabilities used by HTTP Forge agent workflows.
|
|
156
162
|
|
|
157
163
|
- Exposes MCP-compatible operations for collections, environments, and test execution.
|
|
164
|
+
- **Authoring and management tools** — create/rename/delete collections, folders, requests, suites, and environments; script and ordering tools.
|
|
165
|
+
- **Discovery and drift tools** — `create_request_from_endpoint`, `generate_test_suite`, `suggest_workflow`, `generate_workflow`, `check_drift`, `propose_update`, plus the API-architect tool `design_api_from_intent`.
|
|
166
|
+
- **Review gate** — `review_suite` runs deterministic review rules (response leaks, server errors, failed assertions, missing assertions, etc.) over a completed run and returns error/warn/info findings for use as a CI/PR gate.
|
|
167
|
+
- **MCP prompts** — `analyze-test-failure`, `suggest-assertions`, and `review-collection` return structured `messages[]` that the MCP host passes to its connected LLM for deep analysis.
|
|
158
168
|
- Enables AI agents to inspect, run, and update API testing resources programmatically.
|
|
159
169
|
- Powers HTTP Forge CLI/extension AI workflows through shared runtime behavior.
|
|
160
170
|
- Supports execution-only MCP mode for agents with workspace file access, reducing tool-list token overhead when `.http-forge/AGENTS.md` exists.
|
|
@@ -164,6 +174,47 @@ Learn more:
|
|
|
164
174
|
- Runtime API (MCP runtime): [RUNTIME-API.md](RUNTIME-API.md)
|
|
165
175
|
- MCP management tools reference: [docs/MCP_MANAGEMENT_TOOLS.md](docs/MCP_MANAGEMENT_TOOLS.md)
|
|
166
176
|
|
|
177
|
+
## 🔍 API Discovery and Architect
|
|
178
|
+
|
|
179
|
+
`@http-forge/core` can scan a backend project's source code — no OpenAPI spec required — and produce requests, test suites, workflow chains, and even a designed API. Everything lives in `src/infrastructure/api-discovery/` and `src/infrastructure/architect/`.
|
|
180
|
+
|
|
181
|
+
### API Discovery Service (`ApiDiscoveryService`)
|
|
182
|
+
|
|
183
|
+
- Scans a project root with six framework providers and returns deterministic, provenance-tagged `DiscoveredApi[]` records.
|
|
184
|
+
- **Providers:** Express, NestJS, Fastify, AWS Lambda (TypeScript/JavaScript), Spring (Java), and FastAPI (Python).
|
|
185
|
+
- Every endpoint carries `provenance` (framework, source file:line) and a `confidence` score; unknown patterns are downgraded to `confidence: 'low'` rather than guessed.
|
|
186
|
+
- Framework detection is file-extension-aware, so hints never leak across languages (TS/JS, `.java`, `.py`).
|
|
187
|
+
- Providers return endpoints sorted (method asc, path asc, file asc) with no timestamps, and each framework is locked by a golden-fixture conformance suite.
|
|
188
|
+
|
|
189
|
+
### Workflow Discovery & Test Generation (Phase 2a)
|
|
190
|
+
|
|
191
|
+
- `discoverWorkflows` detects cross-request chains from discovered endpoints — **AUTH** (token-producer → protected dependents, `authToken` variable) and **CRUD** (POST `/x` → `/{id}` operations).
|
|
192
|
+
- `generateSuiteFromEndpoints` / `suiteIdFromName` produce a `.suite.json` with one request node per endpoint, each asserting the discovered status code. Generated suites are tagged `ai_generated: true` + `derived_from: <endpointId>`.
|
|
193
|
+
- `generateFlowFromEndpoints` emits a runnable `.flow.js` artifact for the `http-forge.flow` runner.
|
|
194
|
+
|
|
195
|
+
### Drift Engine (Phase 2b)
|
|
196
|
+
|
|
197
|
+
- `computeProjectFreshness` / `detectProjectDrift` / `detectIndexDrift` — git-hash and source-mtime freshness tracking.
|
|
198
|
+
- `diffLines` / `threeWayDiff` / `resolveRegenerated` — LCS line diff, 3-way diff, and user-override-preserving merge.
|
|
199
|
+
- `proposeSuiteUpdates` / `applyRegenerated` — stale endpoint ids → affected suites (via `derived_from`) → regeneration proposals with conflict flags; the developer approves the merge step.
|
|
200
|
+
|
|
201
|
+
### API Architect (Phase 4 / Layer 8)
|
|
202
|
+
|
|
203
|
+
- `ApiArchitectService.designFromIntent(intent, opts)` — an AI designs an OpenAPI 3.0 spec from a plain-English intent, it is imported via `OpenApiImporter.importFromString`/`importFromUrl`, converted to discovered endpoints, and a reviewable package is generated: a test suite (one node per endpoint), a `.flow.js`, discovered workflow chains, markdown docs, and a round-trip OpenAPI export — all tagged `ai_generated: true`.
|
|
204
|
+
- `collectionToEndpoints` converts a collection into `DiscoveredApi[]` so the same workflow/CRUD machinery works on collections too.
|
|
205
|
+
- CLI surface: `http-forge architect "<intent>"`; MCP tool: `design_api_from_intent`.
|
|
206
|
+
|
|
207
|
+
## 🧠 AI Context and Business Knowledge
|
|
208
|
+
|
|
209
|
+
Every AI feature gets the same grounding through `src/infrastructure/ai/ai-context.ts`, which assembles bounded, token-budgeted "business context" blocks:
|
|
210
|
+
|
|
211
|
+
- `buildRequestBusinessContext` / `buildCollectionBusinessContext` — per-request and per-collection business context from structure, `doc.md`, descriptions, and OpenAPI metadata.
|
|
212
|
+
- `gatherWorkspaceKnowledge` / `workspaceKnowledgeSource` — reads `.http-forge/knowledge/**/*.md` files, `README.md`, and `AGENTS.md` from the workspace.
|
|
213
|
+
- `buildRunResultsContext` / `runResultsKnowledgeSource` — compact summaries of recent test runs.
|
|
214
|
+
- `assembleBusinessContext` — combines all sources (plus pluggable `registerKnowledgeSource` sources) into one prompt payload.
|
|
215
|
+
- The `.http-forge/AGENTS.md` template documents the `.http-forge/knowledge/` convention: drop Confluence exports, Jira summaries, and ADRs there so Copilot and MCP agents understand the domain.
|
|
216
|
+
- These builders are wired into the MCP AI tools (`ai.ts`), the MCP prompts (`mcp-prompts.ts`), the env suggester, the collection enhancer, and the extension's webview AI handlers.
|
|
217
|
+
|
|
167
218
|
## 🔀 Suite Flow Nodes
|
|
168
219
|
|
|
169
220
|
`@http-forge/core` now supports graph-style suite execution through optional `nodes` on a suite definition.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { DiscoveredApi } from '../../infrastructure/api-discovery';
|
|
2
|
+
/**
|
|
3
|
+
* Golden normalization (see test-fixtures/README.md).
|
|
4
|
+
* 1. Sort: method asc, resolved path asc, source file asc, line asc.
|
|
5
|
+
* 2. Strip volatile fields: id, projectRoot, projectName.
|
|
6
|
+
* 3. Relativize every absolute filePath against the fixture root (source,
|
|
7
|
+
* detection/evidence locations) so absolute workspace paths never leak.
|
|
8
|
+
* 4. Drop undefined-valued keys so the result matches JSON parsed from disk.
|
|
9
|
+
*/
|
|
10
|
+
export declare function normalizeForGolden(endpoints: DiscoveredApi[], projectRoot: string): unknown[];
|
package/dist/index.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export { ForgeContainer } from './container';
|
|
|
20
20
|
export type { ForgeContainerOptions, StorageFormat } from './container';
|
|
21
21
|
export { getServiceContainer, registerCoreServices, ServiceContainer, ServiceIdentifiers } from './di';
|
|
22
22
|
export type { PlatformAdapters, ServiceIdentifier } from './di';
|
|
23
|
-
export { countRequests,
|
|
23
|
+
export { countRequests, decodeFolderPath, encodeFolderName, enumerateFolders, flattenRequests, normalizeFolderInput } from './runtime/mcp-collection-utils';
|
|
24
24
|
export type { FlatRequest } from './runtime/mcp-collection-utils';
|
|
25
25
|
export { applyMcpBodyTruncation, CACHE_BUSTING_TOOLS, dispatchGenericTool } from './runtime/mcp-dispatcher';
|
|
26
26
|
export type { McpDispatchServices, McpRunCallbacks } from './runtime/mcp-dispatcher';
|
|
@@ -28,17 +28,16 @@ export { buildPromptResult, MCP_PROMPTS } from './runtime/mcp-prompts';
|
|
|
28
28
|
export type { McpPromptArg, McpPromptDef, PromptResult } from './runtime/mcp-prompts';
|
|
29
29
|
export { McpRunStore } from './runtime/mcp-run-store';
|
|
30
30
|
export type { McpRunRecord } from './runtime/mcp-run-store';
|
|
31
|
-
export { buildMcpToolList, decodeCursor,
|
|
31
|
+
export { buildMcpToolList, decodeCursor, encodeCursor } from './runtime/mcp-tool-builder';
|
|
32
32
|
export type { McpTool } from './runtime/mcp-tool-builder';
|
|
33
|
-
export { buildCollectionToolDescription, buildCollectionToolName, buildFolderToolDescription, buildFolderToolName, buildRequestToolDescription, buildRequestToolName, buildSuiteToolDescription, buildSuiteToolName,
|
|
33
|
+
export { buildCollectionToolDescription, buildCollectionToolName, buildFolderToolDescription, buildFolderToolName, buildRequestToolDescription, buildRequestToolName, buildSuiteToolDescription, buildSuiteToolName, parseMcpToolName, resolveFolderToken, resolveToken } from './runtime/mcp-tool-name';
|
|
34
34
|
export type { McpToolKind, ParsedMcpToolName } from './runtime/mcp-tool-name';
|
|
35
35
|
export { buildGenericTools, COLLECTION_INPUT_SCHEMA, FOLDER_INPUT_SCHEMA, GENERIC_TOOL_NAMES, REQUEST_INPUT_SCHEMA, SUITE_INPUT_SCHEMA } from './runtime/mcp-tool-schemas';
|
|
36
36
|
export type { GenericToolName } from './runtime/mcp-tool-schemas';
|
|
37
37
|
export { resolveResultGrouping } from './runtime/result-grouping';
|
|
38
38
|
export { createMcpRuntime, runCollection, runFolder, runRequest, runSuite } from './runtime/runtime-contracts';
|
|
39
39
|
export type { McpRuntimeHandle, McpRuntimeOptions, RunCollectionOptions, RunRequestOptions, RunSuiteOptions } from './runtime/runtime-contracts';
|
|
40
|
-
export {
|
|
41
|
-
export type { NodeBootstrapOptions } from './runtime/node-bootstrap';
|
|
40
|
+
export { createNodeContainer } from './runtime/node-bootstrap';
|
|
42
41
|
export * from './types/console-service';
|
|
43
42
|
export * from './types/platform';
|
|
44
43
|
export * from './types/types';
|
|
@@ -50,27 +49,26 @@ export * from './infrastructure/cookie/interfaces';
|
|
|
50
49
|
export { PersistentCookieJar } from './infrastructure/cookie/persistent-cookie-jar';
|
|
51
50
|
export { FetchHttpClient } from './infrastructure/http/fetch-http-client';
|
|
52
51
|
export { HttpRequestService } from './infrastructure/http/http-request-service';
|
|
53
|
-
export { InterceptorChain
|
|
54
|
-
export type { IErrorInterceptor, IInterceptorChain, InterceptorContext, IRequestInterceptor, IResponseInterceptor } from './infrastructure/http/interceptor-chain';
|
|
52
|
+
export { InterceptorChain } from './infrastructure/http/interceptor-chain';
|
|
53
|
+
export type { IErrorInterceptor, IInterceptorChain, IInterceptorExecutor, IInterceptorRegistry, InterceptorContext, IRequestInterceptor, IResponseInterceptor } from './infrastructure/http/interceptor-chain';
|
|
55
54
|
export type { IHttpRequestService } from './infrastructure/http/interfaces';
|
|
56
|
-
export { mergeRequestSettings } from './infrastructure/http/merge-request-settings';
|
|
57
55
|
export { DEFAULT_REQUEST_SETTINGS, NodeHttpClient } from './infrastructure/http/native-http-client';
|
|
58
56
|
export { RequestPreprocessor } from './infrastructure/http/request-preprocessor';
|
|
59
57
|
export type { IRequestPreprocessor } from './infrastructure/http/request-preprocessor';
|
|
60
58
|
export { UrlBuilder } from './infrastructure/http/url-builder';
|
|
61
59
|
export type { IUrlBuilder } from './infrastructure/http/url-builder';
|
|
62
60
|
export * from './infrastructure/script/interfaces';
|
|
63
|
-
export {
|
|
61
|
+
export { createModuleLoader, createMomentShim, ModuleLoader } from './infrastructure/script/module-loader';
|
|
64
62
|
export type { ModuleLoaderOptions } from './infrastructure/script/module-loader';
|
|
65
63
|
export { RequestScriptSession } from './infrastructure/script/request-script-session';
|
|
66
64
|
export type { SessionDependencies } from './infrastructure/script/request-script-session';
|
|
67
65
|
export { ScriptExecutor } from './infrastructure/script/script-executor';
|
|
68
66
|
export { createExpectChain, createResponseObject } from './infrastructure/script/script-factories';
|
|
69
67
|
export type { ExpectChain, ResponseAssertions, ScriptResponse } from './infrastructure/script/script-factories';
|
|
70
|
-
export { concatenateScripts,
|
|
68
|
+
export { concatenateScripts, createTestFunction, formatConsoleOutput, hasChanged, normalizeHeaders } from './infrastructure/script/script-utils';
|
|
71
69
|
export type { ConsoleMessage } from './infrastructure/script/script-utils';
|
|
72
|
-
export { applyExtractionPlan, buildExtractionPlan,
|
|
73
|
-
export type {
|
|
70
|
+
export { applyExtractionPlan, buildExtractionPlan, redactFullResponse, redactFullResultDetails, redactHeaders, redactHistoryEntry } from './infrastructure/security/sensitive-data-redactor';
|
|
71
|
+
export type { SensitiveExtraction } from './infrastructure/security/sensitive-data-redactor';
|
|
74
72
|
export { CollectionLoader } from './infrastructure/collection/collection-loader';
|
|
75
73
|
export type { LoadOptions } from './infrastructure/collection/collection-loader';
|
|
76
74
|
export { CollectionLoaderFactory } from './infrastructure/collection/collection-loader-factory';
|
|
@@ -78,19 +76,23 @@ export { CollectionService } from './infrastructure/collection/collection-servic
|
|
|
78
76
|
export { FolderCollectionLoader } from './infrastructure/collection/folder-collection-loader';
|
|
79
77
|
export { FolderCollectionStore } from './infrastructure/collection/folder-collection-store';
|
|
80
78
|
export * from './infrastructure/collection/folder-io';
|
|
81
|
-
export { generateSlug } from './infrastructure/collection/folder-io';
|
|
82
79
|
export { ParserRegistry } from './infrastructure/collection/parser-registry';
|
|
83
80
|
export { JsonCollectionLoader } from './infrastructure/collection/json-collection-loader';
|
|
84
81
|
export type { Collection, CollectionFolderItem, CollectionItem, CollectionRequestItem, ICollectionService } from './types/collection';
|
|
85
82
|
export { parseCurlCommand } from './infrastructure/parsers/curl-parser';
|
|
86
83
|
export type { ParsedCurlRequest } from './infrastructure/parsers/curl-parser';
|
|
87
84
|
export type { IAiProvider } from './infrastructure/ai/ai-provider';
|
|
85
|
+
export { extractJsonFromLlm, withAiRetry } from './infrastructure/ai/ai-utils';
|
|
86
|
+
export type { AiRetryOptions } from './infrastructure/ai/ai-utils';
|
|
87
|
+
export { AnthropicProvider, OpenAiProvider, createEnvAiProvider } from './infrastructure/ai/http-providers';
|
|
88
|
+
export { assembleBusinessContext, buildCollectionBusinessContext, buildRequestBusinessContext, buildRunResultsContext, clearRegisteredKnowledgeSources, collectionKnowledgeSource, createDefaultKnowledgeSources, gatherWorkspaceKnowledge, getRegisteredKnowledgeSources, registerKnowledgeSource, requestKnowledgeSource, runResultsKnowledgeSource, workspaceKnowledgeSource, } from './infrastructure/ai/ai-context';
|
|
89
|
+
export type { ApiKnowledgeKind, ApiKnowledgeSnapshot, ApiKnowledgeSource, AssembleContextOptions, } from './infrastructure/ai/ai-context';
|
|
88
90
|
export { enhanceCollection } from './infrastructure/analysis/collection-enhancer';
|
|
89
91
|
export type { EnhanceProgressCallback } from './infrastructure/analysis/collection-enhancer';
|
|
90
92
|
export { scanCollectionForEnvVarsWithAi } from './infrastructure/analysis/ai-env-suggester';
|
|
91
93
|
export { applyEnvSuggestionsToItems, detectEnvSuggestions } from './infrastructure/analysis/env-suggester';
|
|
92
94
|
export type { EnvSuggestion } from './infrastructure/analysis/env-suggester';
|
|
93
|
-
export {
|
|
95
|
+
export { resolveCollectionRef, resolveFolderRef, resolveRequestRef } from './runtime/ref-resolver';
|
|
94
96
|
export type { RefCandidate, RefKind, RefTier, ResolutionInfo } from './runtime/ref-resolver';
|
|
95
97
|
export { EnvironmentConfigService } from './infrastructure/environment/environment-config-service';
|
|
96
98
|
export { isSystemEnvironmentFile, loadEnvironmentsFromFolder } from './infrastructure/environment/environment-file-loader';
|
|
@@ -99,7 +101,7 @@ export { EnvironmentResolver } from './infrastructure/environment/environment-re
|
|
|
99
101
|
export type { Environment, EnvironmentStoreConfig } from './infrastructure/environment/environment-resolver';
|
|
100
102
|
export { ForgeEnv } from './infrastructure/environment/forge-env';
|
|
101
103
|
export type { IForgeEnv } from './infrastructure/environment/forge-env';
|
|
102
|
-
export {
|
|
104
|
+
export { VariableInterpolator, VariableResolver } from './infrastructure/environment/variable-interpolator';
|
|
103
105
|
export type { VariableResolverConfig } from './infrastructure/environment/variable-interpolator';
|
|
104
106
|
export type { IEnvironmentConfigService, LocalConfig, ResolvedEnvironment, SharedConfig } from './types/environment-config';
|
|
105
107
|
export { CollectionRequestExecutor } from './infrastructure/execution/collection-request-executor';
|
|
@@ -121,13 +123,38 @@ export type { GraphQLDirective, GraphQLField, GraphQLOperation, GraphQLSchema, G
|
|
|
121
123
|
export { ExampleGenerator, HistoryAnalyzer, OpenApiExporter, OpenApiImporter, RefResolver, SchemaInferenceService, SchemaInferrer, ScriptAnalyzer } from './infrastructure/openapi';
|
|
122
124
|
export type { OpenApiExportOptions, OpenApiImportOptions, ScriptAnalysisResult } from './infrastructure/openapi';
|
|
123
125
|
export * from './infrastructure/openapi/interfaces';
|
|
126
|
+
export * from './infrastructure/architect';
|
|
127
|
+
export * from './infrastructure/api-discovery/types';
|
|
128
|
+
export type { ApiDiscoveryProvider, ProviderSupport } from './infrastructure/api-discovery/provider';
|
|
129
|
+
export { FrameworkDetector } from './infrastructure/api-discovery/framework-detector';
|
|
130
|
+
export { collectSourceFiles } from './infrastructure/api-discovery/source-files';
|
|
131
|
+
export { loadHybridSeedEndpoints } from './infrastructure/api-discovery/seed-loader';
|
|
132
|
+
export { resolveProjectName } from './infrastructure/api-discovery/project-name';
|
|
133
|
+
export { ExpressDiscoveryProvider } from './infrastructure/api-discovery/providers/express-discovery-provider';
|
|
134
|
+
export { FastifyDiscoveryProvider } from './infrastructure/api-discovery/providers/fastify-discovery-provider';
|
|
135
|
+
export { NestDiscoveryProvider } from './infrastructure/api-discovery/providers/nest-discovery-provider';
|
|
136
|
+
export { LambdaDiscoveryProvider } from './infrastructure/api-discovery/providers/lambda-discovery-provider';
|
|
137
|
+
export { SpringDiscoveryProvider } from './infrastructure/api-discovery/spring/spring-discovery-provider';
|
|
138
|
+
export { FastApiDiscoveryProvider } from './infrastructure/api-discovery/fastapi/fastapi-discovery-provider';
|
|
139
|
+
export * from './infrastructure/api-discovery/analyzer';
|
|
140
|
+
export { generateSuiteFromEndpoints, suiteIdFromName, generateFlowFromEndpoints, } from './infrastructure/api-discovery/test-generator';
|
|
141
|
+
export type { GenerateSuiteOptions, GenerateSuiteResult, GenerateFlowOptions, } from './infrastructure/api-discovery/test-generator';
|
|
142
|
+
export { discoverWorkflows, } from './infrastructure/api-discovery/workflow-discovery';
|
|
143
|
+
export type { WorkflowChain, WorkflowDiscoveryOptions, WorkflowDependent, WorkflowProducer, } from './infrastructure/api-discovery/workflow-discovery';
|
|
144
|
+
export { applyRegenerated, computeProjectFreshness, detectIndexDrift, detectProjectDrift, diffLines, proposeSuiteUpdates, resolveRegenerated, threeWayDiff, } from './infrastructure/api-discovery/drift-engine';
|
|
145
|
+
export type { DiffHunk, DiffLineType, DriftReport, DriftStatus, GeneratedSuite, ProjectDrift, ProjectFreshness, SuiteUpdateProposal, ThreeWayDiff, } from './infrastructure/api-discovery/drift-engine';
|
|
146
|
+
export { ApiDiscoveryService } from './infrastructure/api-discovery/api-discovery-service';
|
|
147
|
+
export type { IApiDiscoveryService, ApiDiscoveryServiceOptions } from './infrastructure/api-discovery/api-discovery-service';
|
|
148
|
+
export { reviewSuiteRun, toReviewRequestResults } from './infrastructure/review';
|
|
149
|
+
export type { ReviewFinding, ReviewOptions, ReviewReport, ReviewRequestResult, ReviewSeverity, } from './infrastructure/review';
|
|
150
|
+
export { generateReleaseNotes, renderReleaseNotesMarkdown } from './infrastructure/docs';
|
|
151
|
+
export type { ReleaseNoteEntry, ReleaseNotes, ReleaseNotesOptions, ReleaseNoteType, } from './infrastructure/docs';
|
|
124
152
|
export { CONFIG_FILES, ConfigService, DEFAULT_CONFIG, ROOT_DIRECTORIES } from './infrastructure/config';
|
|
125
153
|
export type { EnvironmentsConfig, HttpForgeConfig, IConfigService, McpConfig, McpCorsConfig, McpToolMode, ProxyConfig, RequestConfig, RestClientExportConfig, RunnerConfig, ScriptsConfig, StorageConfig } from './infrastructure/config';
|
|
126
154
|
export { HtmlReportGenerator } from './infrastructure/test-suite/html-report-generator';
|
|
127
|
-
export { DEFAULT_SUITE_CONFIG } from './infrastructure/test-suite/interfaces';
|
|
128
155
|
export type { ErrorSummary, IStatisticsService, ITestSuiteService, RequestStatistics, RunStatistics, RunSummary, SuiteBlockNode, SuiteConfig, SuiteElseIfBranch, SuiteFlowNode, SuiteFlowNodeBase, SuiteForNode, SuiteIfNode, SuiteRequest, SuiteRequestNode, SuiteScriptNode, SuiteSwitchCase, SuiteSwitchNode, SuiteWhileNode, TestSuite } from './infrastructure/test-suite/interfaces';
|
|
129
156
|
export { JUnitReportGenerator } from './infrastructure/test-suite/junit-report-generator';
|
|
130
|
-
export { buildResultFileName,
|
|
157
|
+
export { buildResultFileName, HTTP_METHOD_MAP, HTTP_METHOD_REVERSE } from './infrastructure/test-suite/result-storage';
|
|
131
158
|
export type { FullResultDetails, IndexPage, IResultStorageService, RecentError, RequestStats, ResultSummary, RunConfig, RunManifest, RunStats } from './infrastructure/test-suite/result-storage';
|
|
132
159
|
export { ResultStorageService } from './infrastructure/test-suite/result-storage-service';
|
|
133
160
|
export { StatisticsService } from './infrastructure/test-suite/statistics-service';
|
|
@@ -135,10 +162,11 @@ export { TestSuiteService } from './infrastructure/test-suite/test-suite-service
|
|
|
135
162
|
export type { SuitesChangedCallback } from './infrastructure/test-suite/test-suite-service';
|
|
136
163
|
export { TestSuiteStore } from './infrastructure/test-suite/test-suite-store';
|
|
137
164
|
export type { ITestSuiteStore, SuiteRequestEntry } from './infrastructure/test-suite/test-suite-store';
|
|
138
|
-
export { HttpForgeParser } from './infrastructure/parsers';
|
|
139
|
-
export {
|
|
165
|
+
export { HttpForgeParser, harToCollection, parseHar } from './infrastructure/parsers';
|
|
166
|
+
export type { HarImportOptions, HarJsonBody, ParsedHarRequest } from './infrastructure/parsers';
|
|
167
|
+
export { parsePostmanEnvironment } from './infrastructure/import-export/import-postman-environment';
|
|
140
168
|
export type { ImportedEnvironment } from './infrastructure/import-export/import-postman-environment';
|
|
141
|
-
export { exportCollectionToRestClient,
|
|
169
|
+
export { exportCollectionToRestClient, writeEnvFile, writeFolderItems, writeScriptFile } from './infrastructure/import-export/rest-client-export';
|
|
142
170
|
export { DataFileParser } from './infrastructure/platform/data-file-parser';
|
|
143
171
|
export type { IDataFileParser } from './infrastructure/platform/data-file-parser';
|
|
144
172
|
export { NodeFileSystem } from './infrastructure/platform/node-file-system';
|
|
@@ -150,8 +178,7 @@ export { HashiCorpVaultResolver } from './infrastructure/secrets/hashicorp-vault
|
|
|
150
178
|
export { OnePasswordResolver } from './infrastructure/secrets/onepassword-resolver';
|
|
151
179
|
export { SecretResolverRegistry } from './infrastructure/secrets/secret-resolver-registry';
|
|
152
180
|
export type { DopplerConfig, GcpSecretsConfig, ISecretResolver, SecretProviderConfig, SecretsConfig } from './types/secret-resolver';
|
|
153
|
-
export { augmentWithDynamicVars, DYNAMIC_VARIABLES, resolveDynamicVariable, resolveDynamicVariablesInString } from './utils/dynamic-variables';
|
|
154
181
|
export { evaluateExpression, isExpression } from './utils/expression-evaluator';
|
|
155
182
|
export { applyFilterChain, parseFilterChain } from './utils/filter-engine';
|
|
156
|
-
export {
|
|
183
|
+
export { generateId } from './utils/helpers';
|
|
157
184
|
export { deserializeTypedRecord, deserializeTypedValue, serializeTypedValue } from './utils/typed-value';
|