@graview/studio 0.1.8 → 0.1.10
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/agent-panel.d.ts.map +1 -1
- package/dist/agent-panel.js +6 -7
- package/dist/agent-panel.js.map +1 -1
- package/dist/from-declaration.d.ts +5 -0
- package/dist/from-declaration.d.ts.map +1 -1
- package/dist/from-declaration.js +23 -4
- package/dist/from-declaration.js.map +1 -1
- package/dist/meta.d.ts +325 -0
- package/dist/meta.d.ts.map +1 -1
- package/dist/meta.js +50 -3
- package/dist/meta.js.map +1 -1
- package/dist/place.d.ts.map +1 -1
- package/dist/place.js +5 -4
- package/dist/place.js.map +1 -1
- package/dist/source.d.ts.map +1 -1
- package/dist/source.js +15 -1
- package/dist/source.js.map +1 -1
- package/dist/to-declaration.d.ts +18 -0
- package/dist/to-declaration.d.ts.map +1 -1
- package/dist/to-declaration.js +35 -12
- package/dist/to-declaration.js.map +1 -1
- package/package.json +8 -8
package/dist/meta.d.ts
CHANGED
|
@@ -52,6 +52,19 @@ export declare const fieldNode: import("@graview/core").NodeDefinition<"field",
|
|
|
52
52
|
readonly inverse: "its fields";
|
|
53
53
|
};
|
|
54
54
|
}>;
|
|
55
|
+
export declare const computedNode: import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
56
|
+
label: z.ZodString;
|
|
57
|
+
expr: z.ZodString;
|
|
58
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
59
|
+
description: z.ZodOptional<z.ZodString>;
|
|
60
|
+
}, z.core.$strip>, {
|
|
61
|
+
readonly "computed-on": {
|
|
62
|
+
readonly to: readonly ["kind"];
|
|
63
|
+
readonly cardinality: "one";
|
|
64
|
+
readonly description: "the kind that works it out";
|
|
65
|
+
readonly inverse: "what it works out";
|
|
66
|
+
};
|
|
67
|
+
}>;
|
|
55
68
|
export declare const edgeNode: import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
56
69
|
label: z.ZodString;
|
|
57
70
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -220,6 +233,18 @@ export declare const STUDIO_SCHEMA: import("@graview/core").Schema<readonly [imp
|
|
|
220
233
|
readonly description: "the kind it belongs to";
|
|
221
234
|
readonly inverse: "its fields";
|
|
222
235
|
};
|
|
236
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
237
|
+
label: z.ZodString;
|
|
238
|
+
expr: z.ZodString;
|
|
239
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
240
|
+
description: z.ZodOptional<z.ZodString>;
|
|
241
|
+
}, z.core.$strip>, {
|
|
242
|
+
readonly "computed-on": {
|
|
243
|
+
readonly to: readonly ["kind"];
|
|
244
|
+
readonly cardinality: "one";
|
|
245
|
+
readonly description: "the kind that works it out";
|
|
246
|
+
readonly inverse: "what it works out";
|
|
247
|
+
};
|
|
223
248
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
224
249
|
label: z.ZodString;
|
|
225
250
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -382,6 +407,18 @@ export declare const addKind: AnyMutationDefinition<import("@graview/core").Sche
|
|
|
382
407
|
readonly description: "the kind it belongs to";
|
|
383
408
|
readonly inverse: "its fields";
|
|
384
409
|
};
|
|
410
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
411
|
+
label: z.ZodString;
|
|
412
|
+
expr: z.ZodString;
|
|
413
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
414
|
+
description: z.ZodOptional<z.ZodString>;
|
|
415
|
+
}, z.core.$strip>, {
|
|
416
|
+
readonly "computed-on": {
|
|
417
|
+
readonly to: readonly ["kind"];
|
|
418
|
+
readonly cardinality: "one";
|
|
419
|
+
readonly description: "the kind that works it out";
|
|
420
|
+
readonly inverse: "what it works out";
|
|
421
|
+
};
|
|
385
422
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
386
423
|
label: z.ZodString;
|
|
387
424
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -543,6 +580,18 @@ export declare const renameKind: AnyMutationDefinition<import("@graview/core").S
|
|
|
543
580
|
readonly description: "the kind it belongs to";
|
|
544
581
|
readonly inverse: "its fields";
|
|
545
582
|
};
|
|
583
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
584
|
+
label: z.ZodString;
|
|
585
|
+
expr: z.ZodString;
|
|
586
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
587
|
+
description: z.ZodOptional<z.ZodString>;
|
|
588
|
+
}, z.core.$strip>, {
|
|
589
|
+
readonly "computed-on": {
|
|
590
|
+
readonly to: readonly ["kind"];
|
|
591
|
+
readonly cardinality: "one";
|
|
592
|
+
readonly description: "the kind that works it out";
|
|
593
|
+
readonly inverse: "what it works out";
|
|
594
|
+
};
|
|
546
595
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
547
596
|
label: z.ZodString;
|
|
548
597
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -704,6 +753,18 @@ export declare const removeKind: AnyMutationDefinition<import("@graview/core").S
|
|
|
704
753
|
readonly description: "the kind it belongs to";
|
|
705
754
|
readonly inverse: "its fields";
|
|
706
755
|
};
|
|
756
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
757
|
+
label: z.ZodString;
|
|
758
|
+
expr: z.ZodString;
|
|
759
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
760
|
+
description: z.ZodOptional<z.ZodString>;
|
|
761
|
+
}, z.core.$strip>, {
|
|
762
|
+
readonly "computed-on": {
|
|
763
|
+
readonly to: readonly ["kind"];
|
|
764
|
+
readonly cardinality: "one";
|
|
765
|
+
readonly description: "the kind that works it out";
|
|
766
|
+
readonly inverse: "what it works out";
|
|
767
|
+
};
|
|
707
768
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
708
769
|
label: z.ZodString;
|
|
709
770
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -865,6 +926,18 @@ export declare const addField: AnyMutationDefinition<import("@graview/core").Sch
|
|
|
865
926
|
readonly description: "the kind it belongs to";
|
|
866
927
|
readonly inverse: "its fields";
|
|
867
928
|
};
|
|
929
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
930
|
+
label: z.ZodString;
|
|
931
|
+
expr: z.ZodString;
|
|
932
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
933
|
+
description: z.ZodOptional<z.ZodString>;
|
|
934
|
+
}, z.core.$strip>, {
|
|
935
|
+
readonly "computed-on": {
|
|
936
|
+
readonly to: readonly ["kind"];
|
|
937
|
+
readonly cardinality: "one";
|
|
938
|
+
readonly description: "the kind that works it out";
|
|
939
|
+
readonly inverse: "what it works out";
|
|
940
|
+
};
|
|
868
941
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
869
942
|
label: z.ZodString;
|
|
870
943
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1026,6 +1099,18 @@ export declare const renameField: AnyMutationDefinition<import("@graview/core").
|
|
|
1026
1099
|
readonly description: "the kind it belongs to";
|
|
1027
1100
|
readonly inverse: "its fields";
|
|
1028
1101
|
};
|
|
1102
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
1103
|
+
label: z.ZodString;
|
|
1104
|
+
expr: z.ZodString;
|
|
1105
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
1106
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1107
|
+
}, z.core.$strip>, {
|
|
1108
|
+
readonly "computed-on": {
|
|
1109
|
+
readonly to: readonly ["kind"];
|
|
1110
|
+
readonly cardinality: "one";
|
|
1111
|
+
readonly description: "the kind that works it out";
|
|
1112
|
+
readonly inverse: "what it works out";
|
|
1113
|
+
};
|
|
1029
1114
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
1030
1115
|
label: z.ZodString;
|
|
1031
1116
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1187,6 +1272,18 @@ export declare const removeField: AnyMutationDefinition<import("@graview/core").
|
|
|
1187
1272
|
readonly description: "the kind it belongs to";
|
|
1188
1273
|
readonly inverse: "its fields";
|
|
1189
1274
|
};
|
|
1275
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
1276
|
+
label: z.ZodString;
|
|
1277
|
+
expr: z.ZodString;
|
|
1278
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
1279
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1280
|
+
}, z.core.$strip>, {
|
|
1281
|
+
readonly "computed-on": {
|
|
1282
|
+
readonly to: readonly ["kind"];
|
|
1283
|
+
readonly cardinality: "one";
|
|
1284
|
+
readonly description: "the kind that works it out";
|
|
1285
|
+
readonly inverse: "what it works out";
|
|
1286
|
+
};
|
|
1190
1287
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
1191
1288
|
label: z.ZodString;
|
|
1192
1289
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1348,6 +1445,18 @@ export declare const retypeField: AnyMutationDefinition<import("@graview/core").
|
|
|
1348
1445
|
readonly description: "the kind it belongs to";
|
|
1349
1446
|
readonly inverse: "its fields";
|
|
1350
1447
|
};
|
|
1448
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
1449
|
+
label: z.ZodString;
|
|
1450
|
+
expr: z.ZodString;
|
|
1451
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
1452
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1453
|
+
}, z.core.$strip>, {
|
|
1454
|
+
readonly "computed-on": {
|
|
1455
|
+
readonly to: readonly ["kind"];
|
|
1456
|
+
readonly cardinality: "one";
|
|
1457
|
+
readonly description: "the kind that works it out";
|
|
1458
|
+
readonly inverse: "what it works out";
|
|
1459
|
+
};
|
|
1351
1460
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
1352
1461
|
label: z.ZodString;
|
|
1353
1462
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1509,6 +1618,18 @@ export declare const setRequired: AnyMutationDefinition<import("@graview/core").
|
|
|
1509
1618
|
readonly description: "the kind it belongs to";
|
|
1510
1619
|
readonly inverse: "its fields";
|
|
1511
1620
|
};
|
|
1621
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
1622
|
+
label: z.ZodString;
|
|
1623
|
+
expr: z.ZodString;
|
|
1624
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
1625
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1626
|
+
}, z.core.$strip>, {
|
|
1627
|
+
readonly "computed-on": {
|
|
1628
|
+
readonly to: readonly ["kind"];
|
|
1629
|
+
readonly cardinality: "one";
|
|
1630
|
+
readonly description: "the kind that works it out";
|
|
1631
|
+
readonly inverse: "what it works out";
|
|
1632
|
+
};
|
|
1512
1633
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
1513
1634
|
label: z.ZodString;
|
|
1514
1635
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1670,6 +1791,18 @@ export declare const setOptions: AnyMutationDefinition<import("@graview/core").S
|
|
|
1670
1791
|
readonly description: "the kind it belongs to";
|
|
1671
1792
|
readonly inverse: "its fields";
|
|
1672
1793
|
};
|
|
1794
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
1795
|
+
label: z.ZodString;
|
|
1796
|
+
expr: z.ZodString;
|
|
1797
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
1798
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1799
|
+
}, z.core.$strip>, {
|
|
1800
|
+
readonly "computed-on": {
|
|
1801
|
+
readonly to: readonly ["kind"];
|
|
1802
|
+
readonly cardinality: "one";
|
|
1803
|
+
readonly description: "the kind that works it out";
|
|
1804
|
+
readonly inverse: "what it works out";
|
|
1805
|
+
};
|
|
1673
1806
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
1674
1807
|
label: z.ZodString;
|
|
1675
1808
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1831,6 +1964,18 @@ export declare const describeField: AnyMutationDefinition<import("@graview/core"
|
|
|
1831
1964
|
readonly description: "the kind it belongs to";
|
|
1832
1965
|
readonly inverse: "its fields";
|
|
1833
1966
|
};
|
|
1967
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
1968
|
+
label: z.ZodString;
|
|
1969
|
+
expr: z.ZodString;
|
|
1970
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
1971
|
+
description: z.ZodOptional<z.ZodString>;
|
|
1972
|
+
}, z.core.$strip>, {
|
|
1973
|
+
readonly "computed-on": {
|
|
1974
|
+
readonly to: readonly ["kind"];
|
|
1975
|
+
readonly cardinality: "one";
|
|
1976
|
+
readonly description: "the kind that works it out";
|
|
1977
|
+
readonly inverse: "what it works out";
|
|
1978
|
+
};
|
|
1834
1979
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
1835
1980
|
label: z.ZodString;
|
|
1836
1981
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -1992,6 +2137,18 @@ export declare const addEdge: AnyMutationDefinition<import("@graview/core").Sche
|
|
|
1992
2137
|
readonly description: "the kind it belongs to";
|
|
1993
2138
|
readonly inverse: "its fields";
|
|
1994
2139
|
};
|
|
2140
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
2141
|
+
label: z.ZodString;
|
|
2142
|
+
expr: z.ZodString;
|
|
2143
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
2144
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2145
|
+
}, z.core.$strip>, {
|
|
2146
|
+
readonly "computed-on": {
|
|
2147
|
+
readonly to: readonly ["kind"];
|
|
2148
|
+
readonly cardinality: "one";
|
|
2149
|
+
readonly description: "the kind that works it out";
|
|
2150
|
+
readonly inverse: "what it works out";
|
|
2151
|
+
};
|
|
1995
2152
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
1996
2153
|
label: z.ZodString;
|
|
1997
2154
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2153,6 +2310,18 @@ export declare const removeEdge: AnyMutationDefinition<import("@graview/core").S
|
|
|
2153
2310
|
readonly description: "the kind it belongs to";
|
|
2154
2311
|
readonly inverse: "its fields";
|
|
2155
2312
|
};
|
|
2313
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
2314
|
+
label: z.ZodString;
|
|
2315
|
+
expr: z.ZodString;
|
|
2316
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
2317
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2318
|
+
}, z.core.$strip>, {
|
|
2319
|
+
readonly "computed-on": {
|
|
2320
|
+
readonly to: readonly ["kind"];
|
|
2321
|
+
readonly cardinality: "one";
|
|
2322
|
+
readonly description: "the kind that works it out";
|
|
2323
|
+
readonly inverse: "what it works out";
|
|
2324
|
+
};
|
|
2156
2325
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
2157
2326
|
label: z.ZodString;
|
|
2158
2327
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2314,6 +2483,18 @@ export declare const addAct: AnyMutationDefinition<import("@graview/core").Schem
|
|
|
2314
2483
|
readonly description: "the kind it belongs to";
|
|
2315
2484
|
readonly inverse: "its fields";
|
|
2316
2485
|
};
|
|
2486
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
2487
|
+
label: z.ZodString;
|
|
2488
|
+
expr: z.ZodString;
|
|
2489
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
2490
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2491
|
+
}, z.core.$strip>, {
|
|
2492
|
+
readonly "computed-on": {
|
|
2493
|
+
readonly to: readonly ["kind"];
|
|
2494
|
+
readonly cardinality: "one";
|
|
2495
|
+
readonly description: "the kind that works it out";
|
|
2496
|
+
readonly inverse: "what it works out";
|
|
2497
|
+
};
|
|
2317
2498
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
2318
2499
|
label: z.ZodString;
|
|
2319
2500
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2475,6 +2656,18 @@ export declare const removeAct: AnyMutationDefinition<import("@graview/core").Sc
|
|
|
2475
2656
|
readonly description: "the kind it belongs to";
|
|
2476
2657
|
readonly inverse: "its fields";
|
|
2477
2658
|
};
|
|
2659
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
2660
|
+
label: z.ZodString;
|
|
2661
|
+
expr: z.ZodString;
|
|
2662
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
2663
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2664
|
+
}, z.core.$strip>, {
|
|
2665
|
+
readonly "computed-on": {
|
|
2666
|
+
readonly to: readonly ["kind"];
|
|
2667
|
+
readonly cardinality: "one";
|
|
2668
|
+
readonly description: "the kind that works it out";
|
|
2669
|
+
readonly inverse: "what it works out";
|
|
2670
|
+
};
|
|
2478
2671
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
2479
2672
|
label: z.ZodString;
|
|
2480
2673
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2636,6 +2829,18 @@ export declare const addRule: AnyMutationDefinition<import("@graview/core").Sche
|
|
|
2636
2829
|
readonly description: "the kind it belongs to";
|
|
2637
2830
|
readonly inverse: "its fields";
|
|
2638
2831
|
};
|
|
2832
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
2833
|
+
label: z.ZodString;
|
|
2834
|
+
expr: z.ZodString;
|
|
2835
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
2836
|
+
description: z.ZodOptional<z.ZodString>;
|
|
2837
|
+
}, z.core.$strip>, {
|
|
2838
|
+
readonly "computed-on": {
|
|
2839
|
+
readonly to: readonly ["kind"];
|
|
2840
|
+
readonly cardinality: "one";
|
|
2841
|
+
readonly description: "the kind that works it out";
|
|
2842
|
+
readonly inverse: "what it works out";
|
|
2843
|
+
};
|
|
2639
2844
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
2640
2845
|
label: z.ZodString;
|
|
2641
2846
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2797,6 +3002,18 @@ export declare const removeRule: AnyMutationDefinition<import("@graview/core").S
|
|
|
2797
3002
|
readonly description: "the kind it belongs to";
|
|
2798
3003
|
readonly inverse: "its fields";
|
|
2799
3004
|
};
|
|
3005
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
3006
|
+
label: z.ZodString;
|
|
3007
|
+
expr: z.ZodString;
|
|
3008
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
3009
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3010
|
+
}, z.core.$strip>, {
|
|
3011
|
+
readonly "computed-on": {
|
|
3012
|
+
readonly to: readonly ["kind"];
|
|
3013
|
+
readonly cardinality: "one";
|
|
3014
|
+
readonly description: "the kind that works it out";
|
|
3015
|
+
readonly inverse: "what it works out";
|
|
3016
|
+
};
|
|
2800
3017
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
2801
3018
|
label: z.ZodString;
|
|
2802
3019
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -2958,6 +3175,18 @@ export declare const nameRepair: AnyMutationDefinition<import("@graview/core").S
|
|
|
2958
3175
|
readonly description: "the kind it belongs to";
|
|
2959
3176
|
readonly inverse: "its fields";
|
|
2960
3177
|
};
|
|
3178
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
3179
|
+
label: z.ZodString;
|
|
3180
|
+
expr: z.ZodString;
|
|
3181
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
3182
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3183
|
+
}, z.core.$strip>, {
|
|
3184
|
+
readonly "computed-on": {
|
|
3185
|
+
readonly to: readonly ["kind"];
|
|
3186
|
+
readonly cardinality: "one";
|
|
3187
|
+
readonly description: "the kind that works it out";
|
|
3188
|
+
readonly inverse: "what it works out";
|
|
3189
|
+
};
|
|
2961
3190
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
2962
3191
|
label: z.ZodString;
|
|
2963
3192
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3119,6 +3348,18 @@ export declare const forgetRepair: AnyMutationDefinition<import("@graview/core")
|
|
|
3119
3348
|
readonly description: "the kind it belongs to";
|
|
3120
3349
|
readonly inverse: "its fields";
|
|
3121
3350
|
};
|
|
3351
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
3352
|
+
label: z.ZodString;
|
|
3353
|
+
expr: z.ZodString;
|
|
3354
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
3355
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3356
|
+
}, z.core.$strip>, {
|
|
3357
|
+
readonly "computed-on": {
|
|
3358
|
+
readonly to: readonly ["kind"];
|
|
3359
|
+
readonly cardinality: "one";
|
|
3360
|
+
readonly description: "the kind that works it out";
|
|
3361
|
+
readonly inverse: "what it works out";
|
|
3362
|
+
};
|
|
3122
3363
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
3123
3364
|
label: z.ZodString;
|
|
3124
3365
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3280,6 +3521,18 @@ export declare const setFigure: AnyMutationDefinition<import("@graview/core").Sc
|
|
|
3280
3521
|
readonly description: "the kind it belongs to";
|
|
3281
3522
|
readonly inverse: "its fields";
|
|
3282
3523
|
};
|
|
3524
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
3525
|
+
label: z.ZodString;
|
|
3526
|
+
expr: z.ZodString;
|
|
3527
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
3528
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3529
|
+
}, z.core.$strip>, {
|
|
3530
|
+
readonly "computed-on": {
|
|
3531
|
+
readonly to: readonly ["kind"];
|
|
3532
|
+
readonly cardinality: "one";
|
|
3533
|
+
readonly description: "the kind that works it out";
|
|
3534
|
+
readonly inverse: "what it works out";
|
|
3535
|
+
};
|
|
3283
3536
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
3284
3537
|
label: z.ZodString;
|
|
3285
3538
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3441,6 +3694,18 @@ export declare const addRole: AnyMutationDefinition<import("@graview/core").Sche
|
|
|
3441
3694
|
readonly description: "the kind it belongs to";
|
|
3442
3695
|
readonly inverse: "its fields";
|
|
3443
3696
|
};
|
|
3697
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
3698
|
+
label: z.ZodString;
|
|
3699
|
+
expr: z.ZodString;
|
|
3700
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
3701
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3702
|
+
}, z.core.$strip>, {
|
|
3703
|
+
readonly "computed-on": {
|
|
3704
|
+
readonly to: readonly ["kind"];
|
|
3705
|
+
readonly cardinality: "one";
|
|
3706
|
+
readonly description: "the kind that works it out";
|
|
3707
|
+
readonly inverse: "what it works out";
|
|
3708
|
+
};
|
|
3444
3709
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
3445
3710
|
label: z.ZodString;
|
|
3446
3711
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3602,6 +3867,18 @@ export declare const grant: AnyMutationDefinition<import("@graview/core").Schema
|
|
|
3602
3867
|
readonly description: "the kind it belongs to";
|
|
3603
3868
|
readonly inverse: "its fields";
|
|
3604
3869
|
};
|
|
3870
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
3871
|
+
label: z.ZodString;
|
|
3872
|
+
expr: z.ZodString;
|
|
3873
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
3874
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3875
|
+
}, z.core.$strip>, {
|
|
3876
|
+
readonly "computed-on": {
|
|
3877
|
+
readonly to: readonly ["kind"];
|
|
3878
|
+
readonly cardinality: "one";
|
|
3879
|
+
readonly description: "the kind that works it out";
|
|
3880
|
+
readonly inverse: "what it works out";
|
|
3881
|
+
};
|
|
3605
3882
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
3606
3883
|
label: z.ZodString;
|
|
3607
3884
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3763,6 +4040,18 @@ export declare const revokeGrant: AnyMutationDefinition<import("@graview/core").
|
|
|
3763
4040
|
readonly description: "the kind it belongs to";
|
|
3764
4041
|
readonly inverse: "its fields";
|
|
3765
4042
|
};
|
|
4043
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
4044
|
+
label: z.ZodString;
|
|
4045
|
+
expr: z.ZodString;
|
|
4046
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
4047
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4048
|
+
}, z.core.$strip>, {
|
|
4049
|
+
readonly "computed-on": {
|
|
4050
|
+
readonly to: readonly ["kind"];
|
|
4051
|
+
readonly cardinality: "one";
|
|
4052
|
+
readonly description: "the kind that works it out";
|
|
4053
|
+
readonly inverse: "what it works out";
|
|
4054
|
+
};
|
|
3766
4055
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
3767
4056
|
label: z.ZodString;
|
|
3768
4057
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -3924,6 +4213,18 @@ export declare const addSight: AnyMutationDefinition<import("@graview/core").Sch
|
|
|
3924
4213
|
readonly description: "the kind it belongs to";
|
|
3925
4214
|
readonly inverse: "its fields";
|
|
3926
4215
|
};
|
|
4216
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
4217
|
+
label: z.ZodString;
|
|
4218
|
+
expr: z.ZodString;
|
|
4219
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
4220
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4221
|
+
}, z.core.$strip>, {
|
|
4222
|
+
readonly "computed-on": {
|
|
4223
|
+
readonly to: readonly ["kind"];
|
|
4224
|
+
readonly cardinality: "one";
|
|
4225
|
+
readonly description: "the kind that works it out";
|
|
4226
|
+
readonly inverse: "what it works out";
|
|
4227
|
+
};
|
|
3927
4228
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
3928
4229
|
label: z.ZodString;
|
|
3929
4230
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4085,6 +4386,18 @@ export declare const changeSight: AnyMutationDefinition<import("@graview/core").
|
|
|
4085
4386
|
readonly description: "the kind it belongs to";
|
|
4086
4387
|
readonly inverse: "its fields";
|
|
4087
4388
|
};
|
|
4389
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
4390
|
+
label: z.ZodString;
|
|
4391
|
+
expr: z.ZodString;
|
|
4392
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
4393
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4394
|
+
}, z.core.$strip>, {
|
|
4395
|
+
readonly "computed-on": {
|
|
4396
|
+
readonly to: readonly ["kind"];
|
|
4397
|
+
readonly cardinality: "one";
|
|
4398
|
+
readonly description: "the kind that works it out";
|
|
4399
|
+
readonly inverse: "what it works out";
|
|
4400
|
+
};
|
|
4088
4401
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
4089
4402
|
label: z.ZodString;
|
|
4090
4403
|
description: z.ZodOptional<z.ZodString>;
|
|
@@ -4246,6 +4559,18 @@ export declare const removeSight: AnyMutationDefinition<import("@graview/core").
|
|
|
4246
4559
|
readonly description: "the kind it belongs to";
|
|
4247
4560
|
readonly inverse: "its fields";
|
|
4248
4561
|
};
|
|
4562
|
+
}>, import("@graview/core").NodeDefinition<"computed", z.ZodObject<{
|
|
4563
|
+
label: z.ZodString;
|
|
4564
|
+
expr: z.ZodString;
|
|
4565
|
+
shownAs: z.ZodOptional<z.ZodString>;
|
|
4566
|
+
description: z.ZodOptional<z.ZodString>;
|
|
4567
|
+
}, z.core.$strip>, {
|
|
4568
|
+
readonly "computed-on": {
|
|
4569
|
+
readonly to: readonly ["kind"];
|
|
4570
|
+
readonly cardinality: "one";
|
|
4571
|
+
readonly description: "the kind that works it out";
|
|
4572
|
+
readonly inverse: "what it works out";
|
|
4573
|
+
};
|
|
4249
4574
|
}>, import("@graview/core").NodeDefinition<"edge", z.ZodObject<{
|
|
4250
4575
|
label: z.ZodString;
|
|
4251
4576
|
description: z.ZodOptional<z.ZodString>;
|
package/dist/meta.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"meta.d.ts","sourceRoot":"","sources":["../src/meta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,KAAK,qBAAqB,EAAE,KAAK,UAAU,EAAE,MAAM,eAAe,CAAC;AAE/G,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgBxB;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,cAAc,CAAC;AAEzC;;;;;GAKG;AACH,eAAO,MAAM,WAAW,iHAAkH,CAAC;AAC3I,MAAM,MAAM,SAAS,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC;AAErD,eAAO,MAAM,QAAQ;;;;;;;;wDA2BnB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;EAepB,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;EAkBnB,CAAC;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiClB,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;EAoC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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2DAUtB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2DAWtB,CAAC;AAEH,eAAO,MAAM,gBAAgB,EAAE,SAAS,qBAAqB,CAAC,YAAY,CAAC,EA0B1E,CAAC;AAEF,uGAAuG;AACvG,wBAAgB,SAAS,CAAC,IAAI,SAAW,GAAG,UAAU,CAAC,YAAY,CAAC,CAOnE"}
|
package/dist/meta.js
CHANGED
|
@@ -73,6 +73,30 @@ export const fieldNode = defineNode("field", {
|
|
|
73
73
|
label: (node) => node.label,
|
|
74
74
|
display: { labels: { label: "name" } },
|
|
75
75
|
});
|
|
76
|
+
/*
|
|
77
|
+
* A VALUE A KIND WORKS OUT (FR-83), a node like a field is. Without one the
|
|
78
|
+
* studio read an app's computed fields as nothing and handed the app back
|
|
79
|
+
* without them, so a glance that said one named nothing and a card that
|
|
80
|
+
* showed one drew a dash. Its own edge to its kind, not a field's `of`: a
|
|
81
|
+
* computed field is no field — no act writes it, no form asks for it.
|
|
82
|
+
*/
|
|
83
|
+
export const computedNode = defineNode("computed", {
|
|
84
|
+
description: "A value a kind works out from what it holds, in the rule language — read like a field, never stored or written.",
|
|
85
|
+
plural: "computed fields",
|
|
86
|
+
fields: z.object({
|
|
87
|
+
label,
|
|
88
|
+
/** What it is worked out as: `list * units`, `sum(out('includes'), list * units)`. */
|
|
89
|
+
expr: z.string().min(1),
|
|
90
|
+
/** The words it is shown by, where its name does not say it — the declaration's own `label`. */
|
|
91
|
+
shownAs: z.string().optional(),
|
|
92
|
+
description: z.string().optional(),
|
|
93
|
+
}),
|
|
94
|
+
edges: {
|
|
95
|
+
"computed-on": { to: ["kind"], cardinality: "one", description: "the kind that works it out", inverse: "what it works out" },
|
|
96
|
+
},
|
|
97
|
+
label: (node) => node.label,
|
|
98
|
+
display: { labels: { label: "name", expr: "worked out as", shownAs: "shown as" } },
|
|
99
|
+
});
|
|
76
100
|
export const edgeNode = defineNode("edge", {
|
|
77
101
|
description: "A relation one kind may have to another, with a reading from each end.",
|
|
78
102
|
plural: "edges",
|
|
@@ -251,7 +275,7 @@ export const brandNode = defineNode("brand", {
|
|
|
251
275
|
label: (node) => node.label,
|
|
252
276
|
display: { labels: { label: "name", body: "body typeface", display: "display typeface" } },
|
|
253
277
|
});
|
|
254
|
-
export const STUDIO_SCHEMA = createSchema([kindNode, fieldNode, edgeNode, actNode, ruleNode, roleNode, grantNode, sightNode, lensNode, brandNode]);
|
|
278
|
+
export const STUDIO_SCHEMA = createSchema([kindNode, fieldNode, computedNode, edgeNode, actNode, ruleNode, roleNode, grantNode, sightNode, lensNode, brandNode]);
|
|
255
279
|
const nameOf = (ctx, id) => {
|
|
256
280
|
const node = ctx.graph.getNode(id);
|
|
257
281
|
return node?.label ?? id;
|
|
@@ -300,7 +324,13 @@ export const renameKind = act("rename-kind", {
|
|
|
300
324
|
input: z.object({ id: nodeRef(["kind"]), label: z.string().min(1) }),
|
|
301
325
|
describe: (args, graph) => `Rename ${graph.getNode(args.id)?.label ?? args.id} to ${args.label}`,
|
|
302
326
|
apply(ctx, args) {
|
|
303
|
-
|
|
327
|
+
const from = nameOf(ctx, args.id);
|
|
328
|
+
const to = slug(args.label);
|
|
329
|
+
const kinds = declaredKinds(ctx.graph);
|
|
330
|
+
ctx.patchNode(args.id, { label: to });
|
|
331
|
+
// A computed field that sweeps the kind by name (`all('party')`) follows it, by the rule language's own walk.
|
|
332
|
+
if (from !== to)
|
|
333
|
+
renameComputed(ctx, kinds, { what: "kind", from, to });
|
|
304
334
|
},
|
|
305
335
|
});
|
|
306
336
|
export const removeKind = act("remove-kind", {
|
|
@@ -317,7 +347,7 @@ export const removeKind = act("remove-kind", {
|
|
|
317
347
|
* graph as it stood, so removing a field and then its kind would say
|
|
318
348
|
* "remove the of edge" twice.
|
|
319
349
|
*/
|
|
320
|
-
const gone = [args.id, ...ctx.graph.in(args.id, "of").map((node) => node.id), ...ctx.graph.in(args.id, "from-kind").map((node) => node.id)];
|
|
350
|
+
const gone = [args.id, ...ctx.graph.in(args.id, "of").map((node) => node.id), ...ctx.graph.in(args.id, "computed-on").map((node) => node.id), ...ctx.graph.in(args.id, "from-kind").map((node) => node.id)];
|
|
321
351
|
const going = new Set(gone);
|
|
322
352
|
const touched = new Map();
|
|
323
353
|
for (const edge of ctx.graph.allEdges()) {
|
|
@@ -424,8 +454,25 @@ export const renameField = act("rename-field", {
|
|
|
424
454
|
if (Object.keys(patch).length > 0)
|
|
425
455
|
ctx.patchNode(rule.id, patch);
|
|
426
456
|
}
|
|
457
|
+
// And every computed field that reads it, on this kind or walking to it from another (FR-83).
|
|
458
|
+
renameComputed(ctx, kinds, change);
|
|
427
459
|
},
|
|
428
460
|
});
|
|
461
|
+
/** Every computed field's expression with a name changed, read from the kind that works it out. */
|
|
462
|
+
function renameComputed(ctx, kinds, change) {
|
|
463
|
+
for (const computed of ctx.graph.nodesOfKind("computed")) {
|
|
464
|
+
if (typeof computed.expr !== "string")
|
|
465
|
+
continue;
|
|
466
|
+
const owner = ctx.graph.out(computed.id, "computed-on")[0];
|
|
467
|
+
if (!owner?.label)
|
|
468
|
+
continue;
|
|
469
|
+
// The kind as `kinds` names it: read before the change.
|
|
470
|
+
const over = change.what === "kind" && owner.label === change.to ? change.from : owner.label;
|
|
471
|
+
const next = renameIn(kinds, over, { expression: computed.expr }, change);
|
|
472
|
+
if (next !== undefined && next !== computed.expr)
|
|
473
|
+
ctx.patchNode(computed.id, { expr: next });
|
|
474
|
+
}
|
|
475
|
+
}
|
|
429
476
|
export const removeField = act("remove-field", {
|
|
430
477
|
title: "Remove the field",
|
|
431
478
|
description: "Take a field off its kind. Records that carry it need a migration.",
|