@design-intelligence/ghost 0.22.0 → 0.22.1

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.
@@ -1,8 +1,8 @@
1
1
  import type { GhostNodeDocument, GhostNodeFrontmatter } from "./types.js";
2
2
  /**
3
3
  * Serialize a node back to its `---\n<yaml>\n---\n<body>` markdown form. Keys
4
- * are emitted in a stable order (description) so round-trips and diffs are
5
- * deterministic. Identity and kind are not serialized — they come from the
4
+ * are emitted in a stable order (description, materials) so round-trips and
5
+ * diffs are deterministic. Identity and kind are not serialized — they come from the
6
6
  * node's file path and optional filename prefix. Undefined fields are omitted; a node
7
7
  * with no frontmatter fields emits an empty block.
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/ghost-core/node/serialize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAE1E;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAY7D;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"serialize.d.ts","sourceRoot":"","sources":["../../../src/ghost-core/node/serialize.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAE1E;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAa7D;AAED,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,8 +1,8 @@
1
1
  import { stringify as stringifyYaml } from "yaml";
2
2
  /**
3
3
  * Serialize a node back to its `---\n<yaml>\n---\n<body>` markdown form. Keys
4
- * are emitted in a stable order (description) so round-trips and diffs are
5
- * deterministic. Identity and kind are not serialized — they come from the
4
+ * are emitted in a stable order (description, materials) so round-trips and
5
+ * diffs are deterministic. Identity and kind are not serialized — they come from the
6
6
  * node's file path and optional filename prefix. Undefined fields are omitted; a node
7
7
  * with no frontmatter fields emits an empty block.
8
8
  */
@@ -11,6 +11,8 @@ export function serializeNode(node) {
11
11
  const ordered = {};
12
12
  if (fm.description !== undefined)
13
13
  ordered.description = fm.description;
14
+ if (fm.materials !== undefined)
15
+ ordered.materials = fm.materials;
14
16
  // An empty frontmatter object stringifies to "{}"; emit a bare block instead.
15
17
  const yaml = Object.keys(ordered).length === 0
16
18
  ? ""
@@ -1 +1 @@
1
- {"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../src/ghost-core/node/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAGlD;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,IAAuB;IACnD,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;IAC5B,MAAM,OAAO,GAA4B,EAAE,CAAC;IAC5C,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS;QAAE,OAAO,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,CAAC;IAEvE,8EAA8E;IAC9E,MAAM,IAAI,GACR,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC;QAC/B,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC;IAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC3C,OAAO,QAAQ,IAAI,QAAQ,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAClE,CAAC"}
1
+ {"version":3,"file":"serialize.js","sourceRoot":"","sources":["../../../src/ghost-core/node/serialize.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,MAAM,CAAC;AAGlD;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,IAAuB;IACnD,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;IAC5B,MAAM,OAAO,GAA4B,EAAE,CAAC;IAC5C,IAAI,EAAE,CAAC,WAAW,KAAK,SAAS;QAAE,OAAO,CAAC,WAAW,GAAG,EAAE,CAAC,WAAW,CAAC;IACvE,IAAI,EAAE,CAAC,SAAS,KAAK,SAAS;QAAE,OAAO,CAAC,SAAS,GAAG,EAAE,CAAC,SAAS,CAAC;IAEjE,8EAA8E;IAC9E,MAAM,IAAI,GACR,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC;QAC/B,CAAC,CAAC,EAAE;QACJ,CAAC,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,IAAI,CAAC;IAC9C,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IAC3C,OAAO,QAAQ,IAAI,QAAQ,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AAClE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@design-intelligence/ghost",
3
- "version": "0.22.0",
3
+ "version": "0.22.1",
4
4
  "description": "Ghost CLI for the brand fingerprint: a portable steering packet of prose truths your agent reads before it builds, with advisory review after",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Block, Inc.",