@http-forge/core 0.6.40 → 0.6.42

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
@@ -170,7 +170,7 @@ http-forge run collection "MyApi" --env staging --exit-code
170
170
 
171
171
  - Exposes MCP-compatible operations for collections, environments, and test execution.
172
172
  - **Authoring and management tools** — create/rename/delete collections, folders, requests, suites, and environments; script and ordering tools.
173
- - **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`.
173
+ - **Discovery and drift tools** — `create_request_from_endpoint`, `generate_test_suite`, `suggest_workflow`, `generate_workflow`, `check_drift`, `propose_update`, the QA gate `qa_api`, plus the API-architect tool `design_api_from_intent`.
174
174
  - **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.
175
175
  - **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.
176
176
  - Enables AI agents to inspect, run, and update API testing resources programmatically.
@@ -212,6 +212,12 @@ Learn more:
212
212
  - `collectionToEndpoints` converts a collection into `DiscoveredApi[]` so the same workflow/CRUD machinery works on collections too.
213
213
  - CLI surface: `http-forge architect "<intent>"`; MCP tool: `design_api_from_intent`.
214
214
 
215
+ ### QA Check (discover → generate → run → report)
216
+
217
+ - `runQaCheck(services, workspaceFolder, opts)` (`src/infrastructure/qa/qa-service.ts`) — one-shot quality gate: project freshness/drift check, source discovery, idempotent request creation (matched by method + path, never duplicated), deterministic suite generation (`QA <collection>`), live execution, and a CI-friendly `QaCheckReport` (`pass` / `fail` / `drift` / `dry-run`, per-endpoint expected-vs-actual, low-confidence list). Optional `aiAssertions` pass proposes LLM-written assertions as reviewable suggestions (never a gate).
218
+ - `renderQaReportTable(report)` renders the human-readable summary; JSON output is the report object itself.
219
+ - CLI surface: `http-forge qa --path <project> --collection <ref> --base-url <url>` (exit codes `0` pass/dry-run, `1` failures, `2` infra error, `3` drift); MCP tool: `qa_api`.
220
+
215
221
  ## 🧠 AI Context and Business Knowledge
216
222
 
217
223
  Every AI feature gets the same grounding through `src/infrastructure/ai/ai-context.ts`, which assembles bounded, token-budgeted "business context" blocks:
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';
@@ -94,6 +95,9 @@ export type { EnhanceProgressCallback } from './infrastructure/analysis/collecti
94
95
  export { scanCollectionForEnvVarsWithAi } from './infrastructure/analysis/ai-env-suggester';
95
96
  export { applyEnvSuggestionsToItems, detectEnvSuggestions } from './infrastructure/analysis/env-suggester';
96
97
  export type { EnvSuggestion } from './infrastructure/analysis/env-suggester';
98
+ export { runQaCheck, qaEndpointKey } from './infrastructure/qa/qa-service';
99
+ export type { QaCheckOptions, QaCheckReport, QaCheckServices, QaCheckStatus, QaEndpointResult, } from './infrastructure/qa/qa-service';
100
+ export { renderQaReportTable } from './infrastructure/qa/qa-report';
97
101
  export { resolveCollectionRef, resolveFolderRef, resolveRequestRef } from './runtime/ref-resolver';
98
102
  export type { RefCandidate, RefKind, RefTier, ResolutionInfo } from './runtime/ref-resolver';
99
103
  export { EnvironmentConfigService } from './infrastructure/environment/environment-config-service';
@@ -180,7 +184,7 @@ export { GcpSecretResolver } from './infrastructure/secrets/gcp-secret-resolver'
180
184
  export { HashiCorpVaultResolver } from './infrastructure/secrets/hashicorp-vault-resolver';
181
185
  export { OnePasswordResolver } from './infrastructure/secrets/onepassword-resolver';
182
186
  export { SecretResolverRegistry } from './infrastructure/secrets/secret-resolver-registry';
183
- export type { DopplerConfig, GcpSecretsConfig, ISecretResolver, SecretProviderConfig, SecretsConfig } from './types/secret-resolver';
187
+ export type { CustomSecretProviderConfig, CustomSecretProviderContext, CustomSecretResolver, CustomSecretResolverFactory, DopplerConfig, GcpSecretsConfig, ISecretResolver, SecretProviderConfig, SecretsConfig, } from './types/secret-resolver';
184
188
  export { evaluateExpression, isExpression } from './utils/expression-evaluator';
185
189
  export { applyFilterChain, parseFilterChain } from './utils/filter-engine';
186
190
  export { generateId } from './utils/helpers';