@prometheus-ags/prometheus-entity-management 1.1.0 → 1.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/CHANGELOG.md +19 -0
- package/README.md +25 -1
- package/dist/index.d.mts +588 -419
- package/dist/index.d.ts +588 -419
- package/dist/index.js +770 -281
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +512 -37
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
|
5
5
|
|
|
6
6
|
---
|
|
7
7
|
|
|
8
|
+
## [1.2.0] — 2026-04-05
|
|
9
|
+
|
|
10
|
+
PWA/local-first and schema-driven entity release focused on dynamic JSON-column UI, markdown-aware rendering, and IPC-safe graph persistence.
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Local-first runtime helpers: `startLocalFirstGraph(...)`, `hydrateGraphFromStorage(...)`, `persistGraphToStorage(...)`, and `useGraphSyncStatus()`.
|
|
15
|
+
- Serializable pending graph action records and replay hooks for persisted optimistic workflows.
|
|
16
|
+
- JSON Schema registry APIs: `registerEntityJsonSchema(...)`, `registerRuntimeSchema(...)`, `getEntityJsonSchema(...)`, `buildEntityFieldsFromSchema(...)`, and `useSchemaEntityFields(...)`.
|
|
17
|
+
- Built-in markdown support with `MarkdownFieldRenderer`, `MarkdownFieldEditor`, and schema-driven `format: "markdown"` field generation.
|
|
18
|
+
- Schema-aware AI helpers: `createSchemaGraphTool(...)` and `exportGraphSnapshotWithSchemas(...)`.
|
|
19
|
+
- Vitest coverage for persisted graph hydration, pending action replay, schema-driven field generation, runtime schema replacement, and safe markdown rendering.
|
|
20
|
+
|
|
21
|
+
### Changed
|
|
22
|
+
|
|
23
|
+
- `EntityFormSheet` and related CRUD state now support dotted field paths for nested JSON-column editing.
|
|
24
|
+
- `FieldType` now includes `json` and `markdown`.
|
|
25
|
+
- Public docs and API references now describe the local-first runtime and schema/A2UI-oriented dynamic entity surface.
|
|
26
|
+
|
|
8
27
|
## [1.1.0] — 2026-04-05
|
|
9
28
|
|
|
10
29
|
Graph-runtime expansion release focused on TanStack DB comparison gaps without changing the library’s core React entity-graph architecture.
|
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ Data flows **up** into the graph; UI reads **down** through hooks (see [Architec
|
|
|
99
99
|
|
|
100
100
|
---
|
|
101
101
|
|
|
102
|
-
## New in v1.
|
|
102
|
+
## New in v1.2
|
|
103
103
|
|
|
104
104
|
The graph runtime now exposes a focused set of non-hook helpers for loaders, workflows, and orchestration:
|
|
105
105
|
|
|
@@ -109,6 +109,9 @@ The graph runtime now exposes a focused set of non-hook helpers for loaders, wor
|
|
|
109
109
|
- sync-aware snapshot metadata: `$synced`, `$origin`, `$updatedAt`
|
|
110
110
|
- `createGraphEffect(...)` for enter/update/exit reactions over graph query results
|
|
111
111
|
- `createGraphTool(...)` / `exportGraphSnapshot(...)` for AI interoperability without bundling an AI runtime
|
|
112
|
+
- `startLocalFirstGraph(...)`, `hydrateGraphFromStorage(...)`, and `persistGraphToStorage(...)` for PWA/PGlite-friendly graph persistence and replay
|
|
113
|
+
- schema-driven entity rendering via `registerEntityJsonSchema(...)`, `buildEntityFieldsFromSchema(...)`, and `useSchemaEntityFields(...)`
|
|
114
|
+
- built-in markdown-aware schema fields plus schema-aware graph export helpers for A2UI/runtime-generated entity models
|
|
112
115
|
|
|
113
116
|
These additions are intentionally graph-native. They extend the entity graph for orchestration use cases without changing the core `Components → Hooks → Stores → APIs/Realtime` architecture.
|
|
114
117
|
|
|
@@ -172,8 +175,29 @@ Compare against peers only when measurement methodology matches (minified vs unm
|
|
|
172
175
|
| `createGraphAction` | Higher-level optimistic action wrapper around graph transactions. |
|
|
173
176
|
| `createGraphEffect` | Subscribe to graph query results with `onEnter`, `onUpdate`, and `onExit`. |
|
|
174
177
|
| `createGraphTool` | Typed graph-backed helper for AI or workflow integrations. |
|
|
178
|
+
| `createSchemaGraphTool` | Schema-aware graph tool helper for AI workflows built around dynamic entity schemas. |
|
|
175
179
|
| `exportGraphSnapshot` | Serialize graph data for prompts, exports, and non-React workflows. |
|
|
176
180
|
|
|
181
|
+
### Schema-driven entities
|
|
182
|
+
|
|
183
|
+
| Export | Description |
|
|
184
|
+
|--------|-------------|
|
|
185
|
+
| `registerEntityJsonSchema` / `registerRuntimeSchema` | Register static or runtime-generated JSON Schemas for an entity type or JSON column. |
|
|
186
|
+
| `getEntityJsonSchema` | Resolve the active schema by entity type, schema id, or field. |
|
|
187
|
+
| `buildEntityFieldsFromSchema` | Generate entity field descriptors from JSON Schema for dynamic forms and detail views. |
|
|
188
|
+
| `useSchemaEntityFields` | Hook that resolves a registered schema and returns generated field descriptors. |
|
|
189
|
+
| `MarkdownFieldRenderer` / `MarkdownFieldEditor` | Built-in markdown-aware schema field renderer and editor. |
|
|
190
|
+
| `exportGraphSnapshotWithSchemas` | Serialize graph data together with resolved entity schemas. |
|
|
191
|
+
|
|
192
|
+
### Local-first runtime
|
|
193
|
+
|
|
194
|
+
| Export | Description |
|
|
195
|
+
|--------|-------------|
|
|
196
|
+
| `startLocalFirstGraph` | Starts a higher-level local-first runtime for graph hydration, persistence, action replay, and sync status. |
|
|
197
|
+
| `hydrateGraphFromStorage` | Restore graph state from a storage adapter using a JSON-serializable snapshot payload. |
|
|
198
|
+
| `persistGraphToStorage` | Persist graph state and pending action metadata through a storage adapter. |
|
|
199
|
+
| `useGraphSyncStatus` | Hook exposing online/offline/hydrating/syncing/ready state for PWAs and IPC-safe hosts. |
|
|
200
|
+
|
|
177
201
|
### Hooks (REST-oriented)
|
|
178
202
|
|
|
179
203
|
| Export | Description |
|