@radicaltools/mcp 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/dist/{chunk-Z7THA3L5.js → chunk-2SZDTOYJ.js} +65 -33
- package/dist/{elkLayout-TAUBPPVN.js → elkLayout-VYJDCCIT.js} +1 -1
- package/dist/hub-catalogue/concern/concern-api-collections.radical +1136 -0
- package/dist/hub-catalogue/concern/concern-api-errors.radical +1180 -0
- package/dist/hub-catalogue/concern/concern-api-evolution.radical +449 -210
- package/dist/hub-catalogue/concern/concern-api-idempotency.radical +1218 -0
- package/dist/hub-catalogue/concern/concern-api-resource-design.radical +1102 -0
- package/dist/hub-catalogue/concern/concern-api-style-guide.radical +1210 -0
- package/dist/hub-catalogue/concern/concern-architecture-style.radical +287 -131
- package/dist/hub-catalogue/concern/concern-audit-trail.radical +1096 -0
- package/dist/hub-catalogue/concern/concern-authentication.radical +247 -37
- package/dist/hub-catalogue/concern/concern-authorization.radical +311 -89
- package/dist/hub-catalogue/concern/concern-availability.radical +287 -63
- package/dist/hub-catalogue/concern/concern-backend-stack.radical +300 -381
- package/dist/hub-catalogue/concern/concern-backup-recovery.radical +385 -129
- package/dist/hub-catalogue/concern/concern-caching.radical +1294 -0
- package/dist/hub-catalogue/concern/concern-capacity.radical +194 -81
- package/dist/hub-catalogue/concern/concern-code-documentation.radical +1397 -0
- package/dist/hub-catalogue/concern/concern-code-quality-gate.radical +1409 -0
- package/dist/hub-catalogue/concern/concern-code-review-branching.radical +1416 -0
- package/dist/hub-catalogue/concern/concern-code-style.radical +1058 -0
- package/dist/hub-catalogue/concern/concern-communication-style.radical +473 -167
- package/dist/hub-catalogue/concern/concern-data-classification.radical +970 -0
- package/dist/hub-catalogue/concern/concern-data-consistency.radical +339 -308
- package/dist/hub-catalogue/concern/concern-data-store.radical +480 -158
- package/dist/hub-catalogue/concern/concern-decomposition.radical +260 -85
- package/dist/hub-catalogue/concern/concern-definition-of-done.radical +1214 -0
- package/dist/hub-catalogue/concern/concern-delivery-metrics.radical +966 -0
- package/dist/hub-catalogue/concern/concern-dependency-hygiene.radical +1345 -0
- package/dist/hub-catalogue/concern/concern-deployment.radical +343 -92
- package/dist/hub-catalogue/concern/concern-encryption.radical +339 -76
- package/dist/hub-catalogue/concern/concern-error-handling-logging.radical +1197 -0
- package/dist/hub-catalogue/concern/concern-eu-dora.radical +1321 -0
- package/dist/hub-catalogue/concern/concern-frontend-stack.radical +467 -160
- package/dist/hub-catalogue/concern/concern-incident-management.radical +1204 -0
- package/dist/hub-catalogue/concern/concern-infrastructure.radical +1300 -268
- package/dist/hub-catalogue/concern/concern-integration-resilience.radical +88 -51
- package/dist/hub-catalogue/concern/concern-messaging.radical +173 -140
- package/dist/hub-catalogue/concern/concern-module-boundaries.radical +162 -159
- package/dist/hub-catalogue/concern/concern-observability.radical +224 -275
- package/dist/hub-catalogue/concern/concern-operational-readiness.radical +1249 -0
- package/dist/hub-catalogue/concern/concern-personal-data.radical +637 -122
- package/dist/hub-catalogue/concern/concern-quality-priorities.radical +1091 -0
- package/dist/hub-catalogue/concern/concern-rate-limiting.radical +433 -141
- package/dist/hub-catalogue/concern/concern-release-versioning.radical +1358 -0
- package/dist/hub-catalogue/concern/concern-retention.radical +1399 -0
- package/dist/hub-catalogue/concern/concern-secrets.radical +332 -74
- package/dist/hub-catalogue/concern/concern-secure-coding.radical +1379 -0
- package/dist/hub-catalogue/concern/concern-secure-development.radical +1245 -0
- package/dist/hub-catalogue/concern/concern-security-detection.radical +1153 -0
- package/dist/hub-catalogue/concern/concern-supply-chain.radical +257 -183
- package/dist/hub-catalogue/concern/concern-technical-debt.radical +1450 -0
- package/dist/hub-catalogue/concern/concern-technology-lifecycle.radical +1145 -0
- package/dist/hub-catalogue/concern/concern-tenant-isolation.radical +271 -137
- package/dist/hub-catalogue/concern/concern-test-strategy.radical +243 -224
- package/dist/hub-catalogue/concern/concern-threat-modelling.radical +1143 -0
- package/dist/index.js +1001 -230
- package/package.json +1 -1
|
@@ -31,7 +31,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
31
31
|
var define_RADICAL_BUILD_default;
|
|
32
32
|
var init_define_RADICAL_BUILD = __esm({
|
|
33
33
|
"<define:__RADICAL_BUILD__>"() {
|
|
34
|
-
define_RADICAL_BUILD_default = { version: "0.3.
|
|
34
|
+
define_RADICAL_BUILD_default = { version: "0.3.1", commit: "a7cec7e", date: "2026-10-31", release: true };
|
|
35
35
|
}
|
|
36
36
|
});
|
|
37
37
|
|
|
@@ -991,14 +991,14 @@ function radicalViewpoints() {
|
|
|
991
991
|
id: "fitness-functions",
|
|
992
992
|
label: "Fitness functions",
|
|
993
993
|
group: "Decisions",
|
|
994
|
-
description: "A table of the fitness functions by
|
|
994
|
+
description: "A table of the fitness functions by characteristic, each with the decisions it checks and the elements it constrains.",
|
|
995
995
|
kind: "table",
|
|
996
996
|
pipeline: {
|
|
997
997
|
levels: [
|
|
998
998
|
{ ways: [{ types: ["fitness-fn"] }] },
|
|
999
999
|
{ ways: [{ via: { relationType: "implements", direction: "out" }, types: ["adr"] }, { via: { relationType: "constrains", direction: "out" } }] }
|
|
1000
1000
|
],
|
|
1001
|
-
sort: { by: "property", key: "
|
|
1001
|
+
sort: { by: "property", key: "characteristic" }
|
|
1002
1002
|
}
|
|
1003
1003
|
},
|
|
1004
1004
|
{
|
|
@@ -1465,11 +1465,33 @@ function builtInDddC4Metamodel() {
|
|
|
1465
1465
|
|
|
1466
1466
|
// ../../packages/common/src/metamodel/presets/governance.ts
|
|
1467
1467
|
var RADICAL_METAMODEL_NAME = "Radical";
|
|
1468
|
-
var
|
|
1469
|
-
key: "
|
|
1470
|
-
label: "
|
|
1471
|
-
type: "
|
|
1472
|
-
|
|
1468
|
+
var METRICS_PROPERTIES = [
|
|
1469
|
+
{ key: "metrics", label: "Metrics (one per line: test(file \u203A title) passed, or metric{labels} <= value unit)", type: "textarea" },
|
|
1470
|
+
{ key: "combine", label: "Combine (all, any, at least N)", type: "text" },
|
|
1471
|
+
{ key: "max_age", label: "Max age of a measurement (e.g. 7d)", type: "text" }
|
|
1472
|
+
];
|
|
1473
|
+
var FITNESS_CHARACTERISTICS = [
|
|
1474
|
+
"functional-suitability",
|
|
1475
|
+
"performance-efficiency",
|
|
1476
|
+
"compatibility",
|
|
1477
|
+
"interaction-capability",
|
|
1478
|
+
"reliability",
|
|
1479
|
+
"security",
|
|
1480
|
+
"maintainability",
|
|
1481
|
+
"flexibility",
|
|
1482
|
+
"safety",
|
|
1483
|
+
"other"
|
|
1484
|
+
];
|
|
1485
|
+
var FITNESS_TRIGGERS = ["pull-request", "nightly", "weekly", "release", "deploy"];
|
|
1486
|
+
var FITNESS_CLASSIFICATION_PROPERTIES = [
|
|
1487
|
+
{ key: "characteristic", label: "Characteristic (ISO/IEC 25010)", type: "enum", options: [...FITNESS_CHARACTERISTICS] },
|
|
1488
|
+
{ key: "scope", label: "Scope", type: "enum", options: ["atomic", "holistic"] },
|
|
1489
|
+
{ key: "cadence", label: "Cadence", type: "enum", options: ["triggered", "continual", "temporal"] },
|
|
1490
|
+
{ key: "trigger", label: "Runs on", type: "enum", options: [...FITNESS_TRIGGERS], visibleWhen: { key: "cadence", values: ["triggered"] } },
|
|
1491
|
+
{ key: "every", label: "Every (e.g. 90d)", type: "text", visibleWhen: { key: "cadence", values: ["temporal"] } },
|
|
1492
|
+
{ key: "invocation", label: "Invocation", type: "enum", options: ["automated", "manual"] },
|
|
1493
|
+
{ key: "measure", label: "Measure (one per line: a sensor and its arguments)", type: "textarea", visibleWhen: { key: "invocation", values: ["automated"] } }
|
|
1494
|
+
];
|
|
1473
1495
|
function builtInGovernanceMetamodel() {
|
|
1474
1496
|
const base = builtInDddC4Metamodel();
|
|
1475
1497
|
const adrProps = [
|
|
@@ -1559,15 +1581,8 @@ function builtInGovernanceMetamodel() {
|
|
|
1559
1581
|
};
|
|
1560
1582
|
const fitnessFnProps = [
|
|
1561
1583
|
{ key: "description", label: "Description", type: "textarea" },
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
label: "Category",
|
|
1565
|
-
type: "enum",
|
|
1566
|
-
options: ["structural", "operational", "process", "holistic"],
|
|
1567
|
-
default: "structural"
|
|
1568
|
-
},
|
|
1569
|
-
{ key: "threshold", label: "Threshold / Success criteria", type: "text" },
|
|
1570
|
-
TESTS_PROPERTY
|
|
1584
|
+
...FITNESS_CLASSIFICATION_PROPERTIES,
|
|
1585
|
+
...METRICS_PROPERTIES
|
|
1571
1586
|
];
|
|
1572
1587
|
const fitnessFn = {
|
|
1573
1588
|
id: "fitness-fn",
|
|
@@ -1591,21 +1606,27 @@ function builtInGovernanceMetamodel() {
|
|
|
1591
1606
|
steps: [
|
|
1592
1607
|
{
|
|
1593
1608
|
kind: "fields",
|
|
1594
|
-
title: "Name &
|
|
1595
|
-
fields: ["label", "
|
|
1596
|
-
help: 'Name
|
|
1609
|
+
title: "Name & characteristic",
|
|
1610
|
+
fields: ["label", "characteristic", "scope"],
|
|
1611
|
+
help: 'Name what this function protects, e.g. "Checkout p95 latency", and the ISO/IEC 25010 characteristic it is part of. Atomic checks one part in one context (a unit test, a linter rule); holistic checks how several parts behave together (latency under load).'
|
|
1612
|
+
},
|
|
1613
|
+
{
|
|
1614
|
+
kind: "fields",
|
|
1615
|
+
title: "When it runs",
|
|
1616
|
+
fields: ["cadence", "trigger", "every", "invocation"],
|
|
1617
|
+
help: "Triggered runs on an event (a pull request, every night, a release); continual runs all the time (monitoring in production); temporal falls due after a time (every 90 days). Manual means a person reviews it and records the result with radical sense review."
|
|
1597
1618
|
},
|
|
1598
1619
|
{
|
|
1599
1620
|
kind: "fields",
|
|
1600
1621
|
title: "What it measures",
|
|
1601
|
-
fields: ["description"],
|
|
1602
|
-
help:
|
|
1622
|
+
fields: ["description", "measure"],
|
|
1623
|
+
help: 'How is the characteristic measured? Measure names a sensor and its arguments, one per line, e.g. "playwright tests/load.spec.ts --label env=staging"; leave it empty for tests the pull-request gate already runs.'
|
|
1603
1624
|
},
|
|
1604
1625
|
{
|
|
1605
1626
|
kind: "fields",
|
|
1606
1627
|
title: "Success criteria",
|
|
1607
|
-
fields: ["
|
|
1608
|
-
help: 'When does it pass?
|
|
1628
|
+
fields: ["metrics"],
|
|
1629
|
+
help: 'When does it pass? One condition per line: a measured value and its threshold, e.g. "checkout.latency.p95{env=prod} <= 300 ms", or a test that has to pass, e.g. "test(tests/architecture.test.ts \u203A no cycles) passed".'
|
|
1609
1630
|
},
|
|
1610
1631
|
{
|
|
1611
1632
|
kind: "relations",
|
|
@@ -1867,7 +1888,7 @@ function builtInGovernanceMetamodel() {
|
|
|
1867
1888
|
{ key: "when", label: "When", type: "textarea" },
|
|
1868
1889
|
{ key: "then", label: "Then", type: "textarea" },
|
|
1869
1890
|
{ key: "gherkin", label: "Extra steps (And/But, raw Gherkin)", type: "textarea" },
|
|
1870
|
-
|
|
1891
|
+
...METRICS_PROPERTIES
|
|
1871
1892
|
];
|
|
1872
1893
|
const scenario = {
|
|
1873
1894
|
id: "scenario",
|
|
@@ -2469,6 +2490,7 @@ function viewFolderPaths(views) {
|
|
|
2469
2490
|
}
|
|
2470
2491
|
return [...paths].sort((a, b) => a.localeCompare(b, void 0, { numeric: true, sensitivity: "base" }));
|
|
2471
2492
|
}
|
|
2493
|
+
var CANVAS_MAX_ELEMENTS = 1e3;
|
|
2472
2494
|
var WIKI_DEPTH_MIN = 1;
|
|
2473
2495
|
var WIKI_DEPTH_MAX = 5;
|
|
2474
2496
|
function wikiDepthOf(view) {
|
|
@@ -2541,6 +2563,11 @@ var ELK_CHILD_SPACING = {
|
|
|
2541
2563
|
|
|
2542
2564
|
// ../../packages/layout/src/geometry.ts
|
|
2543
2565
|
init_define_RADICAL_BUILD();
|
|
2566
|
+
var placing = null;
|
|
2567
|
+
function childrenOf(nodes, parentId) {
|
|
2568
|
+
if (placing?.nodes === nodes) return placing.children.get(parentId ?? void 0) ?? [];
|
|
2569
|
+
return Object.values(nodes).filter((n) => (n.parentId ?? void 0) === (parentId ?? void 0));
|
|
2570
|
+
}
|
|
2544
2571
|
function effectiveWidth(n) {
|
|
2545
2572
|
if (isContainerType(n.type) && n.collapsed) return COLLAPSED_WIDTH[n.type];
|
|
2546
2573
|
return n.width ?? NODE_SIZES[n.type].width;
|
|
@@ -2583,7 +2610,7 @@ function fittedParentSize(parent, children) {
|
|
|
2583
2610
|
}
|
|
2584
2611
|
function placeNewNode(nodes, parentId) {
|
|
2585
2612
|
const parent = parentId ? nodes[parentId] : void 0;
|
|
2586
|
-
const siblings =
|
|
2613
|
+
const siblings = childrenOf(nodes, parent?.id);
|
|
2587
2614
|
const right = Math.max(...siblings.map((n) => n.x + effectiveWidth(n)));
|
|
2588
2615
|
if (!parent) return { x: siblings.length ? right + 80 : 0, y: 0 };
|
|
2589
2616
|
const pad = compoundPadding(parent.type);
|
|
@@ -2591,7 +2618,7 @@ function placeNewNode(nodes, parentId) {
|
|
|
2591
2618
|
}
|
|
2592
2619
|
function placeBesideSiblings(nodes, parentId, counts = () => true) {
|
|
2593
2620
|
const parent = parentId ? nodes[parentId] : void 0;
|
|
2594
|
-
const siblings =
|
|
2621
|
+
const siblings = childrenOf(nodes, parent?.id).filter((s) => counts(s));
|
|
2595
2622
|
if (siblings.length === 0) {
|
|
2596
2623
|
const pad = parent ? compoundPadding(parent.type) : { top: 0, side: 0 };
|
|
2597
2624
|
return { x: pad.side, y: pad.top };
|
|
@@ -2611,7 +2638,7 @@ var GRID_GAP = 60;
|
|
|
2611
2638
|
function gridSlotIn(nodes, parentId, size, counts = () => true, frame) {
|
|
2612
2639
|
const parent = nodes[parentId];
|
|
2613
2640
|
const pad = compoundPadding(parent?.type ?? "system");
|
|
2614
|
-
const kids =
|
|
2641
|
+
const kids = childrenOf(nodes, parentId).filter((c) => counts(c));
|
|
2615
2642
|
if (!kids.length) return centredIn(frame ?? { width: parent?.width ?? 0, height: parent?.height ?? 0 }, size, pad);
|
|
2616
2643
|
const cellW = Math.max(size.width, ...kids.map(effectiveWidth));
|
|
2617
2644
|
const cellH = Math.max(size.height, ...kids.map(effectiveHeight));
|
|
@@ -2642,12 +2669,12 @@ function liesClearInParent(node, nodes, canvas, ignore = () => false) {
|
|
|
2642
2669
|
const frame = canvas.boxOf(parent);
|
|
2643
2670
|
if (box.x < 0 || box.y < 0 || box.x + box.w > frame.w || box.y + box.h > frame.h) return false;
|
|
2644
2671
|
}
|
|
2645
|
-
return !
|
|
2672
|
+
return !childrenOf(nodes, node.parentId).some((s) => s.id !== node.id && canvas.shown(s) && !ignore(s) && drawnBoxesOf(s, nodes, canvas, (c) => c.id !== node.id && !ignore(c)).some((b) => boxesOverlap(box, b)));
|
|
2646
2673
|
}
|
|
2647
2674
|
function drawnBoxesOf(node, nodes, canvas, keep = () => true) {
|
|
2648
2675
|
const box = canvas.boxOf(node);
|
|
2649
2676
|
if (!canvas.frame?.(node)) return [box];
|
|
2650
|
-
return
|
|
2677
|
+
return childrenOf(nodes, node.id).filter((c) => canvas.shown(c) && keep(c)).flatMap((c) => drawnBoxesOf(c, nodes, canvas, keep).map((b) => ({ ...b, x: b.x + box.x, y: b.y + box.y })));
|
|
2651
2678
|
}
|
|
2652
2679
|
function settleMovedNodes(nodes, ids, canvas, fit = (parentId) => fitShown(nodes, parentId, canvas), opened) {
|
|
2653
2680
|
const touched = [];
|
|
@@ -2707,7 +2734,7 @@ var CHILD_TOP_MIN = 50;
|
|
|
2707
2734
|
function growFrameLeftUp(nodes, parentId, shown = () => true) {
|
|
2708
2735
|
const parent = nodes[parentId];
|
|
2709
2736
|
if (!parent) return;
|
|
2710
|
-
const kids =
|
|
2737
|
+
const kids = childrenOf(nodes, parentId).filter((c) => shown(c));
|
|
2711
2738
|
if (!kids.length) return;
|
|
2712
2739
|
const pad = compoundPadding(parent.type);
|
|
2713
2740
|
const minX = Math.min(...kids.map((c) => c.x));
|
|
@@ -2725,7 +2752,7 @@ function growFrameLeftUp(nodes, parentId, shown = () => true) {
|
|
|
2725
2752
|
function fitShown(nodes, parentId, canvas) {
|
|
2726
2753
|
const parent = nodes[parentId];
|
|
2727
2754
|
if (!parent || !isContainerType(parent.type) || parent.collapsed) return;
|
|
2728
|
-
const children =
|
|
2755
|
+
const children = childrenOf(nodes, parentId).filter((c) => canvas.shown(c));
|
|
2729
2756
|
if (!children.length) return;
|
|
2730
2757
|
const size = fittedParentSize(parent, children.map((c) => ({ x: c.x, y: c.y, width: effectiveWidth(c), height: effectiveHeight(c) })));
|
|
2731
2758
|
parent.width = size.width;
|
|
@@ -2737,7 +2764,7 @@ function makeRoomAround(grownId, nodes, canvas) {
|
|
|
2737
2764
|
const grown = nodes[grownId];
|
|
2738
2765
|
if (!grown) return {};
|
|
2739
2766
|
const { shown, boxOf } = canvas;
|
|
2740
|
-
const siblings =
|
|
2767
|
+
const siblings = childrenOf(nodes, grown.parentId).filter((n) => shown(n));
|
|
2741
2768
|
if (siblings.length < 2) return {};
|
|
2742
2769
|
const box = new Map(siblings.map((n) => [n.id, boxOf(n)]));
|
|
2743
2770
|
const before = new Map(siblings.map((n) => [n.id, boxOf(n)]));
|
|
@@ -3149,6 +3176,10 @@ export {
|
|
|
3149
3176
|
composeEarsSentence,
|
|
3150
3177
|
builtInC4Metamodel,
|
|
3151
3178
|
RADICAL_METAMODEL_NAME,
|
|
3179
|
+
METRICS_PROPERTIES,
|
|
3180
|
+
FITNESS_CHARACTERISTICS,
|
|
3181
|
+
FITNESS_TRIGGERS,
|
|
3182
|
+
FITNESS_CLASSIFICATION_PROPERTIES,
|
|
3152
3183
|
builtInGovernanceMetamodel,
|
|
3153
3184
|
layoutRoleOf,
|
|
3154
3185
|
relationLayoutHint,
|
|
@@ -3170,6 +3201,7 @@ export {
|
|
|
3170
3201
|
COLLAPSED_WIDTH,
|
|
3171
3202
|
normalizeViewFolder,
|
|
3172
3203
|
viewFolderPaths,
|
|
3204
|
+
CANVAS_MAX_ELEMENTS,
|
|
3173
3205
|
WIKI_DEPTH_MAX,
|
|
3174
3206
|
wikiDepthOf,
|
|
3175
3207
|
holderOf,
|