graphein 0.17.0 → 0.19.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/README.md +18 -0
- package/dist/index.d.ts +880 -110
- package/dist/index.js +7914 -1574
- package/dist/index.js.map +1 -1
- package/package.json +5 -3
package/README.md
CHANGED
|
@@ -50,6 +50,24 @@ import { validateSpec } from 'graphein';
|
|
|
50
50
|
const { valid, errors, warnings } = validateSpec(spec);
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
+
## Agent drafting
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
import { draft } from 'graphein';
|
|
57
|
+
|
|
58
|
+
const result = draft(spec, { container: '#app', quality: true });
|
|
59
|
+
console.log(result.spec, result.report, result.quality?.stopReason);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
Omit `quality` for the existing **single-render default**. Opting in allows at most
|
|
63
|
+
**three total whole-visual attempts**, including rollback, to fill eligible
|
|
64
|
+
presentation defaults without changing data or explicit settings. Read `quality`'s
|
|
65
|
+
iteration/applied/rejected history and unresolved report diagnostics. Authoring
|
|
66
|
+
repair remains the separate `repair` / `repairLevel` policy. Without a container or
|
|
67
|
+
headless `target`, quality reports `evaluated:false` / `stopReason:'no-target'`.
|
|
68
|
+
Dashboards return `dashboardInstance`; charts retain `instance`; destroy mounted
|
|
69
|
+
instances when finished.
|
|
70
|
+
|
|
53
71
|
## Documentation
|
|
54
72
|
|
|
55
73
|
- [Agent Guide](https://github.com/spatney/graphein/blob/main/docs/agent-guide.md)
|