@unified-product-graph/cloud-server 0.9.5 → 0.9.7
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/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/tools-manifest.json +26 -26
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2795,6 +2795,11 @@ var createCrossProductEdge = async (args, { store }) => {
|
|
|
2795
2795
|
`Invalid cross-edge type: "${type}". Must be one of: ${UPG_CROSS_EDGE_TYPES2.join(", ")}`
|
|
2796
2796
|
);
|
|
2797
2797
|
}
|
|
2798
|
+
if (type === "instance_of") {
|
|
2799
|
+
return textError(
|
|
2800
|
+
`instance_of links a product entity to a canonical registry entity and is created via the registry tooling (register_instance) in the local MCP server, not create_cross_product_edge.`
|
|
2801
|
+
);
|
|
2802
|
+
}
|
|
2798
2803
|
try {
|
|
2799
2804
|
const edge = await store.addCrossProductEdge(edgeId(), productId, source, target, type);
|
|
2800
2805
|
return text(JSON.stringify({ edge }, null, 2));
|
|
@@ -4481,7 +4486,7 @@ var TOOL_DEFINITIONS = [
|
|
|
4481
4486
|
},
|
|
4482
4487
|
{
|
|
4483
4488
|
name: "list_cross_edge_types",
|
|
4484
|
-
description: "List the canonical cross-product edge types from UPG_CROSS_EDGE_TYPES (shares_persona, shares_competitor, shares_metric, depends_on_product, cannibalises, succeeds, hosts, contributes_to). Portfolio-level relationships between entities in different products, separate from the within-product UPG_EDGE_CATALOG.",
|
|
4489
|
+
description: "List the canonical cross-product edge types from UPG_CROSS_EDGE_TYPES (shares_persona, shares_competitor, shares_metric, depends_on_product, cannibalises, succeeds, hosts, contributes_to, instance_of). Portfolio-level relationships between entities in different products, separate from the within-product UPG_EDGE_CATALOG. instance_of (product entity to a canonical registry entity) is created via the registry tooling in the local MCP server.",
|
|
4485
4490
|
inputSchema: { type: "object", properties: {} }
|
|
4486
4491
|
},
|
|
4487
4492
|
{
|