@unified-product-graph/cloud-server 0.9.19 → 0.9.21
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 +34 -0
- package/dist/index.js.map +1 -1
- package/dist/tools-manifest.json +100 -46
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -2171,6 +2171,8 @@ import {
|
|
|
2171
2171
|
resolveContainmentEdge,
|
|
2172
2172
|
resolveLabel,
|
|
2173
2173
|
getRegionForEntityType,
|
|
2174
|
+
listTreePatternSummaries,
|
|
2175
|
+
describeTreePattern,
|
|
2174
2176
|
getLens,
|
|
2175
2177
|
getVisibleTypes,
|
|
2176
2178
|
getValidChildren
|
|
@@ -2440,6 +2442,17 @@ var getRegionForEntity = (args) => {
|
|
|
2440
2442
|
if (!region) return textError(`No region contains entity_type: ${entityType}`);
|
|
2441
2443
|
return text(JSON.stringify(region, null, 2));
|
|
2442
2444
|
};
|
|
2445
|
+
var listTreePatterns = () => {
|
|
2446
|
+
const patterns = listTreePatternSummaries();
|
|
2447
|
+
return text(JSON.stringify({ count: patterns.length, patterns }, null, 2));
|
|
2448
|
+
};
|
|
2449
|
+
var getTreePattern2 = (args) => {
|
|
2450
|
+
const id = args.id;
|
|
2451
|
+
if (!id) return textError("Missing required parameter: id");
|
|
2452
|
+
const detail = describeTreePattern(id);
|
|
2453
|
+
if (!detail) return textError(`Unknown tree pattern: ${id}`);
|
|
2454
|
+
return text(JSON.stringify(detail, null, 2));
|
|
2455
|
+
};
|
|
2443
2456
|
var getSpecVersion = () => {
|
|
2444
2457
|
return text(
|
|
2445
2458
|
JSON.stringify(
|
|
@@ -4626,6 +4639,25 @@ var TOOL_DEFINITIONS = [
|
|
|
4626
4639
|
required: ["entity_type"]
|
|
4627
4640
|
}
|
|
4628
4641
|
},
|
|
4642
|
+
{
|
|
4643
|
+
name: "list_tree_patterns",
|
|
4644
|
+
description: "List the canonical get_tree patterns as summary rows: id, label, the region each is the tree view of, anchor_type, fallback_anchors, natural_depth, gap_policy, and slot_count. The introspectable index of what get_tree can assemble. Fixed list, non-paginated.",
|
|
4645
|
+
inputSchema: { type: "object", properties: {} }
|
|
4646
|
+
},
|
|
4647
|
+
{
|
|
4648
|
+
name: "get_tree_pattern",
|
|
4649
|
+
description: "Return the full declarative record for one get_tree pattern: its region, anchor_type, fallback_anchors, gap_policy, natural_depth, and its child map resolved to concrete edges. Each parent-to-child slot carries the canonical via edge and its kind, resolved live from the edge catalogue, so a client reads the real wiring and the pattern cannot cite an edge the grammar lacks.",
|
|
4650
|
+
inputSchema: {
|
|
4651
|
+
type: "object",
|
|
4652
|
+
properties: {
|
|
4653
|
+
id: {
|
|
4654
|
+
type: "string",
|
|
4655
|
+
description: "Tree pattern id: ost, okr, user, product, validation, strategy, feature_areas, delivery, architecture, journey, design_system."
|
|
4656
|
+
}
|
|
4657
|
+
},
|
|
4658
|
+
required: ["id"]
|
|
4659
|
+
}
|
|
4660
|
+
},
|
|
4629
4661
|
{
|
|
4630
4662
|
name: "get_spec_version",
|
|
4631
4663
|
description: "Return spec-level metadata for adopter compatibility checks: upg_version, markdown_format_version, and canonical counts (entity types, edge types, atomic domains, super-domain regions). Pin against the version pair; counts are informational.",
|
|
@@ -5374,6 +5406,8 @@ var HANDLERS = {
|
|
|
5374
5406
|
list_regions: listRegions,
|
|
5375
5407
|
get_region: getRegion,
|
|
5376
5408
|
get_region_for_entity_type: getRegionForEntity,
|
|
5409
|
+
list_tree_patterns: listTreePatterns,
|
|
5410
|
+
get_tree_pattern: getTreePattern2,
|
|
5377
5411
|
get_spec_version: getSpecVersion,
|
|
5378
5412
|
resolve_edge_for_pair: resolveEdgeForPair,
|
|
5379
5413
|
list_cross_edge_types: listCrossEdgeTypes,
|