@formicoidea/labre-framework-wardley 3.0.0 → 3.3.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/dist/morph.d.ts CHANGED
@@ -6,34 +6,45 @@ import type { GfxPrimitiveElementModel } from '@formicoidea/labre-core/std/gfx';
6
6
  * What a Wardley artefact may BECOME — the declaration behind the "Change type"
7
7
  * dropdown on a selected component's contextual toolbar.
8
8
  *
9
- * ## One family, and why it is exactly these four
10
- *
11
- * A component, a market, an ecosystem and a pipeline are four ways of saying
12
- * the SAME thing: something the value chain depends on. The map's own reading
13
- * agrees — `roles.ts` makes `market` and `ecosystem` children of `component` in
14
- * the role tree — and the modelling gesture the morph exists for is the one
15
- * every mapper makes: you draw a component, you look at the map, and you
16
- * realise that what you drew is a market of many suppliers, or a whole
17
- * ecosystem, or a pipeline of choices. Today that costs a delete, a re-draw,
18
- * every dependency re-attached and the name typed again.
9
+ * ## One family, and why it is exactly these five
10
+ *
11
+ * A component, a component + method, a market, an ecosystem and a pipeline are
12
+ * five ways of saying the SAME thing: something the value chain depends on. The
13
+ * map's own reading agrees — `roles.ts` makes `method`, `market` and
14
+ * `ecosystem` children of `component` in the role tree — and the modelling
15
+ * gesture the morph exists for is the one every mapper makes: you draw a
16
+ * component, you look at the map, and you realise that what you drew is
17
+ * sourced in a way worth saying, or a market of many suppliers, or a whole
18
+ * ecosystem, or a pipeline of choices. Without the morph that costs a delete, a
19
+ * re-draw, every dependency re-attached and the name typed again.
19
20
  *
20
21
  * The family is DATA and nothing derives it — the same call BPMN and C4 make.
21
22
  * Deriving it from `roleIsA` would have been wrong in both directions here: it
22
23
  * would reach from market to component and not back, and it would say nothing
23
24
  * at all about the pipeline, which is not a specialisation of anything and is
24
- * still the fourth way of drawing the same claim.
25
+ * still another way of drawing the same claim.
26
+ *
27
+ * ## Why the method joined (ADR 0046, amendment of 2026-11-04)
28
+ *
29
+ * It was left out while its grey FILL encoded the chosen method: morphing away
30
+ * would have discarded that decision, morphing in would have had to invent one.
31
+ * Since ADR 0046 the method is the `wardley:method` TAG, and the ring is painted
32
+ * from it — Make when no tag names one (`node/node-renderer.ts`). So nothing is
33
+ * invented on the way in: a component that becomes a component + method paints
34
+ * Make until the author picks another. And nothing is lost on the way out: the
35
+ * morph never writes `tags`, so the tag stays stored, inert on any other kind
36
+ * (the ring is painted for `kind === 'method'` only, the legend row reads the
37
+ * `wardley:method` role), and is back in force when the artefact morphs into a
38
+ * method again. No code in `afterMorph` for it: the ring is the renderer's, the
39
+ * size and the name's place come from the presets like every other member's.
25
40
  *
26
- * ## The two kinds deliberately left out
41
+ * ## The one kind deliberately left out
27
42
  *
28
43
  * - **`anchor`** is the user, and the need they have. It is a role of its own
29
44
  * precisely because it is NOT a component (`roles.ts`): it is what the value
30
45
  * chain hangs from, not a link in it. A menu offering "turn this user into a
31
46
  * pipeline" would invite a map with no anchor at all — the one thing a
32
47
  * Wardley map cannot be read without.
33
- * - **`method`** is not an artefact but an annotation ON one: the coloured ring
34
- * says how a component is being BUILT (buy / build / outsource), and its fill
35
- * encodes the choice. Morphing it away would silently discard that decision,
36
- * and morphing into it would have to invent one.
37
48
  *
38
49
  * `handle` is in no family either, and does not need excluding by name: it is
39
50
  * not an artefact at all, so nothing selects it and {@link wardleyNodeOfComponent}
@@ -41,7 +52,7 @@ import type { GfxPrimitiveElementModel } from '@formicoidea/labre-core/std/gfx';
41
52
  */
42
53
  export declare const WARDLEY_MORPH_FAMILIES: readonly (readonly WardleyMorphKind[])[];
43
54
  /** The kinds this framework offers as morph targets. */
