@suss/extractor 0.1.1 → 0.2.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/dist/index.cjs CHANGED
@@ -102,6 +102,7 @@ function assembleSummary(raw, options = DEFAULT_OPTIONS) {
102
102
  transitions,
103
103
  gaps,
104
104
  confidence,
105
+ ...raw.definitions !== void 0 && raw.definitions !== null ? { definitions: raw.definitions } : {},
105
106
  ...metadata !== null ? { metadata } : {}
106
107
  };
107
108
  }
package/dist/index.d.cts CHANGED
@@ -1299,6 +1299,12 @@ interface RawDeclaredContract {
1299
1299
  */
1300
1300
  type BodyContent = "absent" | "empty" | "statements" | "elsewhere";
1301
1301
  interface RawCodeStructure {
1302
+ /**
1303
+ * The types this unit's shapes name rather than spell out. Carried
1304
+ * onto the summary as `definitions`, so a reader following a name has
1305
+ * somewhere to look.
1306
+ */
1307
+ definitions?: Record<string, TypeShape> | null;
1302
1308
  identity: {
1303
1309
  name: string;
1304
1310
  kind: CodeUnitKind;
package/dist/index.d.ts CHANGED
@@ -1299,6 +1299,12 @@ interface RawDeclaredContract {
1299
1299
  */
1300
1300
  type BodyContent = "absent" | "empty" | "statements" | "elsewhere";
1301
1301
  interface RawCodeStructure {
1302
+ /**
1303
+ * The types this unit's shapes name rather than spell out. Carried
1304
+ * onto the summary as `definitions`, so a reader following a name has
1305
+ * somewhere to look.
1306
+ */
1307
+ definitions?: Record<string, TypeShape> | null;
1302
1308
  identity: {
1303
1309
  name: string;
1304
1310
  kind: CodeUnitKind;
package/dist/index.js CHANGED
@@ -71,6 +71,7 @@ function assembleSummary(raw, options = DEFAULT_OPTIONS) {
71
71
  transitions,
72
72
  gaps,
73
73
  confidence,
74
+ ...raw.definitions !== void 0 && raw.definitions !== null ? { definitions: raw.definitions } : {},
74
75
  ...metadata !== null ? { metadata } : {}
75
76
  };
76
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suss/extractor",
3
- "version": "0.1.1",
3
+ "version": "0.2.0",
4
4
  "type": "module",
5
5
  "description": "Framework-agnostic extraction pipeline that turns raw extractions into suss behavioral summaries.",
6
6
  "keywords": [
@@ -45,7 +45,7 @@
45
45
  "typecheck": "tsc --noEmit"
46
46
  },
47
47
  "dependencies": {
48
- "@suss/behavioral-ir": "0.1.1"
48
+ "@suss/behavioral-ir": "0.2.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "tsup": "*",