@http-forge/core 0.6.36-beta.2 → 0.6.37

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
@@ -45,6 +45,14 @@
45
45
  - Load testing and performance monitoring
46
46
  - Automated integration test suites
47
47
 
48
+ ### Latest platform capabilities
49
+
50
+ - API discovery from source code for six frameworks with provenance and confidence scoring.
51
+ - Workflow generation for auth and CRUD chains, along with `.suite.json` and runnable `.flow.js` artifacts.
52
+ - Drift detection and 3-way merge logic that can regenerate stale suite content while preserving intentional edits.
53
+ - Intent-to-API design via `ApiArchitectService.designFromIntent`, turning plain-English requirements into OpenAPI, collection, suite, flow, and docs outputs.
54
+ - AI context assembly from `.http-forge/knowledge`, request docs, and test results for grounded MCP and Copilot automation.
55
+
48
56
  ## 🧭 Quick Navigation
49
57
 
50
58
  - Pick the right entry point: [Start Here](#-start-here)
@@ -230,8 +238,11 @@ Behavior notes:
230
238
  - `switch` nodes support `cases[]` and optional `default`.
231
239
  - `for` nodes prefer `loopCondition` for loop evaluation (legacy `condition` remains backward compatible).
232
240
  - Suite progress starts from a simple request-count estimate and adjusts totals live as branch and loop decisions resolve.
241
+ - **Alias parity:** condition expressions (`if`/`switch`/`for`/`while`) and script bodies both expose `pm`/`ctx`/`hf` interchangeably (`hf.variables.get("__i") < 100` === `pm.variables.get("__i") < 100` === `ctx.variables.get("__i") < 100`). The performance-test helper `TestSuiteService.createTempSuiteFromRequest` uses `hf` by default.
242
+
243
+ Flow scripts run through the same script session runtime as request scripts, so you can use `pm.variables.set/get`, `pm.environment`, and `pm.globals` (or the `ctx`/`hf` aliases) consistently.
233
244
 
234
- Flow scripts run through the same script session runtime as request scripts, so you can use `pm.variables.set/get`, `pm.environment`, and `pm.globals` consistently.
245
+ > Performance loop: `ITestSuiteService.createTempSuiteFromRequest()` wraps a single request in a `for` node with `init: hf.variables.set("__i",0)`, `loopCondition: hf.variables.get("__i") < 100`, `update: hf.variables.set("__i", hf.variables.get("__i")+1)`, `maxIterations: 100`. Edit `loopCondition`/`maxIterations` to tune load; prepend a login request above the `for` node to reuse auth.
235
246
 
236
247
  ```json
237
248
  {
package/dist/index.d.ts CHANGED
@@ -125,6 +125,7 @@ export type { OpenApiExportOptions, OpenApiImportOptions, ScriptAnalysisResult }
125
125
  export * from './infrastructure/openapi/interfaces';
126
126
  export * from './infrastructure/architect';
127
127
  export * from './infrastructure/api-discovery/analyzer';
128
+ export { buildDescription, endpointToCreateRequestOptions, endpointToName, endpointToRequestParts, schemaToExample, } from './infrastructure/api-discovery/endpoint-to-request';
128
129
  export { ApiDiscoveryService } from './infrastructure/api-discovery/api-discovery-service';
129
130
  export type { ApiDiscoveryServiceOptions, IApiDiscoveryService } from './infrastructure/api-discovery/api-discovery-service';
130
131
  export { applyRegenerated, computeProjectFreshness, detectIndexDrift, detectProjectDrift, diffLines, proposeSuiteUpdates, resolveRegenerated, threeWayDiff } from './infrastructure/api-discovery/drift-engine';