@rulvar/core 1.186.0 → 1.187.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -0
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12350,6 +12350,13 @@ async function runAgent(options) {
12350
12350
  const wire = namespace?.wireRequests;
12351
12351
  const wireIds = wire !== void 0 && Array.isArray(wire.responseIds) && wire.responseIds.length > 1 && wire.responseIds.every((id) => typeof id === "string") ? wire.responseIds : void 0;
12352
12352
  if (wireIds !== void 0) record.wireResponseIds = wireIds;
12353
+ if (wireIds === void 0 && record.outcome === "error") {
12354
+ const absorbed = (outcome.wireError !== void 0 && typeof outcome.wireError.data === "object" && outcome.wireError.data !== null && !Array.isArray(outcome.wireError.data) ? outcome.wireError.data : void 0)?.wireRequests;
12355
+ const absorbedIds = absorbed !== void 0 && Array.isArray(absorbed.responseIds) ? absorbed.responseIds.filter((id) => typeof id === "string") : [];
12356
+ if (absorbedIds.length > 0) record.wireResponseIds = absorbedIds;
12357
+ const absorbedCount = absorbed?.count;
12358
+ if (typeof absorbedCount === "number" && Number.isInteger(absorbedCount) && absorbedCount > 0 && (absorbedCount > 1 || absorbedIds.length > 0)) record.wireRequests = absorbedCount;
12359
+ }
12353
12360
  const wireCountReported = wire?.count;
12354
12361
  if (typeof wireCountReported === "number" && Number.isInteger(wireCountReported) && wireCountReported > 1) record.wireRequests = wireCountReported;
12355
12362
  if (outcome.usageApprox) record.usageApprox = true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rulvar/core",
3
- "version": "1.186.0",
3
+ "version": "1.187.0",
4
4
  "description": "Rulvar core: L0 contracts, journal kernel, ctx primitives, agent runtime, model router, tool system, dynamic orchestrator, InMemory and JSONL stores, event stream.",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",