sysml-validate 0.20.2 → 0.21.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.
package/out/main.js CHANGED
@@ -59430,6 +59430,9 @@ function nearestUnits(symbol, limit) {
59430
59430
 
59431
59431
  // ../language-server/out/src/messages.js
59432
59432
  var DIAGNOSTIC_MESSAGES = {
59433
+ // REQ-006 - a broad diagram anchor cannot prove which typed occurrence owns
59434
+ // a connection whose projected ports resolve to their shared definition.
59435
+ EDIT_RELATION_OWNER_AMBIGUOUS_PROJECTED_USAGE: "The relation owner is ambiguous between a type definition and a projected usage. Select the concrete occurrence or explicitly synchronize the definition before creating the connection.",
59433
59436
  // REQ-317 — expression paths diagnose the exact missing feature segment.
59434
59437
  RES001_FEATURE_PATH_SEGMENT: (segment, owner) => `Feature path segment '${segment}' does not exist on '${owner}'.`,
59435
59438
  LEX001_UNTERMINATED_STRING: `Unterminated string literal - missing closing '"'.`,
@@ -68393,6 +68396,20 @@ var SysmlLinker = class extends DefaultLinker {
68393
68396
  resolveIndexedNode(nodeDescription) {
68394
68397
  return this.loadAstNode(nodeDescription);
68395
68398
  }
68399
+ // REQ-210 — Annotation graphics
68400
+ /**
68401
+ * Return the parsed root for a live workspace or lazily loaded library file.
68402
+ * Diagram projection uses this to collect annotations declared beside an
68403
+ * inherited member without adding standard-library files to the workspace.
68404
+ */
68405
+ resolveDocumentRoot(uri) {
68406
+ const live = this.langiumDocuments().getDocument(uri)?.parseResult?.value;
68407
+ if (live)
68408
+ return live;
68409
+ if (!isStandardLibraryUri(uri))
68410
+ return void 0;
68411
+ return this.parsedLibraryDocument(uri)?.parseResult?.value;
68412
+ }
68396
68413
  /** Parse (once) the standard-library file a precomputed description points at.
68397
68414
  * Prefers an already-live workspace document when one exists (runtime-loaded
68398
68415
  * library, or the user opened the file) so there is never a second copy. */
@@ -72235,7 +72252,7 @@ async function runValidation(command) {
72235
72252
  }
72236
72253
 
72237
72254
  // src/main.ts
72238
- var VERSION2 = true ? "0.20.2" : "dev";
72255
+ var VERSION2 = true ? "0.21.0" : "dev";
72239
72256
  async function main(argv) {
72240
72257
  const command = parseArgs(argv);
72241
72258
  if (command.kind === "help") {