sysmledgraph 0.7.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/README.md +71 -0
- package/dist/bin/cli.d.ts +6 -0
- package/dist/bin/cli.d.ts.map +1 -0
- package/dist/bin/cli.js +61 -0
- package/dist/bin/cli.js.map +1 -0
- package/dist/mcp/index.d.ts +3 -0
- package/dist/mcp/index.d.ts.map +1 -0
- package/dist/mcp/index.js +8 -0
- package/dist/mcp/index.js.map +1 -0
- package/dist/src/cli/commands.d.ts +22 -0
- package/dist/src/cli/commands.d.ts.map +1 -0
- package/dist/src/cli/commands.js +87 -0
- package/dist/src/cli/commands.js.map +1 -0
- package/dist/src/discovery/find-sysml.d.ts +16 -0
- package/dist/src/discovery/find-sysml.d.ts.map +1 -0
- package/dist/src/discovery/find-sysml.js +30 -0
- package/dist/src/discovery/find-sysml.js.map +1 -0
- package/dist/src/discovery/load-order.d.ts +11 -0
- package/dist/src/discovery/load-order.d.ts.map +1 -0
- package/dist/src/discovery/load-order.js +85 -0
- package/dist/src/discovery/load-order.js.map +1 -0
- package/dist/src/graph/connection.d.ts +6 -0
- package/dist/src/graph/connection.d.ts.map +1 -0
- package/dist/src/graph/connection.js +7 -0
- package/dist/src/graph/connection.js.map +1 -0
- package/dist/src/graph/graph-store.d.ts +37 -0
- package/dist/src/graph/graph-store.d.ts.map +1 -0
- package/dist/src/graph/graph-store.js +108 -0
- package/dist/src/graph/graph-store.js.map +1 -0
- package/dist/src/graph/schema.d.ts +13 -0
- package/dist/src/graph/schema.d.ts.map +1 -0
- package/dist/src/graph/schema.js +21 -0
- package/dist/src/graph/schema.js.map +1 -0
- package/dist/src/index.d.ts +14 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +14 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/indexer/indexer.d.ts +20 -0
- package/dist/src/indexer/indexer.d.ts.map +1 -0
- package/dist/src/indexer/indexer.js +56 -0
- package/dist/src/indexer/indexer.js.map +1 -0
- package/dist/src/indexer/pipeline-phases.d.ts +8 -0
- package/dist/src/indexer/pipeline-phases.d.ts.map +1 -0
- package/dist/src/indexer/pipeline-phases.js +14 -0
- package/dist/src/indexer/pipeline-phases.js.map +1 -0
- package/dist/src/mcp/resources/context.d.ts +6 -0
- package/dist/src/mcp/resources/context.d.ts.map +1 -0
- package/dist/src/mcp/resources/context.js +45 -0
- package/dist/src/mcp/resources/context.js.map +1 -0
- package/dist/src/mcp/resources/schema.d.ts +6 -0
- package/dist/src/mcp/resources/schema.d.ts.map +1 -0
- package/dist/src/mcp/resources/schema.js +14 -0
- package/dist/src/mcp/resources/schema.js.map +1 -0
- package/dist/src/mcp/server.d.ts +8 -0
- package/dist/src/mcp/server.d.ts.map +1 -0
- package/dist/src/mcp/server.js +175 -0
- package/dist/src/mcp/server.js.map +1 -0
- package/dist/src/mcp/tools/clean-index.d.ts +12 -0
- package/dist/src/mcp/tools/clean-index.d.ts.map +1 -0
- package/dist/src/mcp/tools/clean-index.js +22 -0
- package/dist/src/mcp/tools/clean-index.js.map +1 -0
- package/dist/src/mcp/tools/context.d.ts +14 -0
- package/dist/src/mcp/tools/context.d.ts.map +1 -0
- package/dist/src/mcp/tools/context.js +51 -0
- package/dist/src/mcp/tools/context.js.map +1 -0
- package/dist/src/mcp/tools/cypher.d.ts +13 -0
- package/dist/src/mcp/tools/cypher.d.ts.map +1 -0
- package/dist/src/mcp/tools/cypher.js +25 -0
- package/dist/src/mcp/tools/cypher.js.map +1 -0
- package/dist/src/mcp/tools/generate-map.d.ts +13 -0
- package/dist/src/mcp/tools/generate-map.d.ts.map +1 -0
- package/dist/src/mcp/tools/generate-map.js +96 -0
- package/dist/src/mcp/tools/generate-map.js.map +1 -0
- package/dist/src/mcp/tools/impact.d.ts +14 -0
- package/dist/src/mcp/tools/impact.d.ts.map +1 -0
- package/dist/src/mcp/tools/impact.js +47 -0
- package/dist/src/mcp/tools/impact.js.map +1 -0
- package/dist/src/mcp/tools/index-db-graph.d.ts +14 -0
- package/dist/src/mcp/tools/index-db-graph.d.ts.map +1 -0
- package/dist/src/mcp/tools/index-db-graph.js +32 -0
- package/dist/src/mcp/tools/index-db-graph.js.map +1 -0
- package/dist/src/mcp/tools/list-indexed.d.ts +9 -0
- package/dist/src/mcp/tools/list-indexed.d.ts.map +1 -0
- package/dist/src/mcp/tools/list-indexed.js +14 -0
- package/dist/src/mcp/tools/list-indexed.js.map +1 -0
- package/dist/src/mcp/tools/query.d.ts +14 -0
- package/dist/src/mcp/tools/query.d.ts.map +1 -0
- package/dist/src/mcp/tools/query.js +47 -0
- package/dist/src/mcp/tools/query.js.map +1 -0
- package/dist/src/mcp/tools/rename.d.ts +19 -0
- package/dist/src/mcp/tools/rename.d.ts.map +1 -0
- package/dist/src/mcp/tools/rename.js +46 -0
- package/dist/src/mcp/tools/rename.js.map +1 -0
- package/dist/src/parser/lsp-client.d.ts +52 -0
- package/dist/src/parser/lsp-client.d.ts.map +1 -0
- package/dist/src/parser/lsp-client.js +230 -0
- package/dist/src/parser/lsp-client.js.map +1 -0
- package/dist/src/parser/lsp-server-path.d.ts +10 -0
- package/dist/src/parser/lsp-server-path.d.ts.map +1 -0
- package/dist/src/parser/lsp-server-path.js +29 -0
- package/dist/src/parser/lsp-server-path.js.map +1 -0
- package/dist/src/parser/symbols.d.ts +13 -0
- package/dist/src/parser/symbols.d.ts.map +1 -0
- package/dist/src/parser/symbols.js +150 -0
- package/dist/src/parser/symbols.js.map +1 -0
- package/dist/src/parser/sysml-mcp-client.d.ts +109 -0
- package/dist/src/parser/sysml-mcp-client.d.ts.map +1 -0
- package/dist/src/parser/sysml-mcp-client.js +185 -0
- package/dist/src/parser/sysml-mcp-client.js.map +1 -0
- package/dist/src/storage/clean.d.ts +15 -0
- package/dist/src/storage/clean.d.ts.map +1 -0
- package/dist/src/storage/clean.js +44 -0
- package/dist/src/storage/clean.js.map +1 -0
- package/dist/src/storage/list.d.ts +9 -0
- package/dist/src/storage/list.d.ts.map +1 -0
- package/dist/src/storage/list.js +12 -0
- package/dist/src/storage/list.js.map +1 -0
- package/dist/src/storage/location.d.ts +22 -0
- package/dist/src/storage/location.d.ts.map +1 -0
- package/dist/src/storage/location.js +36 -0
- package/dist/src/storage/location.js.map +1 -0
- package/dist/src/storage/registry.d.ts +14 -0
- package/dist/src/storage/registry.d.ts.map +1 -0
- package/dist/src/storage/registry.js +59 -0
- package/dist/src/storage/registry.js.map +1 -0
- package/dist/src/symbol-to-graph/mapping.d.ts +17 -0
- package/dist/src/symbol-to-graph/mapping.d.ts.map +1 -0
- package/dist/src/symbol-to-graph/mapping.js +102 -0
- package/dist/src/symbol-to-graph/mapping.js.map +1 -0
- package/dist/src/types.d.ts +40 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +35 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/worker/client.d.ts +21 -0
- package/dist/src/worker/client.d.ts.map +1 -0
- package/dist/src/worker/client.js +126 -0
- package/dist/src/worker/client.js.map +1 -0
- package/dist/src/worker/gateway.d.ts +79 -0
- package/dist/src/worker/gateway.d.ts.map +1 -0
- package/dist/src/worker/gateway.js +93 -0
- package/dist/src/worker/gateway.js.map +1 -0
- package/dist/src/worker/graph-worker.d.ts +7 -0
- package/dist/src/worker/graph-worker.d.ts.map +1 -0
- package/dist/src/worker/graph-worker.js +91 -0
- package/dist/src/worker/graph-worker.js.map +1 -0
- package/dist/src/worker/protocol.d.ts +21 -0
- package/dist/src/worker/protocol.d.ts.map +1 -0
- package/dist/src/worker/protocol.js +9 -0
- package/dist/src/worker/protocol.js.map +1 -0
- package/docs/INSTALL.md +16 -0
- package/docs/MCP_CLIENT_TEMPLATE_ANALYSIS.md +196 -0
- package/docs/MCP_INTERACTION_GUIDE.md +201 -0
- package/docs/MCP_SERVER_FOR_CURSOR.md +124 -0
- package/docs/PLAN.md +58 -0
- package/docs/PLAN_INDEPENDENT_LSP.md +145 -0
- package/docs/SKILL_DESIGN_PATTERNS.md +305 -0
- package/docs/TOOLS.md +317 -0
- package/lsp/README.md +41 -0
- package/lsp/node_modules/.bin/sysml-mcp +12 -0
- package/lsp/node_modules/.bin/sysml-mcp.cmd +9 -0
- package/lsp/node_modules/.bin/sysml-mcp.ps1 +16 -0
- package/lsp/node_modules/.package-lock.json +22 -0
- package/lsp/node_modules/sysml-v2-lsp/CHANGELOG.md +188 -0
- package/lsp/node_modules/sysml-v2-lsp/LICENSE +21 -0
- package/lsp/node_modules/sysml-v2-lsp/README.md +172 -0
- package/lsp/node_modules/sysml-v2-lsp/dist/server/mcpServer.js +167 -0
- package/lsp/node_modules/sysml-v2-lsp/dist/server/server.js +142 -0
- package/lsp/node_modules/sysml-v2-lsp/index.cjs +23 -0
- package/lsp/node_modules/sysml-v2-lsp/package.json +131 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/.project +17 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/.settings/org.eclipse.jdt.core.prefs +11 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/.meta.json +10 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/.project.json +27 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/AnalysisTooling.sysml +34 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/SampledFunctions.sysml +119 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/StateSpaceRepresentation.sysml +143 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Analysis/TradeStudies.sysml +171 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Cause and Effect/.meta.json +8 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Cause and Effect/.project.json +23 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Cause and Effect/CausationConnections.sysml +83 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Cause and Effect/CauseAndEffect.sysml +81 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Geometry/.meta.json +8 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Geometry/.project.json +27 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Geometry/ShapeItems.sysml +899 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Geometry/SpatialItems.sysml +168 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/.meta.json +10 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/.project.json +19 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/ImageMetadata.sysml +78 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/ModelingMetadata.sysml +143 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/ParametersOfInterestMetadata.sysml +39 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Metadata/RiskMetadata.sysml +100 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/.meta.json +29 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/.project.json +23 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQ.sysml +42 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQAcoustics.sysml +439 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQAtomicNuclear.sysml +2726 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQBase.sysml +206 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQCharacteristicNumbers.sysml +1991 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQChemistryMolecular.sysml +1353 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQCondensedMatter.sysml +1223 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQElectromagnetism.sysml +2333 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQInformation.sysml +958 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQLight.sysml +1537 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQMechanics.sysml +1564 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQSpaceTime.sysml +1169 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/ISQThermodynamics.sysml +1256 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/MeasurementRefCalculations.sysml +30 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/MeasurementReferences.sysml +526 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/Quantities.sysml +107 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/QuantityCalculations.sysml +70 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/SI.sysml +378 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/SIPrefixes.sysml +48 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/TensorCalculations.sysml +50 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/Time.sysml +274 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/USCustomaryUnits.sysml +260 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Quantities and Units/VectorCalculations.sysml +62 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Requirement Derivation/.meta.json +8 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Requirement Derivation/.project.json +19 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Requirement Derivation/DerivationConnections.sysml +63 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Domain Libraries/Requirement Derivation/RequirementDerivation.sysml +39 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/.meta.json +9 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/.project.json +11 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/Collections.kerml +147 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/ScalarValues.kerml +23 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Data Type Library/VectorValues.kerml +64 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/.meta.json +23 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/.project.json +15 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/BaseFunctions.kerml +80 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/BooleanFunctions.kerml +22 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/CollectionFunctions.kerml +68 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/ComplexFunctions.kerml +47 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/ControlFunctions.kerml +117 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/DataFunctions.kerml +43 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/IntegerFunctions.kerml +43 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/NaturalFunctions.kerml +27 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/NumericalFunctions.kerml +43 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/OccurrenceFunctions.kerml +154 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/RationalFunctions.kerml +49 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/RealFunctions.kerml +56 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/ScalarFunctions.kerml +33 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/SequenceFunctions.kerml +111 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/StringFunctions.kerml +25 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/TrigFunctions.kerml +35 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Function Library/VectorFunctions.kerml +273 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/.meta.json +22 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/.project.json +15 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Base.kerml +95 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Clocks.kerml +156 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/ControlPerformances.kerml +135 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/FeatureReferencingPerformances.kerml +190 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/KerML.kerml +483 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Links.kerml +67 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Metaobjects.kerml +58 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Objects.kerml +212 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Observation.kerml +161 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Occurrences.kerml +992 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Performances.kerml +293 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/SpatialFrames.kerml +197 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/StatePerformances.kerml +145 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Transfers.kerml +281 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/TransitionPerformances.kerml +66 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Kernel Libraries/Kernel Semantic Library/Triggers.kerml +188 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/.meta.json +27 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/.project.json +19 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Actions.sysml +552 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Allocations.sysml +29 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/AnalysisCases.sysml +38 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Attributes.sysml +25 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Calculations.sysml +37 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Cases.sysml +71 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Connections.sysml +60 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Constraints.sysml +44 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Flows.sysml +126 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Interfaces.sysml +89 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Items.sysml +153 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Metadata.sysml +32 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Parts.sysml +81 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Ports.sysml +54 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Requirements.sysml +194 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/StandardViewDefinitions.sysml +123 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/States.sysml +103 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/SysML.sysml +539 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/UseCases.sysml +57 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/VerificationCases.sysml +103 -0
- package/lsp/node_modules/sysml-v2-lsp/sysml.library/Systems Library/Views.sysml +164 -0
- package/lsp/package-lock.json +30 -0
- package/lsp/package.json +15 -0
- package/lsp/test-server.mjs +120 -0
- package/package.json +61 -0
- package/scripts/access-sysml-mcp.mjs +45 -0
- package/scripts/check-sysml-v2-lsp-version.mjs +39 -0
- package/scripts/clean.mjs +14 -0
- package/scripts/compare-mcp-vs-lsp-symbols.mjs +76 -0
- package/scripts/debug-index.mjs +23 -0
- package/scripts/debug-lsp-symbols.mjs +62 -0
- package/scripts/deploy-skills.mjs +43 -0
- package/scripts/example-sysml-mcp.mjs +27 -0
- package/scripts/export-graph.mjs +80 -0
- package/scripts/generate-map.mjs +110 -0
- package/scripts/index-and-map.mjs +43 -0
- package/scripts/index-and-query.mjs +39 -0
- package/scripts/query-one.mjs +34 -0
- package/scripts/setup-lsp.mjs +36 -0
- package/scripts/test-lsp.mjs +55 -0
- package/scripts/test-mcp-debug.mjs +32 -0
- package/scripts/test-mcp-sysml.mjs +75 -0
- package/scripts/test-mcp-tools.mjs +185 -0
- package/scripts/test-sysml-mcp-from-node_modules.mjs +56 -0
- package/scripts/validate-sysml-file.mjs +69 -0
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
standard library package Objects {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package defines classifiers and features that are related to the typing of objects, including link objects.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
private import Base::Anything;
|
|
8
|
+
private import Base::things;
|
|
9
|
+
private import Links::*;
|
|
10
|
+
private import Occurrences::Occurrence;
|
|
11
|
+
private import Occurrences::occurrences;
|
|
12
|
+
private import Occurrences::HappensLink;
|
|
13
|
+
private import Occurrences::SelfSameLifeLink;
|
|
14
|
+
private import Occurrences::WithinBoth;
|
|
15
|
+
private import Performances::Performance;
|
|
16
|
+
private import Performances::performances;
|
|
17
|
+
private import SequenceFunctions::isEmpty;
|
|
18
|
+
private import SequenceFunctions::notEmpty;
|
|
19
|
+
private import SequenceFunctions::union;
|
|
20
|
+
private import CollectionFunctions::contains;
|
|
21
|
+
private import ScalarValues::Integer;
|
|
22
|
+
private import ScalarValues::Natural;
|
|
23
|
+
|
|
24
|
+
abstract struct Object specializes Occurrence {
|
|
25
|
+
doc
|
|
26
|
+
/*
|
|
27
|
+
* Object is the most general class of structural occurrences that may change over time.
|
|
28
|
+
*/
|
|
29
|
+
|
|
30
|
+
feature self: Object redefines Occurrence::self;
|
|
31
|
+
|
|
32
|
+
composite feature subobjects: Object[0..*] subsets objects, suboccurrences
|
|
33
|
+
intersects objects, suboccurrences {
|
|
34
|
+
doc
|
|
35
|
+
/*
|
|
36
|
+
* The suboccurrences of this Object that are also Objects.
|
|
37
|
+
*/
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
feature involvingPerformances: Performance[0..*] subsets performances {
|
|
41
|
+
doc
|
|
42
|
+
/*
|
|
43
|
+
* Performances in which this object is involved.
|
|
44
|
+
*/
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
abstract step enactedPerformances: Performance[0..*] subsets involvingPerformances, timeEnclosedOccurrences
|
|
48
|
+
intersects involvingPerformances, timeEnclosedOccurrences {
|
|
49
|
+
doc
|
|
50
|
+
/*
|
|
51
|
+
* Performances that are enacted by this object.
|
|
52
|
+
*/
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
composite step ownedPerformances: Performance[0..*] subsets involvingPerformances, timeEnclosedOccurrences, suboccurrences
|
|
56
|
+
intersects involvingPerformances, timeEnclosedOccurrences, suboccurrences {
|
|
57
|
+
doc
|
|
58
|
+
/*
|
|
59
|
+
* Performances that are owned by this object.
|
|
60
|
+
*/
|
|
61
|
+
|
|
62
|
+
feature redefines this default that {
|
|
63
|
+
doc
|
|
64
|
+
/*
|
|
65
|
+
* The owning object is the default "this" reference for all ownedPerformances.
|
|
66
|
+
*/
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
portion structuredSpaceBoundary : StructuredSpaceObject[0..1] subsets spaceBoundary {
|
|
71
|
+
doc
|
|
72
|
+
/*
|
|
73
|
+
* A space boundary that is a structured space object.
|
|
74
|
+
*/
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
abstract assoc struct LinkObject specializes Link, Object intersects Link, Object {
|
|
79
|
+
doc
|
|
80
|
+
/*
|
|
81
|
+
* LinkObject is the most general association structure, being both a Link and an Object.
|
|
82
|
+
*/
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
assoc struct BinaryLinkObject specializes BinaryLink, LinkObject intersects BinaryLink, LinkObject {
|
|
86
|
+
doc
|
|
87
|
+
/*
|
|
88
|
+
* BinaryLinkObject is the most general binary association structure, being both a
|
|
89
|
+
* BinaryLink and a LinkObject.
|
|
90
|
+
*/
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
abstract feature objects: Object[0..*] nonunique subsets occurrences {
|
|
94
|
+
doc
|
|
95
|
+
/*
|
|
96
|
+
* objects is a specialization of occurrences restricted to type Object.
|
|
97
|
+
*/
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
abstract feature linkObjects: LinkObject[0..*] nonunique subsets links, objects intersects links, objects {
|
|
101
|
+
doc
|
|
102
|
+
/*
|
|
103
|
+
* linkObjects is a specializations of links and objects restricted to type LinkObjects.
|
|
104
|
+
*/
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
abstract feature binaryLinkObjects: BinaryLinkObject[0..*] nonunique subsets binaryLinks, linkObjects
|
|
108
|
+
intersects binaryLinks, linkObjects {
|
|
109
|
+
doc
|
|
110
|
+
/*
|
|
111
|
+
* binaryLinkObjects is a specialization of binaryLinks and linkObjects restricted to
|
|
112
|
+
* type BinaryLinkObjects.
|
|
113
|
+
*/
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
struct all Body specializes Object {
|
|
118
|
+
doc
|
|
119
|
+
/*
|
|
120
|
+
* A Body is an Object of inner space dimension 3.
|
|
121
|
+
*/
|
|
122
|
+
|
|
123
|
+
feature redefines innerSpaceDimension = 3;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
struct all Surface specializes Object {
|
|
127
|
+
doc
|
|
128
|
+
/*
|
|
129
|
+
* A Surface is an Object of inner space dimension 2.
|
|
130
|
+
*/
|
|
131
|
+
|
|
132
|
+
feature redefines innerSpaceDimension = 2;
|
|
133
|
+
/* The number of "holes" in this Surface, assuming it isClosed. */
|
|
134
|
+
feature genus : Natural[0..1] default 0;
|
|
135
|
+
|
|
136
|
+
inv { notEmpty(genus) implies isClosed }
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
struct all Curve specializes Object {
|
|
140
|
+
doc
|
|
141
|
+
/*
|
|
142
|
+
* A Curve is an Object of inner space dimension 1.
|
|
143
|
+
*/
|
|
144
|
+
|
|
145
|
+
feature redefines innerSpaceDimension = 1;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
struct all Point specializes Object {
|
|
149
|
+
doc
|
|
150
|
+
/*
|
|
151
|
+
* A Point is an Object of inner space dimension 0.
|
|
152
|
+
*/
|
|
153
|
+
|
|
154
|
+
feature redefines innerSpaceDimension = 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
abstract struct StructuredSpaceObject specializes Object {
|
|
158
|
+
doc
|
|
159
|
+
/*
|
|
160
|
+
* A StructuredSpaceObject is an Object that is broken up into smaller structured space objects (cells) of
|
|
161
|
+
* the same or lower inner space dimension: faces that are surfaces, edges that are curves, and vertices
|
|
162
|
+
* that are points, with edges and vertices on the boundary of faces, and vertices on the boundary of
|
|
163
|
+
* edges. Cells meet when a structured space object is closed, as required to be a space boundary of
|
|
164
|
+
* an object (faces meet at their edges and/or vertices, while edges meet at their vertices). The
|
|
165
|
+
* inner space dimension of structured space object is the highest of their cells.
|
|
166
|
+
*/
|
|
167
|
+
|
|
168
|
+
abstract portion feature structuredSpaceObjectCells : StructuredSpaceObject[1..*] subsets Occurrence::spaceSlices {
|
|
169
|
+
feature cellOrientation : Integer [0..1];
|
|
170
|
+
inv { notEmpty(cellOrientation) implies (cellOrientation >= -1 & cellOrientation <= 1) }
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
comment about StructuredSurface, StructuredCurve, StructuredPoint
|
|
174
|
+
/*
|
|
175
|
+
* The structures StructuredSurface, StructuredCurve and StructuredPoint provide common, necessary redefinitions of
|
|
176
|
+
* innerSpaceDimension. They also provide single types for the StructuredSpaceObject features faces, edges and
|
|
177
|
+
* vertices, which avoids problems when these features are related by connectors with ends that have owned
|
|
178
|
+
* cross features.
|
|
179
|
+
*/
|
|
180
|
+
struct StructuredSurface specializes StructuredSpaceObject, Surface {
|
|
181
|
+
feature redefines StructuredSpaceObject::innerSpaceDimension, Surface::innerSpaceDimension;
|
|
182
|
+
}
|
|
183
|
+
struct StructuredCurve specializes StructuredSpaceObject, Curve {
|
|
184
|
+
feature redefines StructuredSpaceObject::innerSpaceDimension, Curve::innerSpaceDimension;
|
|
185
|
+
}
|
|
186
|
+
struct StructuredPoint specializes StructuredSpaceObject, Point {
|
|
187
|
+
feature redefines StructuredSpaceObject::innerSpaceDimension, Point::innerSpaceDimension;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
portion feature faces : StructuredSurface[0..*] ordered subsets structuredSpaceObjectCells {
|
|
191
|
+
feature redefines that : StructuredSpaceObject;
|
|
192
|
+
feature redefines edges subsets that.edges;
|
|
193
|
+
feature redefines vertices subsets that.vertices;
|
|
194
|
+
derived feature redefines spaceBoundary;
|
|
195
|
+
inv { isEmpty(spaceBoundary) == isEmpty(union(edges, vertices)) }
|
|
196
|
+
inv { notEmpty(spaceBoundary) implies contains(spaceBoundary.unionsOf, union(edges, vertices)) }
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
portion feature edges : StructuredCurve[0..*] ordered subsets structuredSpaceObjectCells {
|
|
200
|
+
feature redefines that : StructuredSpaceObject;
|
|
201
|
+
feature redefines vertices subsets that.vertices;
|
|
202
|
+
derived feature redefines spaceBoundary;
|
|
203
|
+
inv { isEmpty(spaceBoundary) == isEmpty(vertices) }
|
|
204
|
+
inv { notEmpty(spaceBoundary) implies contains(spaceBoundary.unionsOf, vertices) }
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
portion feature vertices : StructuredPoint[0..*] ordered subsets structuredSpaceObjectCells;
|
|
208
|
+
|
|
209
|
+
derived feature redefines innerSpaceDimension =
|
|
210
|
+
if notEmpty(faces) ? 2 else if notEmpty(edges) ? 1 else 0;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
standard library package Observation {
|
|
2
|
+
doc
|
|
3
|
+
/*
|
|
4
|
+
* This package models a framework for monitoring Boolean conditions and notifying
|
|
5
|
+
* registered observers when they change from false to true.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
private import ScalarValues::Boolean;
|
|
9
|
+
private import Occurrences::Occurrence;
|
|
10
|
+
private import Occurrences::Life;
|
|
11
|
+
private import SequenceFunctions::including;
|
|
12
|
+
private import SequenceFunctions::excluding;
|
|
13
|
+
private import ControlFunctions::select;
|
|
14
|
+
private import ControlPerformances::DecisionPerformance;
|
|
15
|
+
private import ControlPerformances::IfThenPerformance;
|
|
16
|
+
private import FeatureReferencingPerformances::FeatureWritePerformance;
|
|
17
|
+
private import FeatureReferencingPerformances::BooleanEvaluationResultToMonitorPerformance;
|
|
18
|
+
private import Transfers::TransferBefore;
|
|
19
|
+
|
|
20
|
+
private struct DefaultMonitorLife[1] :> ChangeMonitor, Life {
|
|
21
|
+
doc
|
|
22
|
+
/*
|
|
23
|
+
* DefaultMonitorLife is the classifier of the singleton Life of the defaultMonitor.
|
|
24
|
+
*/
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
feature defaultMonitor[1] : DefaultMonitorLife {
|
|
28
|
+
doc
|
|
29
|
+
/*
|
|
30
|
+
* defaultMonitor is a single ChangeMonitor that can be used as a default.
|
|
31
|
+
*/
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
struct ChangeSignal {
|
|
35
|
+
doc
|
|
36
|
+
/*
|
|
37
|
+
* A ChangeSignal is a signal to be sent when the Boolean result of its
|
|
38
|
+
* changeCondition Expression changes from false to true.
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
bool signalCondition {
|
|
42
|
+
doc
|
|
43
|
+
/*
|
|
44
|
+
* A BooleanExpression whose result is being monitored.
|
|
45
|
+
*/
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
feature signalMonitor : ChangeMonitor {
|
|
49
|
+
doc
|
|
50
|
+
/*
|
|
51
|
+
* The ChangeMonitor responsible for monitoring the signalCondition.
|
|
52
|
+
*/
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private behavior ObserveChange {
|
|
57
|
+
doc
|
|
58
|
+
/*
|
|
59
|
+
* Each Performance of ObserveChange waits for the result of the Boolean
|
|
60
|
+
* condition of a given ChangeSignal to change from false to true, and, when
|
|
61
|
+
* it does, sends the ChangeSignal to a given observer Occurrence.
|
|
62
|
+
*/
|
|
63
|
+
|
|
64
|
+
in feature changeObserver : Occurrence[1];
|
|
65
|
+
in feature changeSignal : ChangeSignal[1];
|
|
66
|
+
|
|
67
|
+
composite step wait : IfThenPerformance {
|
|
68
|
+
doc
|
|
69
|
+
/*
|
|
70
|
+
* If the result of the changeSignal.signalCondition is false, then wait for
|
|
71
|
+
* it to become true.
|
|
72
|
+
*/
|
|
73
|
+
|
|
74
|
+
in bool redefines ifTest {
|
|
75
|
+
not changeSignal.signalCondition()
|
|
76
|
+
}
|
|
77
|
+
in step redefines thenClause : BooleanEvaluationResultToMonitorPerformance {
|
|
78
|
+
in bool onOccurrence = changeSignal.signalCondition;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
succession wait then transfer;
|
|
83
|
+
|
|
84
|
+
step transfer : TransferBefore[1]
|
|
85
|
+
redefines outgoingTransfersFromSelf
|
|
86
|
+
subsets changeObserver.incomingTransfers {
|
|
87
|
+
doc
|
|
88
|
+
/*
|
|
89
|
+
* Then send changeSignal to changeObserver.
|
|
90
|
+
*/
|
|
91
|
+
|
|
92
|
+
end feature source {
|
|
93
|
+
feature redefines sourceOutput = changeSignal;
|
|
94
|
+
}
|
|
95
|
+
end feature target;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
struct ChangeMonitor {
|
|
100
|
+
doc
|
|
101
|
+
/*
|
|
102
|
+
* A ChangeMonitor is a collection of ongoing ChangeSignal observations
|
|
103
|
+
* for various observer Occurrences. It provides convenient operations for
|
|
104
|
+
* starting and canceling the observations it manages.
|
|
105
|
+
*/
|
|
106
|
+
|
|
107
|
+
private thisMonitor : ChangeMonitor redefines self;
|
|
108
|
+
private composite feature observations[0..*] : ObserveChange;
|
|
109
|
+
|
|
110
|
+
private behavior AssignObservations specializes FeatureWritePerformance {
|
|
111
|
+
doc
|
|
112
|
+
/*
|
|
113
|
+
* Assign a replacement set of observations as those being managed by a
|
|
114
|
+
* given ChangeMonitor.
|
|
115
|
+
*/
|
|
116
|
+
|
|
117
|
+
in feature monitor : ChangeMonitor redefines onOccurrence {
|
|
118
|
+
feature redefines startingAt {
|
|
119
|
+
feature redefines accessedFeature, observations;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
inout feature redefines replacementValues[0..*] : ObserveChange;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
step startObservation {
|
|
126
|
+
doc
|
|
127
|
+
/*
|
|
128
|
+
* Start an observation of a given ChangeSignal for a given Occurrence.
|
|
129
|
+
*/
|
|
130
|
+
|
|
131
|
+
in observer : Occurrence[1];
|
|
132
|
+
in signal : ChangeSignal[1];
|
|
133
|
+
private composite step observation : ObserveChange {
|
|
134
|
+
in changeObserver = observer;
|
|
135
|
+
in changeSignal = signal;
|
|
136
|
+
}
|
|
137
|
+
private composite step addObservation : AssignObservations[1] {
|
|
138
|
+
in monitor = thisMonitor;
|
|
139
|
+
inout replacementValues = observations->including(observation);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
step cancelObservation {
|
|
144
|
+
doc
|
|
145
|
+
/*
|
|
146
|
+
* Cancel all observations of a given ChangeSignal for a given Occurrence.
|
|
147
|
+
*/
|
|
148
|
+
|
|
149
|
+
in observer : Occurrence[1];
|
|
150
|
+
in signal : ChangeSignal[1];
|
|
151
|
+
private feature observations[0..*] : ObserveChange =
|
|
152
|
+
observations->select{in observation : ObserveChange;
|
|
153
|
+
observation.changeObserver == observer and observation.changeSignal == signal
|
|
154
|
+
};
|
|
155
|
+
private composite step removeObservation : AssignObservations[1] {
|
|
156
|
+
in monitor = thisMonitor;
|
|
157
|
+
inout replacementValues = observations->excluding(observations);
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
}
|