@moldea.ai/core 9.2.0 → 9.2.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 CHANGED
@@ -98,7 +98,7 @@ Core uses independent limits for distinct entries, total bytes read, per-file by
98
98
 
99
99
  Logical `RESOURCE_LIMIT_EXCEEDED` exceptions identify the exceeded limit, its configured maximum, the observed or projected usage, and `reduce-input-or-increase-limit`. Verified isolated-worker heap exhaustion uses `review-inspection-capacity` with unknown observed usage. Fixed transport limits have no next action. Core refuses an operation before allocating retained state beyond the applicable ceiling.
100
100
 
101
- Private manifest and decision YAML trees and their pointer-lookup storage also reserve logical retained memory until final locations are resolved. These reservations are released on success or failure; they do not remain in prepared inspection handles.
101
+ Valid manifest and decision YAML trees and their pointer-lookup storage also reserve logical retained memory until final locations are resolved. Invalid documents keep their parser-located diagnostics without an additional tree reservation. These reservations are released on success or failure; they do not remain in prepared inspection handles.
102
102
 
103
103
  ## Development
104
104
 
@@ -91,7 +91,7 @@ var repository = createProxyReader("repository", start.snapshot);
91
91
  var instructions = start.instructions === null ? null : createProxyReader("instructions", start.instructions.snapshot);
92
92
  /** Prepares the fixed Core implementation after the parent acknowledges the heap. */
93
93
  var prepare = async () => {
94
- const { createCore } = await import("./chunks/core-DOzzzqoB.js").then((n) => n.t);
94
+ const { createCore } = await import("./chunks/core-CYBi2WuD.js").then((n) => n.t);
95
95
  inspection = await createCore(normalizeCoreOptions({ limits: {
96
96
  ...start.limits,
97
97
  maxRetainedBytes: start.limits.maxRetainedBytes - NODE_INSPECTION_TRANSPORT_BYTES
@@ -1800,7 +1800,7 @@ var readDecisionGraph = async (repository, paths, options, signal, retainYamlRoo
1800
1800
  content: content.slice(),
1801
1801
  path
1802
1802
  }, options, "validate-project");
1803
- if (parsed.yamlRoot !== null) retainYamlRoot?.(path, parsed.yamlRoot);
1803
+ if (parsed.decision !== null && parsed.yamlRoot !== null) retainYamlRoot?.(path, parsed.yamlRoot);
1804
1804
  for (const diagnostic of parsed.diagnostics) diagnostics.merge(diagnostic);
1805
1805
  candidates.push({
1806
1806
  decision: parsed.decision,
@@ -3183,7 +3183,7 @@ var inspectUniversalProject = async (context, options) => {
3183
3183
  content,
3184
3184
  path: MANIFEST_PATH
3185
3185
  }, options, "validate-project");
3186
- if (parsedManifest.yamlRoot !== null) retainYamlRoot(MANIFEST_PATH, parsedManifest.yamlRoot);
3186
+ if (parsedManifest.manifest !== null && parsedManifest.yamlRoot !== null) retainYamlRoot(MANIFEST_PATH, parsedManifest.yamlRoot);
3187
3187
  formatVersion = parsedManifest.formatVersion;
3188
3188
  addDiagnostics(collector, parsedManifest.diagnostics);
3189
3189
  if (parsedManifest.asset !== null && parsedManifest.manifest !== null) indexedManifest = {
@@ -3691,4 +3691,4 @@ var createCore = (options) => {
3691
3691
  //#endregion
3692
3692
  export { createCore as n, parseIntegrationBlock as r, core_exports as t };
3693
3693
 
3694
- //# sourceMappingURL=core-DOzzzqoB.js.map
3694
+ //# sourceMappingURL=core-CYBi2WuD.js.map