@medicine-wheel/importance-unit 0.17.2 → 0.17.3
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 +13 -10
- package/dist/circle-tracking.d.ts.map +1 -1
- package/dist/circle-tracking.js +2 -1
- package/dist/circle-tracking.js.map +1 -1
- package/dist/epistemic-weight.d.ts +43 -17
- package/dist/epistemic-weight.d.ts.map +1 -1
- package/dist/epistemic-weight.js +55 -26
- package/dist/epistemic-weight.js.map +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -2
- package/dist/index.js.map +1 -1
- package/dist/schemas.d.ts +7 -4
- package/dist/schemas.d.ts.map +1 -1
- package/dist/schemas.js +1 -0
- package/dist/schemas.js.map +1 -1
- package/dist/types.d.ts +14 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/unit.d.ts +3 -3
- package/dist/unit.d.ts.map +1 -1
- package/dist/unit.js +9 -5
- package/dist/unit.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ The ImportanceUnit is this suite's relational unit of knowledge, after Wilson's
|
|
|
10
10
|
|
|
11
11
|
## Overview
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
By default this package ranks no source of knowing above another: every unit starts at the same weight, and weight grows by circling back (#155). Wilson holds empirical knowledge crucial but not the only way of knowing (2008, p. 58), needs both empirical and other forms (p. 111), and declines to judge any paradigm better or worse than another (p. 35). Of the circle itself: all parts are equal, and none can claim superiority over the rest (p. 70). The package's earlier order, dream above land above vision above code, is its own design and is kept as the named profile `dream-first`, so units stored before #155 keep their weights.
|
|
14
14
|
|
|
15
15
|
### What it provides
|
|
16
16
|
|
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
createUnit, circleBack, archive,
|
|
46
46
|
|
|
47
47
|
// Weight
|
|
48
|
-
computeWeight,
|
|
48
|
+
computeWeight, WEIGHT_PROFILES, DEFAULT_WEIGHT_PROFILE,
|
|
49
49
|
|
|
50
50
|
// Accountability
|
|
51
51
|
linkAccountability, findGaps,
|
|
@@ -66,23 +66,26 @@ const unit = createUnit({
|
|
|
66
66
|
axiologicalPillar: 'epistemology',
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
-
// unit.epistemicWeight === 0.
|
|
69
|
+
// unit.epistemicWeight === 0.7 (profile `equal`: every source starts here)
|
|
70
|
+
// unit.weightProfile === 'equal'
|
|
70
71
|
// unit.circleDepth === 1
|
|
71
72
|
|
|
72
73
|
// Circle back with a refinement
|
|
73
74
|
const deepened = circleBack(unit, 'Patience is not waiting — it is attending');
|
|
74
75
|
// deepened.circleDepth === 2
|
|
75
|
-
// deepened.epistemicWeight > 0.
|
|
76
|
+
// deepened.epistemicWeight > 0.7 (depth bonus applied)
|
|
76
77
|
```
|
|
77
78
|
|
|
78
79
|
## Epistemic Weight Model
|
|
79
80
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
|
83
|
-
|
|
84
|
-
| `
|
|
85
|
-
| `
|
|
81
|
+
Base weights come from a named profile (`WEIGHT_PROFILES`). Each profile says whose it is.
|
|
82
|
+
|
|
83
|
+
| Profile | dream | land | vision | code | Whose |
|
|
84
|
+
|---|---|---|---|---|---|
|
|
85
|
+
| `equal` (default) | 0.70 | 0.70 | 0.70 | 0.70 | Default since #155: no source ranked above another |
|
|
86
|
+
| `dream-first` | 0.85 | 0.75 | 0.65 | 0.50 | This package's earlier design; ours, not Wilson's |
|
|
87
|
+
|
|
88
|
+
A unit records its profile in `weightProfile`. A unit stored before #155 has none: it was weighted with `dream-first` and keeps that profile when circled back to, so no stored weight changes meaning. Through MCP, the profile is written to the node's metadata beside `epistemicWeight`.
|
|
86
89
|
|
|
87
90
|
Weight increases with `circleDepth` using diminishing returns (logarithmic scaling). The first return yields more insight than the tenth, though all returns matter. Weight never exceeds 1.0.
|
|
88
91
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle-tracking.d.ts","sourceRoot":"","sources":["../src/circle-tracking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAmC,MAAM,YAAY,CAAC;AAKlF;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,cAAc,EACpB,SAAS,EAAE,aAAa,GACvB,cAAc,
|
|
1
|
+
{"version":3,"file":"circle-tracking.d.ts","sourceRoot":"","sources":["../src/circle-tracking.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAmC,MAAM,YAAY,CAAC;AAKlF;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,cAAc,EACpB,SAAS,EAAE,aAAa,GACvB,cAAc,CA0BhB;AAID;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAC9B,IAAI,EAAE,cAAc,EACpB,KAAK,EAAE,MAAM,GACZ,cAAc,CAchB;AAID;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,wCAAwC;IACxC,YAAY,EAAE,MAAM,CAAC;IACrB,qCAAqC;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,WAAW,EAAE,OAAO,CAAC;IACrB,+DAA+D;IAC/D,kBAAkB,EAAE,MAAM,CAAC;IAC3B,yCAAyC;IACzC,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,cAAc,GAAG,iBAAiB,CA2BvE;AAID;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,qCAAqC;IACrC,UAAU,EAAE,OAAO,CAAC;IACpB,2CAA2C;IAC3C,wBAAwB,EAAE,MAAM,CAAC;IACjC,sCAAsC;IACtC,eAAe,EAAE,MAAM,CAAC;IACxB,oCAAoC;IACpC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,cAAc,GAAG,kBAAkB,CA2BzE"}
|
package/dist/circle-tracking.js
CHANGED
|
@@ -41,7 +41,8 @@ function incrementCircle(unit, direction) {
|
|
|
41
41
|
...unit,
|
|
42
42
|
circleDepth: newDepth,
|
|
43
43
|
direction,
|
|
44
|
-
epistemicWeight: (0, epistemic_weight_js_1.computeWeight)(unit.source, newDepth),
|
|
44
|
+
epistemicWeight: (0, epistemic_weight_js_1.computeWeight)(unit.source, newDepth, (0, epistemic_weight_js_1.profileOf)(unit)),
|
|
45
|
+
weightProfile: (0, epistemic_weight_js_1.profileOf)(unit),
|
|
45
46
|
ceremonyState,
|
|
46
47
|
meta: {
|
|
47
48
|
...unit.meta,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"circle-tracking.js","sourceRoot":"","sources":["../src/circle-tracking.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AAgBH,
|
|
1
|
+
{"version":3,"file":"circle-tracking.js","sourceRoot":"","sources":["../src/circle-tracking.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AAgBH,0CA6BC;AAWD,4CAiBC;AA4BD,0CA2BC;AA6BD,4CA2BC;AApLD,+DAAiE;AAEjE,+EAA+E;AAE/E;;;;;;;GAOG;AACH,SAAgB,eAAe,CAC7B,IAAoB,EACpB,SAAwB;IAExB,MAAM,QAAQ,GAAG,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;IACtC,MAAM,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,gBAAgB,IAAI,EAAE,CAAC;IAC3D,MAAM,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC;QAChD,CAAC,CAAC,OAAO;QACT,CAAC,CAAC,CAAC,GAAG,OAAO,EAAE,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CAAC;SAAM,IAAI,eAAe,GAAG,IAAI,EAAE,CAAC;QAClC,QAAQ,GAAG,sEAAsE;cAC7E,gEAAgE,CAAC;IACvE,CAAC;SAAM,CAAC;QACN,QAAQ,GAAG,4DAA4D,CAAC;IAC1E,CAAC;IAED,OAAO;QACL,UAAU;QACV,wBAAwB;QACxB,eAAe;QACf,QAAQ;KACT,CAAC;AACJ,CAAC"}
|
|
@@ -1,24 +1,47 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @medicine-wheel/importance-unit — Epistemic Weight Computation
|
|
3
3
|
*
|
|
4
|
-
* Computes epistemic weight for ImportanceUnits
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* - code: 0.50 (technical/implementation knowing)
|
|
4
|
+
* Computes epistemic weight for ImportanceUnits from a named weight
|
|
5
|
+
* profile and the unit's circle depth.
|
|
6
|
+
*
|
|
7
|
+
* By default no source is ranked above another (profile `equal`): weight
|
|
8
|
+
* grows only by circling back. Of the circle, Wilson writes that all parts
|
|
9
|
+
* are equal and none can claim superiority over the rest (2008, p. 70). He
|
|
10
|
+
* needs both empirical and other forms of knowing (pp. 58, 111) and
|
|
11
|
+
* declines to judge any paradigm better or worse than another (p. 35). The package's earlier order, dream above
|
|
12
|
+
* land above vision above code, is kept as the profile `dream-first`, our
|
|
13
|
+
* own design and unattributed, so that units stored before #155 keep the
|
|
14
|
+
* weights they were given.
|
|
16
15
|
*
|
|
17
16
|
* Weight increases with circleDepth using diminishing returns
|
|
18
17
|
* (logarithmic scaling), never exceeding 1.0.
|
|
19
18
|
*/
|
|
20
|
-
import type { EpistemicSource } from './types.js';
|
|
21
|
-
/**
|
|
19
|
+
import type { EpistemicSource, WeightProfileId } from './types.js';
|
|
20
|
+
/** A named set of base weights, with where it comes from. */
|
|
21
|
+
export interface WeightProfile {
|
|
22
|
+
id: WeightProfileId;
|
|
23
|
+
title: string;
|
|
24
|
+
weights: Readonly<Record<EpistemicSource, number>>;
|
|
25
|
+
provenance: string;
|
|
26
|
+
}
|
|
27
|
+
/** The weight profiles this package knows. Each one says whose it is. */
|
|
28
|
+
export declare const WEIGHT_PROFILES: Readonly<Record<WeightProfileId, WeightProfile>>;
|
|
29
|
+
/** The profile new units are weighted with. */
|
|
30
|
+
export declare const DEFAULT_WEIGHT_PROFILE: WeightProfileId;
|
|
31
|
+
/**
|
|
32
|
+
* The profile a unit stored before #155 was weighted with. Such units carry
|
|
33
|
+
* no `weightProfile`; reading them with this profile keeps their weights
|
|
34
|
+
* unchanged when they are circled back to.
|
|
35
|
+
*/
|
|
36
|
+
export declare const LEGACY_WEIGHT_PROFILE: WeightProfileId;
|
|
37
|
+
/** The profile a unit was weighted with: its own, or the legacy one if it has none. */
|
|
38
|
+
export declare function profileOf(unit: {
|
|
39
|
+
weightProfile?: WeightProfileId;
|
|
40
|
+
}): WeightProfileId;
|
|
41
|
+
/**
|
|
42
|
+
* Base weights of the default profile.
|
|
43
|
+
* @deprecated Read `WEIGHT_PROFILES[profile].weights` (#155).
|
|
44
|
+
*/
|
|
22
45
|
export declare const BASE_WEIGHTS: Record<EpistemicSource, number>;
|
|
23
46
|
/**
|
|
24
47
|
* Compute the full epistemic weight for a given source and depth.
|
|
@@ -27,9 +50,10 @@ export declare const BASE_WEIGHTS: Record<EpistemicSource, number>;
|
|
|
27
50
|
*
|
|
28
51
|
* @param source - The epistemic source dimension
|
|
29
52
|
* @param circleDepth - How many times this topic has been circled
|
|
53
|
+
* @param profile - The weight profile (default: `equal`)
|
|
30
54
|
* @returns Epistemic weight between 0.0 and 1.0
|
|
31
55
|
*/
|
|
32
|
-
export declare function computeWeight(source: EpistemicSource, circleDepth: number): number;
|
|
56
|
+
export declare function computeWeight(source: EpistemicSource, circleDepth: number, profile?: WeightProfileId): number;
|
|
33
57
|
/**
|
|
34
58
|
* Adjust weight for a different source dimension.
|
|
35
59
|
*
|
|
@@ -39,9 +63,10 @@ export declare function computeWeight(source: EpistemicSource, circleDepth: numb
|
|
|
39
63
|
* @param currentWeight - The current epistemic weight
|
|
40
64
|
* @param currentSource - The current source dimension
|
|
41
65
|
* @param newSource - The new source dimension
|
|
66
|
+
* @param profile - The weight profile (default: `equal`)
|
|
42
67
|
* @returns Adjusted weight for the new source
|
|
43
68
|
*/
|
|
44
|
-
export declare function adjustForSource(currentWeight: number, currentSource: EpistemicSource, newSource: EpistemicSource): number;
|
|
69
|
+
export declare function adjustForSource(currentWeight: number, currentSource: EpistemicSource, newSource: EpistemicSource, profile?: WeightProfileId): number;
|
|
45
70
|
/**
|
|
46
71
|
* Adjust weight for a new circle depth.
|
|
47
72
|
*
|
|
@@ -50,7 +75,8 @@ export declare function adjustForSource(currentWeight: number, currentSource: Ep
|
|
|
50
75
|
*
|
|
51
76
|
* @param source - The epistemic source dimension
|
|
52
77
|
* @param newDepth - The new circle depth
|
|
78
|
+
* @param profile - The weight profile (default: `equal`)
|
|
53
79
|
* @returns Recalculated weight
|
|
54
80
|
*/
|
|
55
|
-
export declare function adjustForDepth(source: EpistemicSource, newDepth: number): number;
|
|
81
|
+
export declare function adjustForDepth(source: EpistemicSource, newDepth: number, profile?: WeightProfileId): number;
|
|
56
82
|
//# sourceMappingURL=epistemic-weight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epistemic-weight.d.ts","sourceRoot":"","sources":["../src/epistemic-weight.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"epistemic-weight.d.ts","sourceRoot":"","sources":["../src/epistemic-weight.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAInE,6DAA6D;AAC7D,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,eAAe,CAAC;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,CAAC;IACnD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,yEAAyE;AACzE,eAAO,MAAM,eAAe,EAAE,QAAQ,CAAC,MAAM,CAAC,eAAe,EAAE,aAAa,CAAC,CAe5E,CAAC;AAEF,+CAA+C;AAC/C,eAAO,MAAM,sBAAsB,EAAE,eAAyB,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,qBAAqB,EAAE,eAA+B,CAAC;AAEpE,uFAAuF;AACvF,wBAAgB,SAAS,CAAC,IAAI,EAAE;IAAE,aAAa,CAAC,EAAE,eAAe,CAAA;CAAE,GAAG,eAAe,CAEpF;AAID;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,eAAe,EAAE,MAAM,CAA0D,CAAC;AAyBpH;;;;;;;;;GASG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,eAAe,EACvB,WAAW,EAAE,MAAM,EACnB,OAAO,GAAE,eAAwC,GAChD,MAAM,CAIR;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,eAAe,CAC7B,aAAa,EAAE,MAAM,EACrB,aAAa,EAAE,eAAe,EAC9B,SAAS,EAAE,eAAe,EAC1B,OAAO,GAAE,eAAwC,GAChD,MAAM,CAMR;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,eAAe,EACvB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,eAAwC,GAChD,MAAM,CAER"}
|
package/dist/epistemic-weight.js
CHANGED
|
@@ -2,35 +2,60 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* @medicine-wheel/importance-unit — Epistemic Weight Computation
|
|
4
4
|
*
|
|
5
|
-
* Computes epistemic weight for ImportanceUnits
|
|
6
|
-
*
|
|
7
|
-
* and embodied knowledge above rational analysis.
|
|
8
|
-
* That ranking is this package's design, not Wilson's: he holds empirical knowledge
|
|
9
|
-
* crucial but not the only way of knowing (2008, p. 58) and needs both empirical
|
|
10
|
-
* and other forms (p. 111), ranking none above the others.
|
|
5
|
+
* Computes epistemic weight for ImportanceUnits from a named weight
|
|
6
|
+
* profile and the unit's circle depth.
|
|
11
7
|
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
8
|
+
* By default no source is ranked above another (profile `equal`): weight
|
|
9
|
+
* grows only by circling back. Of the circle, Wilson writes that all parts
|
|
10
|
+
* are equal and none can claim superiority over the rest (2008, p. 70). He
|
|
11
|
+
* needs both empirical and other forms of knowing (pp. 58, 111) and
|
|
12
|
+
* declines to judge any paradigm better or worse than another (p. 35). The package's earlier order, dream above
|
|
13
|
+
* land above vision above code, is kept as the profile `dream-first`, our
|
|
14
|
+
* own design and unattributed, so that units stored before #155 keep the
|
|
15
|
+
* weights they were given.
|
|
17
16
|
*
|
|
18
17
|
* Weight increases with circleDepth using diminishing returns
|
|
19
18
|
* (logarithmic scaling), never exceeding 1.0.
|
|
20
19
|
*/
|
|
21
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.BASE_WEIGHTS = void 0;
|
|
21
|
+
exports.BASE_WEIGHTS = exports.LEGACY_WEIGHT_PROFILE = exports.DEFAULT_WEIGHT_PROFILE = exports.WEIGHT_PROFILES = void 0;
|
|
22
|
+
exports.profileOf = profileOf;
|
|
23
23
|
exports.computeWeight = computeWeight;
|
|
24
24
|
exports.adjustForSource = adjustForSource;
|
|
25
25
|
exports.adjustForDepth = adjustForDepth;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
/** The weight profiles this package knows. Each one says whose it is. */
|
|
27
|
+
exports.WEIGHT_PROFILES = {
|
|
28
|
+
equal: {
|
|
29
|
+
id: 'equal',
|
|
30
|
+
title: 'Equal: no source ranked above another',
|
|
31
|
+
weights: { dream: 0.7, land: 0.7, vision: 0.7, code: 0.7 },
|
|
32
|
+
provenance: 'Default since #155. All parts of the circle are equal (Wilson 2008, p. 70); he needs both empirical and other forms of knowing (pp. 58, 111) and declines to judge paradigms better or worse (p. 35).',
|
|
33
|
+
},
|
|
34
|
+
'dream-first': {
|
|
35
|
+
id: 'dream-first',
|
|
36
|
+
title: 'Dream first: dream, land, vision, code',
|
|
37
|
+
weights: { dream: 0.85, land: 0.75, vision: 0.65, code: 0.5 },
|
|
38
|
+
provenance: "This package's design before #155; ours, not Wilson's, and unattributed. Units stored without a profile were weighted with it.",
|
|
39
|
+
},
|
|
33
40
|
};
|
|
41
|
+
/** The profile new units are weighted with. */
|
|
42
|
+
exports.DEFAULT_WEIGHT_PROFILE = 'equal';
|
|
43
|
+
/**
|
|
44
|
+
* The profile a unit stored before #155 was weighted with. Such units carry
|
|
45
|
+
* no `weightProfile`; reading them with this profile keeps their weights
|
|
46
|
+
* unchanged when they are circled back to.
|
|
47
|
+
*/
|
|
48
|
+
exports.LEGACY_WEIGHT_PROFILE = 'dream-first';
|
|
49
|
+
/** The profile a unit was weighted with: its own, or the legacy one if it has none. */
|
|
50
|
+
function profileOf(unit) {
|
|
51
|
+
return unit.weightProfile ?? exports.LEGACY_WEIGHT_PROFILE;
|
|
52
|
+
}
|
|
53
|
+
// ── Base Weights ────────────────────────────────────────────────────────────
|
|
54
|
+
/**
|
|
55
|
+
* Base weights of the default profile.
|
|
56
|
+
* @deprecated Read `WEIGHT_PROFILES[profile].weights` (#155).
|
|
57
|
+
*/
|
|
58
|
+
exports.BASE_WEIGHTS = { ...exports.WEIGHT_PROFILES[exports.DEFAULT_WEIGHT_PROFILE].weights };
|
|
34
59
|
/** Maximum depth bonus that can be added to base weight */
|
|
35
60
|
const MAX_DEPTH_BONUS = 0.15;
|
|
36
61
|
/** Logarithmic scaling factor for depth bonus */
|
|
@@ -58,10 +83,11 @@ function depthBonus(circleDepth) {
|
|
|
58
83
|
*
|
|
59
84
|
* @param source - The epistemic source dimension
|
|
60
85
|
* @param circleDepth - How many times this topic has been circled
|
|
86
|
+
* @param profile - The weight profile (default: `equal`)
|
|
61
87
|
* @returns Epistemic weight between 0.0 and 1.0
|
|
62
88
|
*/
|
|
63
|
-
function computeWeight(source, circleDepth) {
|
|
64
|
-
const base = exports.
|
|
89
|
+
function computeWeight(source, circleDepth, profile = exports.DEFAULT_WEIGHT_PROFILE) {
|
|
90
|
+
const base = exports.WEIGHT_PROFILES[profile].weights[source];
|
|
65
91
|
const bonus = depthBonus(circleDepth);
|
|
66
92
|
return Math.min(1.0, base + bonus);
|
|
67
93
|
}
|
|
@@ -74,12 +100,14 @@ function computeWeight(source, circleDepth) {
|
|
|
74
100
|
* @param currentWeight - The current epistemic weight
|
|
75
101
|
* @param currentSource - The current source dimension
|
|
76
102
|
* @param newSource - The new source dimension
|
|
103
|
+
* @param profile - The weight profile (default: `equal`)
|
|
77
104
|
* @returns Adjusted weight for the new source
|
|
78
105
|
*/
|
|
79
|
-
function adjustForSource(currentWeight, currentSource, newSource) {
|
|
80
|
-
const
|
|
106
|
+
function adjustForSource(currentWeight, currentSource, newSource, profile = exports.DEFAULT_WEIGHT_PROFILE) {
|
|
107
|
+
const weights = exports.WEIGHT_PROFILES[profile].weights;
|
|
108
|
+
const currentBase = weights[currentSource];
|
|
81
109
|
const bonus = currentWeight - currentBase;
|
|
82
|
-
const newBase =
|
|
110
|
+
const newBase = weights[newSource];
|
|
83
111
|
return Math.min(1.0, Math.max(0, newBase + Math.max(0, bonus)));
|
|
84
112
|
}
|
|
85
113
|
/**
|
|
@@ -90,9 +118,10 @@ function adjustForSource(currentWeight, currentSource, newSource) {
|
|
|
90
118
|
*
|
|
91
119
|
* @param source - The epistemic source dimension
|
|
92
120
|
* @param newDepth - The new circle depth
|
|
121
|
+
* @param profile - The weight profile (default: `equal`)
|
|
93
122
|
* @returns Recalculated weight
|
|
94
123
|
*/
|
|
95
|
-
function adjustForDepth(source, newDepth) {
|
|
96
|
-
return computeWeight(source, newDepth);
|
|
124
|
+
function adjustForDepth(source, newDepth, profile = exports.DEFAULT_WEIGHT_PROFILE) {
|
|
125
|
+
return computeWeight(source, newDepth, profile);
|
|
97
126
|
}
|
|
98
127
|
//# sourceMappingURL=epistemic-weight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"epistemic-weight.js","sourceRoot":"","sources":["../src/epistemic-weight.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"epistemic-weight.js","sourceRoot":"","sources":["../src/epistemic-weight.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;GAiBG;;;AA2CH,8BAEC;AA2CD,sCAQC;AAcD,0CAWC;AAaD,wCAMC;AA9HD,yEAAyE;AAC5D,QAAA,eAAe,GAAqD;IAC/E,KAAK,EAAE;QACL,EAAE,EAAE,OAAO;QACX,KAAK,EAAE,uCAAuC;QAC9C,OAAO,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE;QAC1D,UAAU,EACR,uMAAuM;KAC1M;IACD,aAAa,EAAE;QACb,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,wCAAwC;QAC/C,OAAO,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,GAAG,EAAE;QAC7D,UAAU,EACR,gIAAgI;KACnI;CACF,CAAC;AAEF,+CAA+C;AAClC,QAAA,sBAAsB,GAAoB,OAAO,CAAC;AAE/D;;;;GAIG;AACU,QAAA,qBAAqB,GAAoB,aAAa,CAAC;AAEpE,uFAAuF;AACvF,SAAgB,SAAS,CAAC,IAAyC;IACjE,OAAO,IAAI,CAAC,aAAa,IAAI,6BAAqB,CAAC;AACrD,CAAC;AAED,+EAA+E;AAE/E;;;GAGG;AACU,Q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AAE,KAAK,CAAC,CAAC,CAAC,CAAC;AAClE,CAAC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,cAAc,CAC5B,MAAuB,EACvB,QAAgB,EAChB,UAA2B,8BAAsB;IAEjD,OAAO,aAAa,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;AAClD,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,11 +8,12 @@
|
|
|
8
8
|
*
|
|
9
9
|
* @packageDocumentation
|
|
10
10
|
*/
|
|
11
|
-
export type { EpistemicSource, AccountabilityLinkType, AxiologicalPillar, AccountabilityLink, CircleRefinement, GatingConditionStatus, CeremonyState, ImportanceUnitContent, ImportanceUnitMeta, ImportanceUnit, CreateUnitInput, UpdateUnitInput, } from './types.js';
|
|
11
|
+
export type { EpistemicSource, WeightProfileId, AccountabilityLinkType, AxiologicalPillar, AccountabilityLink, CircleRefinement, GatingConditionStatus, CeremonyState, ImportanceUnitContent, ImportanceUnitMeta, ImportanceUnit, CreateUnitInput, UpdateUnitInput, } from './types.js';
|
|
12
12
|
export { EpistemicSourceSchema, AccountabilityLinkTypeSchema, AxiologicalPillarSchema, AccountabilityLinkSchema, CircleRefinementSchema, GatingConditionStatusSchema, CeremonyStateSchema, ImportanceUnitContentSchema, ImportanceUnitMetaSchema, ImportanceUnitSchema, CreateUnitInputSchema, UpdateUnitInputSchema, } from './schemas.js';
|
|
13
13
|
export type { ValidatedImportanceUnit, ValidatedAccountabilityLink, ValidatedCircleRefinement, ValidatedGatingConditionStatus, ValidatedCeremonyState, ValidatedCreateUnitInput, ValidatedUpdateUnitInput, } from './schemas.js';
|
|
14
14
|
export { createUnit, updateUnit, circleBack, archive, } from './unit.js';
|
|
15
|
-
export {
|
|
15
|
+
export type { WeightProfile } from './epistemic-weight.js';
|
|
16
|
+
export { BASE_WEIGHTS, WEIGHT_PROFILES, DEFAULT_WEIGHT_PROFILE, LEGACY_WEIGHT_PROFILE, profileOf, computeWeight, adjustForSource, adjustForDepth, } from './epistemic-weight.js';
|
|
16
17
|
export { linkAccountability, resolveLinks, findGaps, } from './accountability.js';
|
|
17
18
|
export type { AccountabilityGap } from './accountability.js';
|
|
18
19
|
export { incrementCircle, recordRefinement, detectDeepening, detectStagnation, } from './circle-tracking.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,YAAY,EACV,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,GAChB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,cAAc,CAAC;AAGtB,YAAY,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,OAAO,GACR,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,YAAY,EACZ,aAAa,EACb,eAAe,EACf,cAAc,GACf,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,YAAY,EACV,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,qBAAqB,EACrB,aAAa,EACb,qBAAqB,EACrB,kBAAkB,EAClB,cAAc,EACd,eAAe,EACf,eAAe,GAChB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAC5B,uBAAuB,EACvB,wBAAwB,EACxB,sBAAsB,EACtB,2BAA2B,EAC3B,mBAAmB,EACnB,2BAA2B,EAC3B,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,GACtB,MAAM,cAAc,CAAC;AAGtB,YAAY,EACV,uBAAuB,EACvB,2BAA2B,EAC3B,yBAAyB,EACzB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,UAAU,EACV,UAAU,EACV,UAAU,EACV,OAAO,GACR,MAAM,WAAW,CAAC;AAGnB,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EACL,YAAY,EACZ,eAAe,EACf,sBAAsB,EACtB,qBAAqB,EACrB,SAAS,EACT,aAAa,EACb,eAAe,EACf,cAAc,GACf,MAAM,uBAAuB,CAAC;AAG/B,OAAO,EACL,kBAAkB,EAClB,YAAY,EACZ,QAAQ,GACT,MAAM,qBAAqB,CAAC;AAE7B,YAAY,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAG7D,OAAO,EACL,eAAe,EACf,gBAAgB,EAChB,eAAe,EACf,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAE9B,YAAY,EACV,iBAAiB,EACjB,kBAAkB,GACnB,MAAM,sBAAsB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* @packageDocumentation
|
|
11
11
|
*/
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
exports.detectStagnation = exports.detectDeepening = exports.recordRefinement = exports.incrementCircle = exports.findGaps = exports.resolveLinks = exports.linkAccountability = exports.adjustForDepth = exports.adjustForSource = exports.computeWeight = exports.BASE_WEIGHTS = exports.archive = exports.circleBack = exports.updateUnit = exports.createUnit = exports.UpdateUnitInputSchema = exports.CreateUnitInputSchema = exports.ImportanceUnitSchema = exports.ImportanceUnitMetaSchema = exports.ImportanceUnitContentSchema = exports.CeremonyStateSchema = exports.GatingConditionStatusSchema = exports.CircleRefinementSchema = exports.AccountabilityLinkSchema = exports.AxiologicalPillarSchema = exports.AccountabilityLinkTypeSchema = exports.EpistemicSourceSchema = void 0;
|
|
13
|
+
exports.detectStagnation = exports.detectDeepening = exports.recordRefinement = exports.incrementCircle = exports.findGaps = exports.resolveLinks = exports.linkAccountability = exports.adjustForDepth = exports.adjustForSource = exports.computeWeight = exports.profileOf = exports.LEGACY_WEIGHT_PROFILE = exports.DEFAULT_WEIGHT_PROFILE = exports.WEIGHT_PROFILES = exports.BASE_WEIGHTS = exports.archive = exports.circleBack = exports.updateUnit = exports.createUnit = exports.UpdateUnitInputSchema = exports.CreateUnitInputSchema = exports.ImportanceUnitSchema = exports.ImportanceUnitMetaSchema = exports.ImportanceUnitContentSchema = exports.CeremonyStateSchema = exports.GatingConditionStatusSchema = exports.CircleRefinementSchema = exports.AccountabilityLinkSchema = exports.AxiologicalPillarSchema = exports.AccountabilityLinkTypeSchema = exports.EpistemicSourceSchema = void 0;
|
|
14
14
|
// ── Zod Schemas ─────────────────────────────────────────────────────────────
|
|
15
15
|
var schemas_js_1 = require("./schemas.js");
|
|
16
16
|
Object.defineProperty(exports, "EpistemicSourceSchema", { enumerable: true, get: function () { return schemas_js_1.EpistemicSourceSchema; } });
|
|
@@ -31,9 +31,12 @@ Object.defineProperty(exports, "createUnit", { enumerable: true, get: function (
|
|
|
31
31
|
Object.defineProperty(exports, "updateUnit", { enumerable: true, get: function () { return unit_js_1.updateUnit; } });
|
|
32
32
|
Object.defineProperty(exports, "circleBack", { enumerable: true, get: function () { return unit_js_1.circleBack; } });
|
|
33
33
|
Object.defineProperty(exports, "archive", { enumerable: true, get: function () { return unit_js_1.archive; } });
|
|
34
|
-
// ── Epistemic Weight ────────────────────────────────────────────────────────
|
|
35
34
|
var epistemic_weight_js_1 = require("./epistemic-weight.js");
|
|
36
35
|
Object.defineProperty(exports, "BASE_WEIGHTS", { enumerable: true, get: function () { return epistemic_weight_js_1.BASE_WEIGHTS; } });
|
|
36
|
+
Object.defineProperty(exports, "WEIGHT_PROFILES", { enumerable: true, get: function () { return epistemic_weight_js_1.WEIGHT_PROFILES; } });
|
|
37
|
+
Object.defineProperty(exports, "DEFAULT_WEIGHT_PROFILE", { enumerable: true, get: function () { return epistemic_weight_js_1.DEFAULT_WEIGHT_PROFILE; } });
|
|
38
|
+
Object.defineProperty(exports, "LEGACY_WEIGHT_PROFILE", { enumerable: true, get: function () { return epistemic_weight_js_1.LEGACY_WEIGHT_PROFILE; } });
|
|
39
|
+
Object.defineProperty(exports, "profileOf", { enumerable: true, get: function () { return epistemic_weight_js_1.profileOf; } });
|
|
37
40
|
Object.defineProperty(exports, "computeWeight", { enumerable: true, get: function () { return epistemic_weight_js_1.computeWeight; } });
|
|
38
41
|
Object.defineProperty(exports, "adjustForSource", { enumerable: true, get: function () { return epistemic_weight_js_1.adjustForSource; } });
|
|
39
42
|
Object.defineProperty(exports, "adjustForDepth", { enumerable: true, get: function () { return epistemic_weight_js_1.adjustForDepth; } });
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAmBH,+EAA+E;AAC/E,2CAasB;AAZpB,mHAAA,qBAAqB,OAAA;AACrB,0HAAA,4BAA4B,OAAA;AAC5B,qHAAA,uBAAuB,OAAA;AACvB,sHAAA,wBAAwB,OAAA;AACxB,oHAAA,sBAAsB,OAAA;AACtB,yHAAA,2BAA2B,OAAA;AAC3B,iHAAA,mBAAmB,OAAA;AACnB,yHAAA,2BAA2B,OAAA;AAC3B,sHAAA,wBAAwB,OAAA;AACxB,kHAAA,oBAAoB,OAAA;AACpB,mHAAA,qBAAqB,OAAA;AACrB,mHAAA,qBAAqB,OAAA;AAcvB,+EAA+E;AAC/E,qCAKmB;AAJjB,qGAAA,UAAU,OAAA;AACV,qGAAA,UAAU,OAAA;AACV,qGAAA,UAAU,OAAA;AACV,kGAAA,OAAO,OAAA;AAKT,6DAS+B;AAR7B,mHAAA,YAAY,OAAA;AACZ,sHAAA,eAAe,OAAA;AACf,6HAAA,sBAAsB,OAAA;AACtB,4HAAA,qBAAqB,OAAA;AACrB,gHAAA,SAAS,OAAA;AACT,oHAAA,aAAa,OAAA;AACb,sHAAA,eAAe,OAAA;AACf,qHAAA,cAAc,OAAA;AAGhB,+EAA+E;AAC/E,yDAI6B;AAH3B,uHAAA,kBAAkB,OAAA;AAClB,iHAAA,YAAY,OAAA;AACZ,6GAAA,QAAQ,OAAA;AAKV,+EAA+E;AAC/E,2DAK8B;AAJ5B,qHAAA,eAAe,OAAA;AACf,sHAAA,gBAAgB,OAAA;AAChB,qHAAA,eAAe,OAAA;AACf,sHAAA,gBAAgB,OAAA"}
|
package/dist/schemas.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ export declare const ImportanceUnitSchema: z.ZodObject<{
|
|
|
136
136
|
id: z.ZodString;
|
|
137
137
|
direction: z.ZodEnum<["east", "south", "west", "north"]>;
|
|
138
138
|
epistemicWeight: z.ZodNumber;
|
|
139
|
+
weightProfile: z.ZodOptional<z.ZodEnum<["equal", "dream-first"]>>;
|
|
139
140
|
source: z.ZodEnum<["land", "dream", "code", "vision"]>;
|
|
140
141
|
accountabilityLinks: z.ZodArray<z.ZodObject<{
|
|
141
142
|
targetId: z.ZodString;
|
|
@@ -256,6 +257,7 @@ export declare const ImportanceUnitSchema: z.ZodObject<{
|
|
|
256
257
|
lastCircledAt?: string | undefined;
|
|
257
258
|
traceId?: string | undefined;
|
|
258
259
|
};
|
|
260
|
+
weightProfile?: "equal" | "dream-first" | undefined;
|
|
259
261
|
ceremonyState?: {
|
|
260
262
|
quadrantsVisited: ("east" | "south" | "west" | "north")[];
|
|
261
263
|
circleComplete: boolean;
|
|
@@ -292,6 +294,7 @@ export declare const ImportanceUnitSchema: z.ZodObject<{
|
|
|
292
294
|
lastCircledAt?: string | undefined;
|
|
293
295
|
traceId?: string | undefined;
|
|
294
296
|
};
|
|
297
|
+
weightProfile?: "equal" | "dream-first" | undefined;
|
|
295
298
|
ceremonyState?: {
|
|
296
299
|
quadrantsVisited: ("east" | "south" | "west" | "north")[];
|
|
297
300
|
circleComplete: boolean;
|
|
@@ -327,9 +330,9 @@ export declare const CreateUnitInputSchema: z.ZodObject<{
|
|
|
327
330
|
}>, "many">>;
|
|
328
331
|
traceId: z.ZodOptional<z.ZodString>;
|
|
329
332
|
}, "strip", z.ZodTypeAny, {
|
|
333
|
+
direction: "east" | "south" | "west" | "north";
|
|
330
334
|
summary: string;
|
|
331
335
|
createdBy: string;
|
|
332
|
-
direction: "east" | "south" | "west" | "north";
|
|
333
336
|
source: "land" | "dream" | "code" | "vision";
|
|
334
337
|
rawInput?: string | undefined;
|
|
335
338
|
traceId?: string | undefined;
|
|
@@ -341,9 +344,9 @@ export declare const CreateUnitInputSchema: z.ZodObject<{
|
|
|
341
344
|
axiologicalPillar?: "ontology" | "epistemology" | "methodology" | "axiology" | undefined;
|
|
342
345
|
inquiryRef?: string | undefined;
|
|
343
346
|
}, {
|
|
347
|
+
direction: "east" | "south" | "west" | "north";
|
|
344
348
|
summary: string;
|
|
345
349
|
createdBy: string;
|
|
346
|
-
direction: "east" | "south" | "west" | "north";
|
|
347
350
|
source: "land" | "dream" | "code" | "vision";
|
|
348
351
|
rawInput?: string | undefined;
|
|
349
352
|
traceId?: string | undefined;
|
|
@@ -362,13 +365,13 @@ export declare const UpdateUnitInputSchema: z.ZodObject<{
|
|
|
362
365
|
axiologicalPillar: z.ZodOptional<z.ZodEnum<["ontology", "epistemology", "methodology", "axiology"]>>;
|
|
363
366
|
inquiryRef: z.ZodOptional<z.ZodString>;
|
|
364
367
|
}, "strip", z.ZodTypeAny, {
|
|
365
|
-
summary?: string | undefined;
|
|
366
368
|
direction?: "east" | "south" | "west" | "north" | undefined;
|
|
369
|
+
summary?: string | undefined;
|
|
367
370
|
axiologicalPillar?: "ontology" | "epistemology" | "methodology" | "axiology" | undefined;
|
|
368
371
|
inquiryRef?: string | undefined;
|
|
369
372
|
}, {
|
|
370
|
-
summary?: string | undefined;
|
|
371
373
|
direction?: "east" | "south" | "west" | "north" | undefined;
|
|
374
|
+
summary?: string | undefined;
|
|
372
375
|
axiologicalPillar?: "ontology" | "epistemology" | "methodology" | "axiology" | undefined;
|
|
373
376
|
inquiryRef?: string | undefined;
|
|
374
377
|
}>;
|
package/dist/schemas.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,wDAAwD;AACxD,eAAO,MAAM,qBAAqB,gDAA8C,CAAC;AAEjF,sDAAsD;AACtD,eAAO,MAAM,4BAA4B,uGAGvC,CAAC;AAEH,yDAAyD;AACzD,eAAO,MAAM,uBAAuB,oEAElC,CAAC;AAIH,iDAAiD;AACjD,eAAO,MAAM,wBAAwB;;;;;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BAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAa/B,CAAC;AAEH,4CAA4C;AAC5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUhC,CAAC;AAEH,4CAA4C;AAC5C,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;EAKhC,CAAC;AAIH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC3E,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AACnF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC/E,MAAM,MAAM,8BAA8B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AACzF,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AACzE,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAC7E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/schemas.js
CHANGED
|
@@ -64,6 +64,7 @@ exports.ImportanceUnitSchema = zod_1.z.object({
|
|
|
64
64
|
id: zod_1.z.string(),
|
|
65
65
|
direction: ontology_core_1.DirectionNameSchema,
|
|
66
66
|
epistemicWeight: zod_1.z.number().min(0).max(1),
|
|
67
|
+
weightProfile: zod_1.z.enum(['equal', 'dream-first']).optional(),
|
|
67
68
|
source: exports.EpistemicSourceSchema,
|
|
68
69
|
accountabilityLinks: zod_1.z.array(exports.AccountabilityLinkSchema),
|
|
69
70
|
circleDepth: zod_1.z.number().int().min(1),
|
package/dist/schemas.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.js","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,6BAAwB;AACxB,iEAAoE;AAEpE,+EAA+E;AAE/E,wDAAwD;AAC3C,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;AAEjF,sDAAsD;AACzC,QAAA,4BAA4B,GAAG,OAAC,CAAC,IAAI,CAAC;IACjD,gBAAgB,EAAE,SAAS,EAAE,eAAe;IAC5C,cAAc,EAAE,OAAO,EAAE,iBAAiB;CAC3C,CAAC,CAAC;AAEH,yDAAyD;AAC5C,QAAA,uBAAuB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC5C,UAAU,EAAE,cAAc,EAAE,aAAa,EAAE,UAAU;CACtD,CAAC,CAAC;AAEH,+EAA+E;AAE/E,iDAAiD;AACpC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,YAAY,EAAE,oCAA4B;IAC1C,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAEH,+CAA+C;AAClC,QAAA,sBAAsB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC7C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;IACjB,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;CACtB,CAA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ural knowing
|
|
18
18
|
*/
|
|
19
19
|
export type EpistemicSource = 'land' | 'dream' | 'code' | 'vision';
|
|
20
|
+
/** Named weight profiles (see `WEIGHT_PROFILES`). */
|
|
21
|
+
export type WeightProfileId = 'equal' | 'dream-first';
|
|
20
22
|
/**
|
|
21
23
|
* The nature of a relational link between ImportanceUnits.
|
|
22
24
|
* Not 'references' — relationships carry responsibility.
|
|
@@ -102,21 +104,26 @@ export interface ImportanceUnitMeta {
|
|
|
102
104
|
traceId?: string;
|
|
103
105
|
}
|
|
104
106
|
/**
|
|
105
|
-
* A relationally-accountable piece of meaning
|
|
106
|
-
*
|
|
107
|
+
* A relationally-accountable piece of meaning: this package's unit of
|
|
108
|
+
* knowledge, built after Wilson's relational accountability.
|
|
107
109
|
*
|
|
108
110
|
* Not a flat data object. Each unit carries epistemic weight,
|
|
109
111
|
* source dimensions, accountability links, and circle depth tracking.
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
+
* Every source starts at the same weight by default (profile `equal`, #155);
|
|
113
|
+
* weight increases with circleDepth.
|
|
112
114
|
*/
|
|
113
115
|
export interface ImportanceUnit {
|
|
114
116
|
/** Unique identifier for this importance unit */
|
|
115
117
|
id: string;
|
|
116
118
|
/** Medicine Wheel quadrant alignment */
|
|
117
119
|
direction: DirectionName;
|
|
118
|
-
/** Epistemic
|
|
120
|
+
/** Epistemic weight (0.0–1.0), from the unit's weight profile and circle depth */
|
|
119
121
|
epistemicWeight: number;
|
|
122
|
+
/**
|
|
123
|
+
* The weight profile that set `epistemicWeight`. Absent on units stored
|
|
124
|
+
* before #155: they were weighted with `dream-first` and keep it.
|
|
125
|
+
*/
|
|
126
|
+
weightProfile?: WeightProfileId;
|
|
120
127
|
/** Relational origin dimension */
|
|
121
128
|
source: EpistemicSource;
|
|
122
129
|
/** Relational strings connecting to what this unit is accountable to */
|
|
@@ -157,6 +164,8 @@ export interface CreateUnitInput {
|
|
|
157
164
|
accountabilityLinks?: AccountabilityLink[];
|
|
158
165
|
/** COAIA trace ID */
|
|
159
166
|
traceId?: string;
|
|
167
|
+
/** Weight profile for this unit (default: `equal`) */
|
|
168
|
+
weightProfile?: WeightProfileId;
|
|
160
169
|
}
|
|
161
170
|
/**
|
|
162
171
|
* Input for updating an existing ImportanceUnit.
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAInE;;;;;;GAMG;AACH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnE,qDAAqD;AACrD,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,aAAa,CAAC;AAItD;;;GAGG;AACH,MAAM,MAAM,sBAAsB,GAC9B,gBAAgB,GAChB,SAAS,GACT,eAAe,GACf,cAAc,GACd,OAAO,GACP,iBAAiB,CAAC;AAItB;;;;;GAKG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,CAAC;AAIzF;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,uFAAuF;IACvF,QAAQ,EAAE,MAAM,CAAC;IACjB,0EAA0E;IAC1E,YAAY,EAAE,sBAAsB,CAAC;IACrC,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAID;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/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E;IAClE,WAAW,EAAE,MAAM,CAAC;IACpB,+CAA+C;IAC/C,OAAO,EAAE,qBAAqB,CAAC;IAC/B,yDAAyD;IACzD,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,6EAA6E;IAC7E,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAID;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,wCAAwC;IACxC,SAAS,EAAE,aAAa,CAAC;IACzB,kCAAkC;IAClC,MAAM,EAAE,eAAe,CAAC;IACxB,0CAA0C;IAC1C,OAAO,EAAE,MAAM,CAAC;IAChB,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,mEAAmE;IACnE,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,sCAAsC;IACtC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mCAAmC;IACnC,mBAAmB,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC3C,qBAAqB;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,aAAa,CAAC,EAAE,eAAe,CAAC;CACjC;AAED;;;GAGG;AACH,MAAM,WAAW,eAAe;IAC9B,iCAAiC;IACjC,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iCAAiC;IACjC,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,gCAAgC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
package/dist/unit.d.ts
CHANGED
|
@@ -10,9 +10,9 @@ import type { ImportanceUnit, CreateUnitInput, UpdateUnitInput } from './types.j
|
|
|
10
10
|
/**
|
|
11
11
|
* Create a new ImportanceUnit from input.
|
|
12
12
|
*
|
|
13
|
-
* Sets initial epistemic weight
|
|
14
|
-
*
|
|
15
|
-
* circleDepth to 1, and stamps creation metadata.
|
|
13
|
+
* Sets the initial epistemic weight from the weight profile (default
|
|
14
|
+
* `equal`: every source starts the same), records the profile on the unit,
|
|
15
|
+
* initializes circleDepth to 1, and stamps creation metadata.
|
|
16
16
|
*
|
|
17
17
|
* @param input - The creation input
|
|
18
18
|
* @returns A fully initialized ImportanceUnit
|
package/dist/unit.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../src/unit.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAenF;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"unit.d.ts","sourceRoot":"","sources":["../src/unit.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAenF;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,GAAG,cAAc,CA0BjE;AAED;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,GAAG,cAAc,CAUvF;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,MAAM,GAAG,cAAc,CAuB9E;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,cAAc,GAAG,cAAc,CAS5D"}
|
package/dist/unit.js
CHANGED
|
@@ -26,20 +26,22 @@ function generateId() {
|
|
|
26
26
|
/**
|
|
27
27
|
* Create a new ImportanceUnit from input.
|
|
28
28
|
*
|
|
29
|
-
* Sets initial epistemic weight
|
|
30
|
-
*
|
|
31
|
-
* circleDepth to 1, and stamps creation metadata.
|
|
29
|
+
* Sets the initial epistemic weight from the weight profile (default
|
|
30
|
+
* `equal`: every source starts the same), records the profile on the unit,
|
|
31
|
+
* initializes circleDepth to 1, and stamps creation metadata.
|
|
32
32
|
*
|
|
33
33
|
* @param input - The creation input
|
|
34
34
|
* @returns A fully initialized ImportanceUnit
|
|
35
35
|
*/
|
|
36
36
|
function createUnit(input) {
|
|
37
37
|
const now = new Date().toISOString();
|
|
38
|
-
const
|
|
38
|
+
const weightProfile = input.weightProfile ?? epistemic_weight_js_1.DEFAULT_WEIGHT_PROFILE;
|
|
39
|
+
const weight = (0, epistemic_weight_js_1.computeWeight)(input.source, 1, weightProfile);
|
|
39
40
|
return {
|
|
40
41
|
id: generateId(),
|
|
41
42
|
direction: input.direction,
|
|
42
43
|
epistemicWeight: weight,
|
|
44
|
+
weightProfile,
|
|
43
45
|
source: input.source,
|
|
44
46
|
accountabilityLinks: input.accountabilityLinks ?? [],
|
|
45
47
|
circleDepth: 1,
|
|
@@ -92,11 +94,13 @@ function updateUnit(unit, input) {
|
|
|
92
94
|
function circleBack(unit, shift) {
|
|
93
95
|
const now = new Date().toISOString();
|
|
94
96
|
const newDepth = unit.circleDepth + 1;
|
|
95
|
-
const
|
|
97
|
+
const weightProfile = (0, epistemic_weight_js_1.profileOf)(unit);
|
|
98
|
+
const newWeight = (0, epistemic_weight_js_1.computeWeight)(unit.source, newDepth, weightProfile);
|
|
96
99
|
return {
|
|
97
100
|
...unit,
|
|
98
101
|
circleDepth: newDepth,
|
|
99
102
|
epistemicWeight: newWeight,
|
|
103
|
+
weightProfile,
|
|
100
104
|
content: {
|
|
101
105
|
...unit.content,
|
|
102
106
|
refinements: [
|
package/dist/unit.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unit.js","sourceRoot":"","sources":["../src/un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AAK,EAAE,SAAS,EAAE,GAAG,EAAE;aAC5C;SACF;QACD,IAAI,EAAE;YACJ,GAAG,IAAI,CAAC,IAAI;YACZ,aAAa,EAAE,GAAG;SACnB;KACF,CAAC;AACJ,CAAC;AAED;;;;;;;;;GASG;AACH,SAAgB,OAAO,CAAC,IAAoB;IAC1C,OAAO;QACL,GAAG,IAAI;QACP,aAAa,EAAE;YACb,gBAAgB,EAAE,IAAI,CAAC,aAAa,EAAE,gBAAgB,IAAI,EAAE;YAC5D,cAAc,EAAE,IAAI;YACpB,gBAAgB,EAAE,IAAI,CAAC,aAAa,EAAE,gBAAgB,IAAI,EAAE;SAC7D;KACF,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medicine-wheel/importance-unit",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.3",
|
|
4
4
|
"description": "ImportanceUnit — the relational unit of knowledge for the Medicine Wheel Developer Suite. Carries epistemic weight, source dimensions (Land/Dream/Code/Vision), circle depth tracking, and accountability links grounded in Wilson's relational epistemology",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"directory": "src/importance-unit"
|
|
81
81
|
},
|
|
82
82
|
"dependencies": {
|
|
83
|
-
"@medicine-wheel/ontology-core": "^0.17.
|
|
83
|
+
"@medicine-wheel/ontology-core": "^0.17.3",
|
|
84
84
|
"zod": "^3.23.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|