@maxhealth.tech/prefab 0.3.0 → 0.3.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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.3.1] — 2026-06-27
6
+
7
+ Documentation and tooling release. No runtime or API changes: `src/` is unchanged aside from the version bump, so the published bundle is functionally identical to 0.3.0.
8
+
9
+ ### Fixed
10
+
11
+ - Corrected the wire-protocol version label across the user-facing docs. The README badge and tagline, the skill header, the homepage feature text, and a version-pin example still advertised `0.2`, but the library has shipped protocol `0.3` since 0.3.0 (the renderer still accepts legacy `0.2` payloads).
12
+
13
+ ### Docs
14
+
15
+ - Deduplicated the Guide and Reference sections. Each reference topic now lives in one place, and the Guide pages are concise conceptual pages that link into the reference, removing a large amount of duplicated content.
16
+ - Single-sourced the example UIs. The demo and playground now load one canonical set of `$prefab` examples from `docs/public/examples/` at runtime instead of embedding their own copies, and the skill bundle's example assets are generated from that same set.
17
+ - The programmatic API reference (actions, rx, mcp, auto, renderer) is now generated from the source TSDoc with TypeDoc, so it stays in sync with the code. The component catalog, wire format, and MCP Apps pages remain hand-written.
18
+
5
19
  ## [0.3.0] — 2026-06-16
6
20
 
7
21
  ### Wire Format (Breaking) — protocol `0.3`
package/README.md CHANGED
@@ -3,11 +3,11 @@
3
3
  [![CI](https://github.com/Max-Health-Inc/prefab/actions/workflows/ci.yml/badge.svg)](https://github.com/Max-Health-Inc/prefab/actions/workflows/ci.yml)
4
4
  [![tests](https://img.shields.io/badge/tests-1077%20passing%20(100%25)-brightgreen)](https://github.com/Max-Health-Inc/prefab/actions/workflows/ci.yml)
5
5
  [![@maxhealth.tech/prefab](https://img.shields.io/npm/v/@maxhealth.tech/prefab?label=%40maxhealth.tech%2Fprefab)](https://www.npmjs.com/package/@maxhealth.tech/prefab)
6
- [![prefab-protocol](https://img.shields.io/badge/prefab--protocol-v0.2-brightgreen)](https://maxhealth.tech/prefab/reference/wire-format.html)
6
+ [![prefab-protocol](https://img.shields.io/badge/prefab--protocol-v0.3-brightgreen)](https://maxhealth.tech/prefab/reference/wire-format.html)
7
7
  [![TypeScript](https://img.shields.io/badge/TypeScript-6.0-blue?logo=typescript&logoColor=white)](https://www.typescriptlang.org/)
8
8
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
9
9
 
10
- TypeScript declarative UI component library for MCP apps. Wire-compatible with PrefectHQ's Python [prefab-ui](https://github.com/PrefectHQ/prefab) — **same `$prefab` v0.2 wire protocol**.
10
+ TypeScript declarative UI component library for MCP apps. Wire-compatible with PrefectHQ's Python [prefab-ui](https://github.com/PrefectHQ/prefab) — **`$prefab` v0.3 wire protocol** (still renders legacy `0.2` payloads).
11
11
 
12
12
  **[Live Demo](https://maxhealth.tech/prefab/demo/)** · **[Playground](https://maxhealth.tech/prefab/playground/)**
13
13
 
package/dist/app.d.ts CHANGED
@@ -9,7 +9,7 @@ import type { ComponentJSON } from './core/component.js';
9
9
  import type { Action, ActionJSON } from './actions/types.js';
10
10
  import type { PipeFn } from './rx/pipes.js';
11
11
  /** Package version — injected by build script, updated at release time. */
12
- export declare const VERSION = "0.3.0";
12
+ export declare const VERSION = "0.3.1";
13
13
  /**
14
14
  * Wire protocol version emitted in `$prefab.version`.
15
15
  *
package/dist/app.js CHANGED
@@ -8,7 +8,7 @@ import {} from './core/component.js';
8
8
  import { drainAutoState } from './rx/state-collector.js';
9
9
  import { compileThemeCss } from './core/theme-css.js';
10
10
  /** Package version — injected by build script, updated at release time. */
11
- export const VERSION = '0.3.0';
11
+ export const VERSION = '0.3.1';
12
12
  /**
13
13
  * Wire protocol version emitted in `$prefab.version`.
14
14
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxhealth.tech/prefab",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "TypeScript declarative UI component library for MCP apps. Wire-compatible with Python prefab-ui.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -58,7 +58,11 @@
58
58
  "lint:fix": "eslint src/ test/ --fix",
59
59
  "typecheck": "tsc --noEmit",
60
60
  "prepublishOnly": "bun run build",
61
+ "gen:skill": "bun run scripts/gen-skill-assets.ts",
62
+ "docs:api": "typedoc && bun run scripts/fix-typedoc-vue.ts",
63
+ "predocs:dev": "bun run docs:api",
61
64
  "docs:dev": "vitepress dev docs",
65
+ "predocs:build": "bun run docs:api",
62
66
  "docs:build": "vitepress build docs",
63
67
  "docs:preview": "vitepress preview docs"
64
68
  },
@@ -84,6 +88,9 @@
84
88
  "eslint": "^10.2.1",
85
89
  "happy-dom": "^20.9.0",
86
90
  "jiti": "^2.6.1",
91
+ "typedoc": "^0.28.19",
92
+ "typedoc-plugin-markdown": "^4.12.0",
93
+ "typedoc-vitepress-theme": "^1.1.3",
87
94
  "typescript": "^6.0.3",
88
95
  "typescript-eslint": "^8.58.2",
89
96
  "vitepress": "1.6.4",