44
- export type WardleyMorphKind = 'component' | 'market' | 'ecosystem' | 'pipeline';
55
+ export type WardleyMorphKind = 'component' | 'method' | 'market' | 'ecosystem' | 'pipeline';
45
56
  /**
46
57
  * The `wardleyNode` a selected GROUP is the artefact of — `undefined` when the
47
58
  * group is not one.
@@ -59,7 +70,9 @@ export type WardleyMorphKind = 'component' | 'market' | 'ecosystem' | 'pipeline'
59
70
  * - with a ROLE, which leaves out the market's three neutral dots — they are the
60
71
  * glyph's wiring and carry none by construction (`presets.ts`);
61
72
  * - whose kind is in the family, which leaves out the pipeline's `handle` and
62
- * any `anchor` or `method` somebody grouped in beside the artefact.
73
+ * any `anchor` somebody grouped in beside the artefact. A method grouped in
74
+ * beside a component is a second member of the family, so that group is the
75
+ * two-candidate refusal below.
63
76
  *
64
77
  * TWO candidates is a REFUSAL rather than a first-wins pick, exactly as C4's
65
78
  * resolution refuses a group of two components: morphing "it" would mean
package/dist/morph.js CHANGED
@@ -9,34 +9,45 @@ import { WARDLEY_ROLE } from './roles.js';
9
9
  * What a Wardley artefact may BECOME — the declaration behind the "Change type"
10
10
  * dropdown on a selected component's contextual toolbar.
11
11
  *
12
- * ## One family, and why it is exactly these four
13
- *
14
- * A component, a market, an ecosystem and a pipeline are four ways of saying
15
- * the SAME thing: something the value chain depends on. The map's own reading
16
- * agrees — `roles.ts` makes `market` and `ecosystem` children of `component` in
17
- * the role tree — and the modelling gesture the morph exists for is the one
18
- * every mapper makes: you draw a component, you look at the map, and you
19
- * realise that what you drew is a market of many suppliers, or a whole
20
- * ecosystem, or a pipeline of choices. Today that costs a delete, a re-draw,
21
- * every dependency re-attached and the name typed again.
12
+ * ## One family, and why it is exactly these five
13
+ *
14
+ * A component, a component + method, a market, an ecosystem and a pipeline are
15
+ * five ways of saying the SAME thing: something the value chain depends on. The
16
+ * map's own reading agrees — `roles.ts` makes `method`, `market` and
17
+ * `ecosystem` children of `component` in the role tree — and the modelling
18
+ * gesture the morph exists for is the one every mapper makes: you draw a
19
+ * component, you look at the map, and you realise that what you drew is
20
+ * sourced in a way worth saying, or a market of many suppliers, or a whole
21
+ * ecosystem, or a pipeline of choices. Without the morph that costs a delete, a
22
+ * re-draw, every dependency re-attached and the name typed again.
22
23
  *
23
24
  * The family is DATA and nothing derives it — the same call BPMN and C4 make.
24
25
  * Deriving it from `roleIsA` would have been wrong in both directions here: it
25
26
  * would reach from market to component and not back, and it would say nothing
26
27
  * at all about the pipeline, which is not a specialisation of anything and is
27
- * still the fourth way of drawing the same claim.
28
+ * still another way of drawing the same claim.
29
+ *
30
+ * ## Why the method joined (ADR 0046, amendment of 2026-11-04)
31
+ *
32
+ * It was left out while its grey FILL encoded the chosen method: morphing away
33
+ * would have discarded that decision, morphing in would have had to invent one.
34
+ * Since ADR 0046 the method is the `wardley:method` TAG, and the ring is painted
35
+ * from it — Make when no tag names one (`node/node-renderer.ts`). So nothing is
36
+ * invented on the way in: a component that becomes a component + method paints
37
+ * Make until the author picks another. And nothing is lost on the way out: the
38
+ * morph never writes `tags`, so the tag stays stored, inert on any other kind
39
+ * (the ring is painted for `kind === 'method'` only, the legend row reads the
40
+ * `wardley:method` role), and is back in force when the artefact morphs into a
41
+ * method again. No code in `afterMorph` for it: the ring is the renderer's, the
42
+ * size and the name's place come from the presets like every other member's.
28
43
  *
29
- * ## The two kinds deliberately left out
44
+ * ## The one kind deliberately left out
30
45
  *
31
46
  * - **`anchor`** is the user, and the need they have. It is a role of its own
32
47
  * precisely because it is NOT a component (`roles.ts`): it is what the value
33
48
  * chain hangs from, not a link in it. A menu offering "turn this user into a
34
49
  * pipeline" would invite a map with no anchor at all — the one thing a
35
50
  * Wardley map cannot be read without.
36
- * - **`method`** is not an artefact but an annotation ON one: the coloured ring
37
- * says how a component is being BUILT (buy / build / outsource), and its fill
38
- * encodes the choice. Morphing it away would silently discard that decision,
39
- * and morphing into it would have to invent one.
40
51
  *
41
52
  * `handle` is in no family either, and does not need excluding by name: it is
42
53
  * not an artefact at all, so nothing selects it and {@link wardleyNodeOfComponent}
@@ -44,9 +55,10 @@ import { WARDLEY_ROLE } from './roles.js';
44
55
  */
