@moldea.ai/core 7.0.2 → 7.0.4

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
@@ -2,7 +2,7 @@
2
2
 
3
3
  # `@moldea.ai/core`
4
4
 
5
- Source-neutral, deterministic, content-safe interpretation of the moldea repository format.
5
+ Source-neutral, deterministic, content-safe interpretation of the `moldea` repository format.
6
6
 
7
7
  Version 7 accepts caller-supplied text and `@moldea.ai/repository` version 2 readers. The main, format, and scope entry points remain environment-neutral. Repository access belongs to the caller-supplied reader. Project validation returns content-free summaries, diagnostics, binding coverage, agent assignments, and metadata. Canonical document bodies are available only through an explicit path-scoped byte-range operation.
8
8
 
@@ -76,7 +76,7 @@ var repository = {
76
76
  };
77
77
  /** Prepares the fixed Core implementation after the parent acknowledges the heap. */
78
78
  var prepare = async () => {
79
- const { createCore } = await import("./chunks/core-DC9KYL1H.js").then((n) => n.t);
79
+ const { createCore } = await import("./chunks/core-FyfprJqa.js").then((n) => n.t);
80
80
  inspection = await createCore(normalizeCoreOptions({ limits: {
81
81
  ...start.limits,
82
82
  maxRetainedBytes: start.limits.maxRetainedBytes - NODE_INSPECTION_TRANSPORT_BYTES
@@ -1,6 +1,6 @@
1
1
  import { E as parseDecisionIdFromPath, O as trimRepositoryFormatWhitespace, S as isRuntimeGuidancePath, T as isVariableId, a as escapeJsonPointerSegment, c as freezeRecursively, d as hasNonWhitespace, g as isContextPath, i as createCoreDiagnosticCollector, l as compareExactStrings, n as normalizeCoreOptions, o as normalizeDiagnostics, r as countDiagnosticsBySeverity, s as createNullPrototypeRecord, t as createCoreOperationOptionsSnapshot, u as countUnicodeScalars } from "./options-AMqX7rx_.js";
2
2
  import { n as CoreOperationException } from "./exceptions-CYf1pCKf.js";
3
- import { a as createSourceLocator, c as calculateContentDigest, i as parseStrictYaml, l as calculateNormalizedTextDigest, n as inspectManifestDocument, o as collectManifestScopeDeclarations, r as parseManifestDocument, s as matchesRepositoryGlob, t as matchManifestScope, u as normalizeTextDocument } from "./scope-DxhC1hq2.js";
3
+ import { a as createSourceLocator, c as calculateContentDigest, i as parseStrictYaml, l as calculateNormalizedTextDigest, n as inspectManifestDocument, o as collectManifestScopeDeclarations, r as parseManifestDocument, s as matchesRepositoryGlob, t as matchManifestScope, u as normalizeTextDocument } from "./scope-e3-w9N7D.js";
4
4
  import { REPOSITORY_ROOT, RepositorySourceException, compareRepositoryPaths, createRepositoryIdentity, isRepositoryPath, parseRepositoryPath } from "@moldea.ai/repository";
5
5
  //#region \0rolldown/runtime.js
6
6
  var __defProp = Object.defineProperty;
@@ -1825,8 +1825,8 @@ var validateManifestRelationships = (manifestPath, manifest, discovery, decision
1825
1825
  const agent = manifest.agents?.[agentId];
1826
1826
  if (agent === void 0) continue;
1827
1827
  const escapedAgentId = escapeJsonPointerSegment(agentId);
1828
- for (const referencedPath of [...agent.context ?? []].sort(compareExactStrings)) validateContextRelationship(referencedPath, `/agents/${escapedAgentId}/context`, validationContext.validAgentContextPaths, validationContext, agentId);
1829
- for (const referencedPath of [...agent.decisions ?? []].sort(compareExactStrings)) validateDecisionRelationship(referencedPath, `/agents/${escapedAgentId}/decisions`, validationContext, agentId);
1828
+ for (const [index, referencedPath] of (agent.context ?? []).entries()) validateContextRelationship(referencedPath, `/agents/${escapedAgentId}/context/${index}`, validationContext.validAgentContextPaths, validationContext, agentId);
1829
+ for (const [index, referencedPath] of (agent.decisions ?? []).entries()) validateDecisionRelationship(referencedPath, `/agents/${escapedAgentId}/decisions/${index}`, validationContext, agentId);
1830
1830
  }
1831
1831
  return collector.finalize();
1832
1832
  };
@@ -2245,7 +2245,7 @@ var inspectMirrors = async (repository, manifestPath, agents, options, signal) =
2245
2245
  for (const agent of [...agents].sort((left, right) => compareExactStrings(left.id, right.id))) {
2246
2246
  const mirrors = [];
2247
2247
  if (agent.instruction !== null) {
2248
- const declaredMirrors = [...agent.declaration.mirrors ?? []].sort(compareExactStrings);
2248
+ const declaredMirrors = agent.declaration.mirrors ?? [];
2249
2249
  for (const [index, mirrorPath] of declaredMirrors.entries()) {
2250
2250
  const mirror = await inspectMirror(repository, manifestPath, agent.instruction, mirrorPath, `/agents/${escapeJsonPointerSegment(agent.id)}/mirrors/${index}`, agent.id, options, collector, operationOptions, signal);
2251
2251
  if (mirror !== null) mirrors.push(mirror);
@@ -3363,4 +3363,4 @@ var createCore = (options) => {
3363
3363
  //#endregion
3364
3364
  export { createCore as n, parseIntegrationBlock as r, core_exports as t };
3365
3365
 
3366
- //# sourceMappingURL=core-DC9KYL1H.js.map
3366
+ //# sourceMappingURL=core-FyfprJqa.js.map