@unified-product-graph/sdk 0.6.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.
@@ -0,0 +1,2 @@
1
+ export { A as AdjacentEdge, b as AlternateAnchor, c as AnchorHint, B as BUSINESS_AREA_META, d as BusinessArea, D as DESCRIPTION_SOFT_LIMIT, f as DanglingEdgeClass, g as DanglingEdgeRecord, h as DanglingEdgeReport, E as ENTITY_CLASSIFICATION, i as EdgeAlias, j as EdgeInferenceFail, k as EdgeInferenceOk, l as EdgeInferenceResult, m as EdgeInferenceSuggestion, n as EdgePairValidationFail, o as EdgePairValidationOk, p as EdgePairValidationResult, q as EvalResult, r as InferEdgeTypeError, s as InspectResult, t as InspectViolation, L as LengthCheckResult, u as MissingEntityRow, P as PROPERTY_TREE_SOFT_BYTES, v as PROPERTY_TREE_SOFT_DEPTH, w as PlanResult, y as PrioritiseExecutionResult, z as PrioritiseFallbackResult, F as PrioritiseRankedRow, G as PropertyTypeCheckResult, H as PropertyTypeViolation, R as ReflectPrompt, J as ReflectPromptKind, K as ReflectResult, S as SchemaDriftSummary, T as TIER_CLUSTER_META, N as TIER_DESCRIPTIONS, O as TITLE_SOFT_LIMIT, V as Tier, W as TierCluster, X as TraceResult, Y as TraceTrailRow, Z as ValidateGraphBody, _ as buildAdjacentEdges, $ as buildAlternateAnchors, a0 as buildAnchorHint, a1 as buildResolverHints, a2 as checkLengthCaps, a3 as checkPropertyTypes, a4 as classifyDanglingEdges, a5 as collectAntiPatternInputs, a6 as computeSchemaDriftSummary, a7 as edgeId, a8 as evaluateExpression, a9 as executeInspect, aa as executePlan, ab as executePrioritise, ac as executeReflect, ad as executeTrace, ae as getClassification, af as getEntitiesForBusinessArea, ag as getEntitiesForCluster, ah as getEntitiesForTier, ai as getEntitiesForTierAndArea, aj as getEntitiesUpToTier, ak as getTierEntityCount, al as getTierForStage, am as inferEdgeType, an as inferEdgeTypeWithTier, ao as isRelevantForStage, ap as nodeId, aq as productId, ar as renderDanglingReport, as as renderDriftSummary, at as renderPropertyTypeWarning, au as validateClassificationCoverage, av as validateEdgeTypePair } from './logic-DriXyFKi.js';
2
+ export { UPG_ANTI_PATTERNS, UPG_REGIONS } from '@unified-product-graph/core';
package/dist/logic.js ADDED
@@ -0,0 +1,95 @@
1
+ import {
2
+ BUSINESS_AREA_META,
3
+ DESCRIPTION_SOFT_LIMIT,
4
+ ENTITY_CLASSIFICATION,
5
+ InferEdgeTypeError,
6
+ PROPERTY_TREE_SOFT_BYTES,
7
+ PROPERTY_TREE_SOFT_DEPTH,
8
+ TIER_CLUSTER_META,
9
+ TIER_DESCRIPTIONS,
10
+ TITLE_SOFT_LIMIT,
11
+ UPG_ANTI_PATTERNS,
12
+ UPG_REGIONS,
13
+ buildAdjacentEdges,
14
+ buildAlternateAnchors,
15
+ buildAnchorHint,
16
+ buildResolverHints,
17
+ checkLengthCaps,
18
+ checkPropertyTypes,
19
+ classifyDanglingEdges,
20
+ collectAntiPatternInputs,
21
+ computeSchemaDriftSummary,
22
+ edgeId,
23
+ evaluateExpression,
24
+ executeInspect,
25
+ executePlan,
26
+ executePrioritise,
27
+ executeReflect,
28
+ executeTrace,
29
+ getClassification,
30
+ getEntitiesForBusinessArea,
31
+ getEntitiesForCluster,
32
+ getEntitiesForTier,
33
+ getEntitiesForTierAndArea,
34
+ getEntitiesUpToTier,
35
+ getTierEntityCount,
36
+ getTierForStage,
37
+ inferEdgeType,
38
+ inferEdgeTypeWithTier,
39
+ isRelevantForStage,
40
+ nodeId,
41
+ productId,
42
+ renderDanglingReport,
43
+ renderDriftSummary,
44
+ renderPropertyTypeWarning,
45
+ validateClassificationCoverage,
46
+ validateEdgeTypePair
47
+ } from "./chunk-ARDXTSGG.js";
48
+ export {
49
+ BUSINESS_AREA_META,
50
+ DESCRIPTION_SOFT_LIMIT,
51
+ ENTITY_CLASSIFICATION,
52
+ InferEdgeTypeError,
53
+ PROPERTY_TREE_SOFT_BYTES,
54
+ PROPERTY_TREE_SOFT_DEPTH,
55
+ TIER_CLUSTER_META,
56
+ TIER_DESCRIPTIONS,
57
+ TITLE_SOFT_LIMIT,
58
+ UPG_ANTI_PATTERNS,
59
+ UPG_REGIONS,
60
+ buildAdjacentEdges,
61
+ buildAlternateAnchors,
62
+ buildAnchorHint,
63
+ buildResolverHints,
64
+ checkLengthCaps,
65
+ checkPropertyTypes,
66
+ classifyDanglingEdges,
67
+ collectAntiPatternInputs,
68
+ computeSchemaDriftSummary,
69
+ edgeId,
70
+ evaluateExpression,
71
+ executeInspect,
72
+ executePlan,
73
+ executePrioritise,
74
+ executeReflect,
75
+ executeTrace,
76
+ getClassification,
77
+ getEntitiesForBusinessArea,
78
+ getEntitiesForCluster,
79
+ getEntitiesForTier,
80
+ getEntitiesForTierAndArea,
81
+ getEntitiesUpToTier,
82
+ getTierEntityCount,
83
+ getTierForStage,
84
+ inferEdgeType,
85
+ inferEdgeTypeWithTier,
86
+ isRelevantForStage,
87
+ nodeId,
88
+ productId,
89
+ renderDanglingReport,
90
+ renderDriftSummary,
91
+ renderPropertyTypeWarning,
92
+ validateClassificationCoverage,
93
+ validateEdgeTypePair
94
+ };
95
+ //# sourceMappingURL=logic.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@unified-product-graph/sdk",
3
+ "version": "0.6.0",
4
+ "description": "Unified Product Graph — programmatic SDK for reading and writing .upg product knowledge graphs",
5
+ "license": "MIT",
6
+ "author": "The Product Creator <hello@theproductcreator.com>",
7
+ "homepage": "https://unifiedproductgraph.org",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "https://github.com/unified-product-graph/sdk"
11
+ },
12
+ "type": "module",
13
+ "main": "./dist/index.js",
14
+ "types": "./dist/index.d.ts",
15
+ "exports": {
16
+ ".": {
17
+ "types": "./dist/index.d.ts",
18
+ "import": "./dist/index.js"
19
+ },
20
+ "./logic": {
21
+ "types": "./dist/logic.d.ts",
22
+ "import": "./dist/logic.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist",
27
+ "README.md"
28
+ ],
29
+ "scripts": {
30
+ "build": "tsup",
31
+ "dev": "tsup --watch",
32
+ "test": "vitest run",
33
+ "test:watch": "vitest",
34
+ "lint": "eslint src/",
35
+ "type-check": "tsc --noEmit"
36
+ },
37
+ "dependencies": {
38
+ "@unified-product-graph/core": "*",
39
+ "chokidar": "^4.0.0",
40
+ "nanoid": "^5.1.0"
41
+ },
42
+ "devDependencies": {
43
+ "@types/node": "^25.6.0",
44
+ "@unified-product-graph/frameworks": "*",
45
+ "tsup": "^8.5.1",
46
+ "typescript": "^5.8.0"
47
+ },
48
+ "keywords": [
49
+ "upg",
50
+ "unified-product-graph",
51
+ "sdk",
52
+ "product-management",
53
+ "knowledge-graph",
54
+ "graph",
55
+ "open-standard"
56
+ ],
57
+ "publishConfig": {
58
+ "access": "public"
59
+ }
60
+ }