45
56
  export const WARDLEY_MORPH_FAMILIES = [
46
57
  // Declaration order is menu order, and it opens on the plain component: the
47
- // undecorated artefact is the honest first draft, and the three others are
58
+ // undecorated artefact is the honest first draft, and the others are
48
59
  // refinements of it — the same call `commands.ts` makes about the senior row.
49
- ['component', 'market', 'ecosystem', 'pipeline'],
60
+ // The method comes next (PO decision): it is the same circle, decorated.
61
+ ['component', 'method', 'market', 'ecosystem', 'pipeline'],
50
62
  ];
51
63
  /** The same set, as a lookup — the gate every resolution below runs through. */
52
64
  const MORPH_KINDS = new Set(WARDLEY_MORPH_FAMILIES.flat());
@@ -110,7 +122,9 @@ function* descendants(group) {
110
122
  * - with a ROLE, which leaves out the market's three neutral dots — they are the
111
123
  * glyph's wiring and carry none by construction (`presets.ts`);
112
124
  * - whose kind is in the family, which leaves out the pipeline's `handle` and
113
- * any `anchor` or `method` somebody grouped in beside the artefact.
125
+ * any `anchor` somebody grouped in beside the artefact. A method grouped in
126
+ * beside a component is a second member of the family, so that group is the
127
+ * two-candidate refusal below.
114
128
  *
115
129
  * TWO candidates is a REFUSAL rather than a first-wins pick, exactly as C4's
116
130
  * resolution refuses a group of two components: morphing "it" would mean
package/dist/natures.d.ts CHANGED
@@ -18,15 +18,26 @@ import type { UniverseTagDefs } from '@formicoidea/labre-core/shared/services';
18
18
  * with a different `packId` that merges with this one, with no library release.
19
19
  * Shipping one real pack is what keeps that mechanism honest.
20
20
  *
21
- * ## Why it applies to `wardley:component` and not to `'*'`
21
+ * ## Why it applies to `wardley:component` and `wardley:pipeline`, not `'*'`
22
22
  *
23
23
  * A nature qualifies a component. `market`, `ecosystem` and `method`
24
- * specialise `wardley:component`, so they get it for free through `roleIsA` — that is the
25
- * entire reason role hierarchy is data. The `anchor` (a user / need) is
26
- * deliberately NOT a child of `component` and is deliberately NOT qualified
27
- * here: a need has no nature, it has a demand. The map itself, the change
28
- * arrow, the inertia bar and the labels are chrome or annotations and are not
29
- * candidates either.
24
+ * specialise `wardley:component`, so they get it for free through `roleIsA` —
25
+ * that is the entire reason role hierarchy is data. The `anchor` (a user /
26
+ * need) is deliberately NOT a child of `component` and is deliberately NOT
27
+ * qualified here: a need has no nature, it has a demand. The map itself, the
28
+ * change arrow, the inertia bar and the labels are chrome or annotations and
29
+ * are not candidates either.
30
+ *
31
+ * A pipeline is named here explicitly (ADR 0046, amendment of 2026-11-04): it
32
+ * is a component spread over a range of evolution, so it is an activity, data,
33
+ * a practice or knowledge exactly as a circle is. It is listed in `appliesTo`
34
+ * rather than given `parent: component` because the role tree is read by more
35
+ * than this tag: W3 (`rules.ts`) compares role PAIRS through `roleIsA`, and a
36
+ * pipeline is a bar components are placed ON (`presets.ts`), so a pipeline that
37
+ * IS a component would turn every component sitting on it into an overlap
38
+ * finding. The handle (`wardley:handle`) stays out: it is the connection
39
+ * point, not a thing with a nature, and leaving it out is what sends the
40
+ * qualification dropdown to the pipeline body whichever of the two is selected.
30
41
  *
31
42
  * ## Why `cardinality: 'single'`
32
43
  *
package/dist/natures.js CHANGED
@@ -18,15 +18,26 @@ import { WARDLEY_ROLE } from './roles.js';
18
18
  * with a different `packId` that merges with this one, with no library release.
19
19
  * Shipping one real pack is what keeps that mechanism honest.
20
20
  *
21
- * ## Why it applies to `wardley:component` and not to `'*'`
21
+ * ## Why it applies to `wardley:component` and `wardley:pipeline`, not `'*'`
22
22
  *
23
23
  * A nature qualifies a component. `market`, `ecosystem` and `method`
24
- * specialise `wardley:component`, so they get it for free through `roleIsA` — that is the
25
- * entire reason role hierarchy is data. The `anchor` (a user / need) is
26
- * deliberately NOT a child of `component` and is deliberately NOT qualified
27
- * here: a need has no nature, it has a demand. The map itself, the change
28
- * arrow, the inertia bar and the labels are chrome or annotations and are not
29
- * candidates either.
24
+ * specialise `wardley:component`, so they get it for free through `roleIsA` —
25
+ * that is the entire reason role hierarchy is data. The `anchor` (a user /
26
+ * need) is deliberately NOT a child of `component` and is deliberately NOT
27
+ * qualified here: a need has no nature, it has a demand. The map itself, the
28
+ * change arrow, the inertia bar and the labels are chrome or annotations and
29
+ * are not candidates either.
30
+ *
31
+ * A pipeline is named here explicitly (ADR 0046, amendment of 2026-11-04): it
32
+ * is a component spread over a range of evolution, so it is an activity, data,
33
+ * a practice or knowledge exactly as a circle is. It is listed in `appliesTo`
34
+ * rather than given `parent: component` because the role tree is read by more
35
+ * than this tag: W3 (`rules.ts`) compares role PAIRS through `roleIsA`, and a
36
+ * pipeline is a bar components are placed ON (`presets.ts`), so a pipeline that
37
+ * IS a component would turn every component sitting on it into an overlap
38
+ * finding. The handle (`wardley:handle`) stays out: it is the connection
39
+ * point, not a thing with a nature, and leaving it out is what sends the
40
+ * qualification dropdown to the pipeline body whichever of the two is selected.
30
41
  *
31
42
  * ## Why `cardinality: 'single'`
32
43
  *
@@ -157,7 +168,7 @@ export const WARDLEY_TAG_DEFS = {
157
168
  description: 'What kind of thing this component is: an activity, data, a practice or knowledge.',
158
169
  descriptionKey: 'com.labre.wardley.tag.nature.description',
159
170
  cardinality: 'single',
160
- appliesTo: [WARDLEY_ROLE.component],
171
+ appliesTo: [WARDLEY_ROLE.component, WARDLEY_ROLE.pipeline],
161
172
  // No `order`, on any tag of this pack: an absent order sorts by SEED
162
173
  // order, which is what puts the library's pack ahead of a client's
163
174
  // extension without either having to know about the other. A number here
package/dist/presets.js CHANGED
@@ -88,8 +88,11 @@ export const WARDLEY_NODE_LABEL = {
88
88
  export const wardleyNodeLabelKey = (kind) => `com.labre.wardley.seed.${kind}`;
89
89
  /**
90
90
  * The fill a kind is born with. White for every circle that means "a thing on
91
- * the value chain"; the method's grey is the one that carries meaning — it
92
- * ENCODES the chosen method and stays editable from the toolbar.
91
+ * the value chain". The method's grey no longer carries meaning: since ADR 0046
92
+ * the method is the `wardley:method` tag and the ring painted from it (Make
93
+ * when untagged) covers this fill. It stays the method's birth fill, and the
94
+ * morph writes it like any other preset key, so a morphed method and a drawn
95
+ * one are the same stack of props.
93
96
  */
94
97
  const NODE_FILL_OF = {
95
98
  component: NODE_FILL,
@@ -674,6 +677,7 @@ export function wardleyMorphProps(kind) {
674
677
  */
675
678
  export const WARDLEY_MORPHABLE_KINDS = [
676
679
  'component',
680
+ 'method',
677
681
  'market',
678
682
  'ecosystem',
679
683
  'pipeline',
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@formicoidea/labre-framework-wardley",
3
3
  "description": "Labre wardley framework for @formicoidea/labre-core.",
4
- "version": "3.0.0",
4
+ "version": "3.3.0",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
7
  "author": "lajola",
@@ -35,7 +35,7 @@
35
35
  "dist"
36
36
  ],
37
37
  "dependencies": {
38
- "@formicoidea/labre-core": "3.0.0",
38
+ "@formicoidea/labre-core": "3.3.0",
39
39
  "lit": "^3.2.0"
40
40
  }
41
41
  }