@medicine-wheel/transformation-tracker 0.2.2
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 +87 -0
- package/dist/community.d.ts +53 -0
- package/dist/community.d.ts.map +1 -0
- package/dist/community.js +97 -0
- package/dist/community.js.map +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +60 -0
- package/dist/index.js.map +1 -0
- package/dist/prompts.d.ts +26 -0
- package/dist/prompts.d.ts.map +1 -0
- package/dist/prompts.js +124 -0
- package/dist/prompts.js.map +1 -0
- package/dist/reciprocity-ledger.d.ts +60 -0
- package/dist/reciprocity-ledger.d.ts.map +1 -0
- package/dist/reciprocity-ledger.js +98 -0
- package/dist/reciprocity-ledger.js.map +1 -0
- package/dist/relational-shift.d.ts +69 -0
- package/dist/relational-shift.d.ts.map +1 -0
- package/dist/relational-shift.js +123 -0
- package/dist/relational-shift.js.map +1 -0
- package/dist/researcher.d.ts +49 -0
- package/dist/researcher.d.ts.map +1 -0
- package/dist/researcher.js +118 -0
- package/dist/researcher.js.map +1 -0
- package/dist/schemas.d.ts +439 -0
- package/dist/schemas.d.ts.map +1 -0
- package/dist/schemas.js +90 -0
- package/dist/schemas.js.map +1 -0
- package/dist/seven-generations.d.ts +52 -0
- package/dist/seven-generations.d.ts.map +1 -0
- package/dist/seven-generations.js +165 -0
- package/dist/seven-generations.js.map +1 -0
- package/dist/types.d.ts +134 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +12 -0
- package/dist/types.js.map +1 -0
- package/dist/validity.d.ts +27 -0
- package/dist/validity.d.ts.map +1 -0
- package/dist/validity.js +102 -0
- package/dist/validity.js.map +1 -0
- package/package.json +59 -0
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @medicine-wheel/transformation-tracker — Seven Generations Module
|
|
4
|
+
*
|
|
5
|
+
* Assesses the long-term sustainability and future-generation impact
|
|
6
|
+
* of research activities. The Seven Generations principle asks:
|
|
7
|
+
* how will this affect those who come seven generations after us?
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.sevenGenScore = sevenGenScore;
|
|
11
|
+
exports.futureImpact = futureImpact;
|
|
12
|
+
exports.sustainabilityCheck = sustainabilityCheck;
|
|
13
|
+
/**
|
|
14
|
+
* Compute a seven-generation sustainability score (0–1).
|
|
15
|
+
* Weighs community impact, reciprocity balance, relational health,
|
|
16
|
+
* and future-oriented reflection indicators.
|
|
17
|
+
*/
|
|
18
|
+
function sevenGenScore(log) {
|
|
19
|
+
const communityScore = computeCommunityScore(log);
|
|
20
|
+
const reciprocityScore = computeReciprocityScore(log);
|
|
21
|
+
const relationalScore = computeRelationalScore(log);
|
|
22
|
+
const futureScore = computeFutureOrientationScore(log);
|
|
23
|
+
const score = communityScore * 0.3 +
|
|
24
|
+
reciprocityScore * 0.25 +
|
|
25
|
+
relationalScore * 0.25 +
|
|
26
|
+
futureScore * 0.2;
|
|
27
|
+
return {
|
|
28
|
+
score,
|
|
29
|
+
communityScore,
|
|
30
|
+
reciprocityScore,
|
|
31
|
+
relationalScore,
|
|
32
|
+
futureScore,
|
|
33
|
+
summary: score >= 0.7
|
|
34
|
+
? 'Strong seven-generation alignment — research honors future generations.'
|
|
35
|
+
: score >= 0.4
|
|
36
|
+
? 'Moderate seven-generation alignment — some areas need deepening.'
|
|
37
|
+
: 'Low seven-generation alignment — significant work needed to honor future generations.',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Assess the potential impact on future generations.
|
|
42
|
+
* Examines whether the research creates lasting relational
|
|
43
|
+
* infrastructure or extractive short-term gains.
|
|
44
|
+
*/
|
|
45
|
+
function futureImpact(log) {
|
|
46
|
+
const futureEntries = log.reciprocityLedger.filter((e) => e.category === 'future');
|
|
47
|
+
const futureImpacts = log.communityImpacts.filter((i) => i.category === 'future');
|
|
48
|
+
const hasLongTermRelations = log.relationalShifts.some((s) => s.after.strength > 0.7);
|
|
49
|
+
const hasFutureReflections = log.reflections.some((r) => /future|generation|sustain|long.term|legacy|descend/i.test(r.response));
|
|
50
|
+
const indicators = [];
|
|
51
|
+
if (futureEntries.length > 0)
|
|
52
|
+
indicators.push('Future reciprocity entries present');
|
|
53
|
+
if (futureImpacts.length > 0)
|
|
54
|
+
indicators.push('Future-oriented community impacts recorded');
|
|
55
|
+
if (hasLongTermRelations)
|
|
56
|
+
indicators.push('Strong long-term relations established');
|
|
57
|
+
if (hasFutureReflections)
|
|
58
|
+
indicators.push('Future-generation awareness in reflections');
|
|
59
|
+
return {
|
|
60
|
+
futureReciprocityEntries: futureEntries.length,
|
|
61
|
+
futureImpacts: futureImpacts.length,
|
|
62
|
+
hasLongTermRelations,
|
|
63
|
+
hasFutureReflections,
|
|
64
|
+
indicators,
|
|
65
|
+
assessment: indicators.length >= 3
|
|
66
|
+
? 'Research demonstrates strong future-generation consciousness.'
|
|
67
|
+
: indicators.length >= 1
|
|
68
|
+
? 'Some future-generation awareness, but needs deepening.'
|
|
69
|
+
: 'No future-generation indicators detected. Consider the seven-generation impact.',
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Check long-term relational sustainability.
|
|
74
|
+
* Evaluates whether relations are growing or decaying over time.
|
|
75
|
+
*/
|
|
76
|
+
function sustainabilityCheck(log) {
|
|
77
|
+
if (log.relationalShifts.length === 0) {
|
|
78
|
+
return {
|
|
79
|
+
sustainable: false,
|
|
80
|
+
growingRelations: 0,
|
|
81
|
+
stableRelations: 0,
|
|
82
|
+
decliningRelations: 0,
|
|
83
|
+
recommendations: ['Begin tracking relational shifts to assess sustainability.'],
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
const relationMap = new Map();
|
|
87
|
+
for (const shift of log.relationalShifts) {
|
|
88
|
+
const existing = relationMap.get(shift.relationId);
|
|
89
|
+
if (!existing) {
|
|
90
|
+
relationMap.set(shift.relationId, {
|
|
91
|
+
first: shift.before.strength,
|
|
92
|
+
last: shift.after.strength,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
existing.last = shift.after.strength;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
let growing = 0;
|
|
100
|
+
let stable = 0;
|
|
101
|
+
let declining = 0;
|
|
102
|
+
for (const [, state] of relationMap) {
|
|
103
|
+
const delta = state.last - state.first;
|
|
104
|
+
if (delta > 0.05)
|
|
105
|
+
growing++;
|
|
106
|
+
else if (delta < -0.05)
|
|
107
|
+
declining++;
|
|
108
|
+
else
|
|
109
|
+
stable++;
|
|
110
|
+
}
|
|
111
|
+
const sustainable = declining === 0 || growing > declining * 2;
|
|
112
|
+
const recommendations = [];
|
|
113
|
+
if (declining > 0) {
|
|
114
|
+
recommendations.push(`${declining} relation(s) declining — investigate and restore.`);
|
|
115
|
+
}
|
|
116
|
+
if (growing === 0) {
|
|
117
|
+
recommendations.push('No relations actively growing — seek new ways to deepen connection.');
|
|
118
|
+
}
|
|
119
|
+
if (log.reciprocityLedger.filter((e) => e.category === 'future').length === 0) {
|
|
120
|
+
recommendations.push('No future-generation reciprocity — consider obligations to those not yet born.');
|
|
121
|
+
}
|
|
122
|
+
return {
|
|
123
|
+
sustainable,
|
|
124
|
+
growingRelations: growing,
|
|
125
|
+
stableRelations: stable,
|
|
126
|
+
decliningRelations: declining,
|
|
127
|
+
recommendations,
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
// ── Internal Scoring Helpers ────────────────────────────────────────────────
|
|
131
|
+
function computeCommunityScore(log) {
|
|
132
|
+
if (log.communityImpacts.length === 0)
|
|
133
|
+
return 0;
|
|
134
|
+
const measurable = log.communityImpacts.filter((i) => i.measurable).length;
|
|
135
|
+
const categories = new Set(log.communityImpacts.map((i) => i.category)).size;
|
|
136
|
+
return Math.min(1, (log.communityImpacts.length * 0.1) + (measurable * 0.15) + (categories * 0.15));
|
|
137
|
+
}
|
|
138
|
+
function computeReciprocityScore(log) {
|
|
139
|
+
const giving = log.reciprocityLedger.filter((e) => e.type === 'giving').length;
|
|
140
|
+
const receiving = log.reciprocityLedger.filter((e) => e.type === 'receiving').length;
|
|
141
|
+
if (giving === 0 && receiving === 0)
|
|
142
|
+
return 0;
|
|
143
|
+
const ratio = receiving > 0 ? giving / receiving : giving > 0 ? 2 : 0;
|
|
144
|
+
const balanced = ratio >= 0.5 && ratio <= 2.0;
|
|
145
|
+
return balanced ? Math.min(1, (giving + receiving) * 0.1) : Math.min(0.5, (giving + receiving) * 0.05);
|
|
146
|
+
}
|
|
147
|
+
function computeRelationalScore(log) {
|
|
148
|
+
if (log.relationalShifts.length === 0)
|
|
149
|
+
return 0;
|
|
150
|
+
const positive = log.relationalShifts.filter((s) => s.after.strength > s.before.strength).length;
|
|
151
|
+
return Math.min(1, positive / log.relationalShifts.length);
|
|
152
|
+
}
|
|
153
|
+
function computeFutureOrientationScore(log) {
|
|
154
|
+
let score = 0;
|
|
155
|
+
if (log.reciprocityLedger.some((e) => e.category === 'future'))
|
|
156
|
+
score += 0.3;
|
|
157
|
+
if (log.communityImpacts.some((i) => i.category === 'future'))
|
|
158
|
+
score += 0.3;
|
|
159
|
+
if (log.reflections.some((r) => /future|generation|sustain/i.test(r.response)))
|
|
160
|
+
score += 0.2;
|
|
161
|
+
if (log.relationalShifts.some((s) => s.after.strength > 0.7))
|
|
162
|
+
score += 0.2;
|
|
163
|
+
return Math.min(1, score);
|
|
164
|
+
}
|
|
165
|
+
//# sourceMappingURL=seven-generations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seven-generations.js","sourceRoot":"","sources":["../src/seven-generations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AASH,sCAwBC;AAOD,oCAiCC;AAMD,kDAuDC;AAlID;;;;GAIG;AACH,SAAgB,aAAa,CAAC,GAAsB;IAClD,MAAM,cAAc,GAAG,q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,CAAC,EAAE,EAAE,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;QAAE,KAAK,IAAI,GAAG,CAAC;IAC7F,IAAI,GAAG,CAAC,gBAAgB,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC;QAAE,KAAK,IAAI,GAAG,CAAC;IAC3E,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;AAC5B,CAAC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @medicine-wheel/transformation-tracker — Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* Types for tracking the transformative impact of research on
|
|
5
|
+
* researchers, communities, and relational networks.
|
|
6
|
+
*
|
|
7
|
+
* Wilson's validity criterion: "If research doesn't change you,
|
|
8
|
+
* you haven't done it right."
|
|
9
|
+
*/
|
|
10
|
+
import type { DirectionName, CeremonyPhase, ObligationCategory } from '@medicine-wheel/ontology-core';
|
|
11
|
+
/** Primary container tracking all transformation signals across a research cycle */
|
|
12
|
+
export interface TransformationLog {
|
|
13
|
+
/** Unique log identifier */
|
|
14
|
+
id: string;
|
|
15
|
+
/** The research cycle this log tracks */
|
|
16
|
+
researchCycleId: string;
|
|
17
|
+
/** Periodic understanding snapshots */
|
|
18
|
+
snapshots: GrowthSnapshot[];
|
|
19
|
+
/** Researcher self-reflection entries */
|
|
20
|
+
reflections: Reflection[];
|
|
21
|
+
/** Recorded community impacts */
|
|
22
|
+
communityImpacts: CommunityImpact[];
|
|
23
|
+
/** Tracked relational shifts */
|
|
24
|
+
relationalShifts: RelationalShift[];
|
|
25
|
+
/** Reciprocity giving/receiving ledger */
|
|
26
|
+
reciprocityLedger: ReciprocityEntry[];
|
|
27
|
+
/** Seven-generation sustainability score (0–1) */
|
|
28
|
+
sevenGenerationScore: number;
|
|
29
|
+
/** Composite transformation score (0–1) */
|
|
30
|
+
overallTransformation: number;
|
|
31
|
+
}
|
|
32
|
+
/** A point-in-time capture of the researcher's understanding state */
|
|
33
|
+
export interface GrowthSnapshot {
|
|
34
|
+
/** ISO 8601 timestamp */
|
|
35
|
+
timestamp: string;
|
|
36
|
+
/** Direction alignment at time of snapshot */
|
|
37
|
+
direction: DirectionName;
|
|
38
|
+
/** Ceremony phase during snapshot */
|
|
39
|
+
ceremonyPhase: CeremonyPhase;
|
|
40
|
+
/** Free-text description of current understanding */
|
|
41
|
+
understanding: string;
|
|
42
|
+
/** Number of active relations at this point */
|
|
43
|
+
relationsCount: number;
|
|
44
|
+
/** Wilson alignment score (0–1) */
|
|
45
|
+
wilsonAlignment: number;
|
|
46
|
+
/** Key insights at this point */
|
|
47
|
+
keyInsights: string[];
|
|
48
|
+
/** Open questions remaining */
|
|
49
|
+
openQuestions: string[];
|
|
50
|
+
}
|
|
51
|
+
/** A researcher self-reflection entry */
|
|
52
|
+
export interface Reflection {
|
|
53
|
+
/** Unique reflection identifier */
|
|
54
|
+
id: string;
|
|
55
|
+
/** ISO 8601 timestamp */
|
|
56
|
+
timestamp: string;
|
|
57
|
+
/** The prompt that invited this reflection */
|
|
58
|
+
prompt: string;
|
|
59
|
+
/** The researcher's response */
|
|
60
|
+
response: string;
|
|
61
|
+
/** Direction alignment of the reflection */
|
|
62
|
+
direction: DirectionName;
|
|
63
|
+
/** Depth of reflection (0–1, where 1 is deepest) */
|
|
64
|
+
depth: number;
|
|
65
|
+
}
|
|
66
|
+
/** A recorded impact on the community */
|
|
67
|
+
export interface CommunityImpact {
|
|
68
|
+
/** Unique impact identifier */
|
|
69
|
+
id: string;
|
|
70
|
+
/** Description of the impact */
|
|
71
|
+
description: string;
|
|
72
|
+
/** Who or what benefited */
|
|
73
|
+
beneficiary: string;
|
|
74
|
+
/** Impact category */
|
|
75
|
+
category: ObligationCategory;
|
|
76
|
+
/** ISO 8601 timestamp */
|
|
77
|
+
timestamp: string;
|
|
78
|
+
/** Whether the impact is measurable */
|
|
79
|
+
measurable: boolean;
|
|
80
|
+
}
|
|
81
|
+
/** Tracks a change in relational strength/quality */
|
|
82
|
+
export interface RelationalShift {
|
|
83
|
+
/** The relation that shifted */
|
|
84
|
+
relationId: string;
|
|
85
|
+
/** State before the shift */
|
|
86
|
+
before: {
|
|
87
|
+
strength: number;
|
|
88
|
+
description: string;
|
|
89
|
+
};
|
|
90
|
+
/** State after the shift */
|
|
91
|
+
after: {
|
|
92
|
+
strength: number;
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
/** What caused the shift */
|
|
96
|
+
catalyst: string;
|
|
97
|
+
/** Direction alignment */
|
|
98
|
+
direction: DirectionName;
|
|
99
|
+
/** ISO 8601 timestamp */
|
|
100
|
+
timestamp: string;
|
|
101
|
+
}
|
|
102
|
+
/** A single entry in the reciprocity ledger */
|
|
103
|
+
export interface ReciprocityEntry {
|
|
104
|
+
/** Whether this is giving or receiving */
|
|
105
|
+
type: 'giving' | 'receiving';
|
|
106
|
+
/** Description of the exchange */
|
|
107
|
+
description: string;
|
|
108
|
+
/** Who/what was the exchange with */
|
|
109
|
+
relatedTo: string;
|
|
110
|
+
/** Obligation category of the exchange */
|
|
111
|
+
category: ObligationCategory;
|
|
112
|
+
/** ISO 8601 timestamp */
|
|
113
|
+
timestamp: string;
|
|
114
|
+
}
|
|
115
|
+
/** Result of a Wilson validity assessment */
|
|
116
|
+
export interface WilsonValidity {
|
|
117
|
+
/** Has the researcher been transformed by this research? */
|
|
118
|
+
researcherTransformed: boolean;
|
|
119
|
+
/** Has the community benefited from this research? */
|
|
120
|
+
communityBenefited: boolean;
|
|
121
|
+
/** Have relations been strengthened through this research? */
|
|
122
|
+
relationsStrengthened: boolean;
|
|
123
|
+
/** Is reciprocity balanced? */
|
|
124
|
+
reciprocityBalanced: boolean;
|
|
125
|
+
/** Have seven generations been considered? */
|
|
126
|
+
sevenGenerationsConsidered: boolean;
|
|
127
|
+
/** Overall validity determination */
|
|
128
|
+
overallValid: boolean;
|
|
129
|
+
/** Composite validity score (0–1) */
|
|
130
|
+
score: number;
|
|
131
|
+
/** Recommendations for deeper Wilson alignment */
|
|
132
|
+
recommendations: string[];
|
|
133
|
+
}
|
|
134
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EACV,aAAa,EACb,aAAa,EACb,kBAAkB,EACnB,MAAM,+BAA+B,CAAC;AAIvC,oFAAoF;AACpF,MAAM,WAAW,iBAAiB;IAChC,4BAA4B;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,uCAAuC;IACvC,SAAS,EAAE,cAAc,EAAE,CAAC;IAC5B,yCAAyC;IACzC,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,iCAAiC;IACjC,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,gCAAgC;IAChC,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,0CAA0C;IAC1C,iBAAiB,EAAE,gBAAgB,EAAE,CAAC;IACtC,kDAAkD;IAClD,oBAAoB,EAAE,MAAM,CAAC;IAC7B,2CAA2C;IAC3C,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAID,sEAAsE;AACtE,MAAM,WAAW,cAAc;IAC7B,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,8CAA8C;IAC9C,SAAS,EAAE,aAAa,CAAC;IACzB,qCAAqC;IACrC,aAAa,EAAE,aAAa,CAAC;IAC7B,qDAAqD;IACrD,aAAa,EAAE,MAAM,CAAC;IACtB,+CAA+C;IAC/C,cAAc,EAAE,MAAM,CAAC;IACvB,mCAAmC;IACnC,eAAe,EAAE,MAAM,CAAC;IACxB,iCAAiC;IACjC,WAAW,E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GAAG,WAAW,CAAC;IAC7B,kCAAkC;IAClC,WAAW,EAAE,MAAM,CAAC;IACpB,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,6CAA6C;AAC7C,MAAM,WAAW,cAAc;IAC7B,4DAA4D;IAC5D,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sDAAsD;IACtD,kBAAkB,EAAE,OAAO,CAAC;IAC5B,8DAA8D;IAC9D,qBAAqB,EAAE,OAAO,CAAC;IAC/B,+BAA+B;IAC/B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,8CAA8C;IAC9C,0BAA0B,EAAE,OAAO,CAAC;IACpC,qCAAqC;IACrC,YAAY,EAAE,OAAO,CAAC;IACtB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @medicine-wheel/transformation-tracker — Type Definitions
|
|
4
|
+
*
|
|
5
|
+
* Types for tracking the transformative impact of research on
|
|
6
|
+
* researchers, communities, and relational networks.
|
|
7
|
+
*
|
|
8
|
+
* Wilson's validity criterion: "If research doesn't change you,
|
|
9
|
+
* you haven't done it right."
|
|
10
|
+
*/
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @medicine-wheel/transformation-tracker — Validity Module
|
|
3
|
+
*
|
|
4
|
+
* THE core function: wilsonValidityCheck.
|
|
5
|
+
* Assesses whether research has met Wilson's validity criterion:
|
|
6
|
+
* "If research doesn't change you, you haven't done it right."
|
|
7
|
+
*
|
|
8
|
+
* This is the primary output of the transformation-tracker package —
|
|
9
|
+
* a holistic assessment of whether the research has been valid
|
|
10
|
+
* in Wilson's Indigenous relational terms.
|
|
11
|
+
*/
|
|
12
|
+
import type { TransformationLog, WilsonValidity } from './types.js';
|
|
13
|
+
/**
|
|
14
|
+
* Perform a comprehensive Wilson validity check.
|
|
15
|
+
*
|
|
16
|
+
* Evaluates five dimensions:
|
|
17
|
+
* 1. Researcher transformation — has the researcher been changed?
|
|
18
|
+
* 2. Community benefit — has the community benefited?
|
|
19
|
+
* 3. Relational strengthening — have relations been strengthened?
|
|
20
|
+
* 4. Reciprocity balance — is giving and receiving balanced?
|
|
21
|
+
* 5. Seven-generation consideration — are future generations honored?
|
|
22
|
+
*
|
|
23
|
+
* Returns a WilsonValidity assessment with boolean flags, a composite
|
|
24
|
+
* score, and actionable recommendations.
|
|
25
|
+
*/
|
|
26
|
+
export declare function wilsonValidityCheck(log: TransformationLog): WilsonValidity;
|
|
27
|
+
//# sourceMappingURL=validity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validity.d.ts","sourceRoot":"","sources":["../src/validity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAOpE;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,iBAAiB,GAAG,cAAc,CAyF1E"}
|
package/dist/validity.js
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @medicine-wheel/transformation-tracker — Validity Module
|
|
4
|
+
*
|
|
5
|
+
* THE core function: wilsonValidityCheck.
|
|
6
|
+
* Assesses whether research has met Wilson's validity criterion:
|
|
7
|
+
* "If research doesn't change you, you haven't done it right."
|
|
8
|
+
*
|
|
9
|
+
* This is the primary output of the transformation-tracker package —
|
|
10
|
+
* a holistic assessment of whether the research has been valid
|
|
11
|
+
* in Wilson's Indigenous relational terms.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.wilsonValidityCheck = wilsonValidityCheck;
|
|
15
|
+
const researcher_js_1 = require("./researcher.js");
|
|
16
|
+
const community_js_1 = require("./community.js");
|
|
17
|
+
const relational_shift_js_1 = require("./relational-shift.js");
|
|
18
|
+
const seven_generations_js_1 = require("./seven-generations.js");
|
|
19
|
+
const reciprocity_ledger_js_1 = require("./reciprocity-ledger.js");
|
|
20
|
+
/**
|
|
21
|
+
* Perform a comprehensive Wilson validity check.
|
|
22
|
+
*
|
|
23
|
+
* Evaluates five dimensions:
|
|
24
|
+
* 1. Researcher transformation — has the researcher been changed?
|
|
25
|
+
* 2. Community benefit — has the community benefited?
|
|
26
|
+
* 3. Relational strengthening — have relations been strengthened?
|
|
27
|
+
* 4. Reciprocity balance — is giving and receiving balanced?
|
|
28
|
+
* 5. Seven-generation consideration — are future generations honored?
|
|
29
|
+
*
|
|
30
|
+
* Returns a WilsonValidity assessment with boolean flags, a composite
|
|
31
|
+
* score, and actionable recommendations.
|
|
32
|
+
*/
|
|
33
|
+
function wilsonValidityCheck(log) {
|
|
34
|
+
const recommendations = [];
|
|
35
|
+
// 1. Researcher transformation
|
|
36
|
+
const growth = (0, researcher_js_1.detectGrowth)(log);
|
|
37
|
+
const researcherTransformed = growth.detected;
|
|
38
|
+
if (!researcherTransformed) {
|
|
39
|
+
recommendations.push('No researcher transformation detected. Deepen reflective practice and engage with challenging perspectives.');
|
|
40
|
+
}
|
|
41
|
+
// 2. Community benefit
|
|
42
|
+
const voice = (0, community_js_1.communityVoice)(log);
|
|
43
|
+
const communityBenefited = voice.totalImpacts > 0 && voice.measurableImpacts > 0;
|
|
44
|
+
if (!communityBenefited) {
|
|
45
|
+
if (voice.totalImpacts === 0) {
|
|
46
|
+
recommendations.push('No community impacts recorded. Research must benefit the community to be valid.');
|
|
47
|
+
}
|
|
48
|
+
else {
|
|
49
|
+
recommendations.push('Community impacts lack measurability. Work with the community to define measurable outcomes.');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
// 3. Relations strengthened
|
|
53
|
+
const delta = (0, relational_shift_js_1.strengthDelta)(log);
|
|
54
|
+
const relationsStrengthened = delta.strengthened > delta.weakened && delta.totalShifts > 0;
|
|
55
|
+
if (!relationsStrengthened) {
|
|
56
|
+
if (delta.totalShifts === 0) {
|
|
57
|
+
recommendations.push('No relational shifts tracked. Begin documenting how your relations are changing.');
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
recommendations.push('More relations weakened than strengthened. Investigate and restore declining relations.');
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
// 4. Reciprocity balance
|
|
64
|
+
const balance = (0, reciprocity_ledger_js_1.balanceCheck)(log);
|
|
65
|
+
const recBalance = (0, community_js_1.reciprocityBalance)(log);
|
|
66
|
+
const reciprocityBalanced = balance.overallBalanced;
|
|
67
|
+
if (!reciprocityBalanced) {
|
|
68
|
+
recommendations.push(recBalance.summary);
|
|
69
|
+
}
|
|
70
|
+
// 5. Seven generations
|
|
71
|
+
const sevenGen = (0, seven_generations_js_1.sevenGenScore)(log);
|
|
72
|
+
const sevenGenerationsConsidered = sevenGen.score >= 0.4;
|
|
73
|
+
if (!sevenGenerationsConsidered) {
|
|
74
|
+
recommendations.push('Seven-generation score is low. Consider how this research affects future generations.');
|
|
75
|
+
}
|
|
76
|
+
// Composite scoring
|
|
77
|
+
const dimensions = [
|
|
78
|
+
researcherTransformed,
|
|
79
|
+
communityBenefited,
|
|
80
|
+
relationsStrengthened,
|
|
81
|
+
reciprocityBalanced,
|
|
82
|
+
sevenGenerationsConsidered,
|
|
83
|
+
];
|
|
84
|
+
const trueCount = dimensions.filter(Boolean).length;
|
|
85
|
+
const score = trueCount / dimensions.length;
|
|
86
|
+
// Wilson says ALL dimensions must be present for full validity
|
|
87
|
+
const overallValid = trueCount === dimensions.length;
|
|
88
|
+
if (overallValid) {
|
|
89
|
+
recommendations.push('All Wilson validity dimensions met. Continue deepening relational engagement.');
|
|
90
|
+
}
|
|
91
|
+
return {
|
|
92
|
+
researcherTransformed,
|
|
93
|
+
communityBenefited,
|
|
94
|
+
relationsStrengthened,
|
|
95
|
+
reciprocityBalanced,
|
|
96
|
+
sevenGenerationsConsidered,
|
|
97
|
+
overallValid,
|
|
98
|
+
score,
|
|
99
|
+
recommendations,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=validity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validity.js","sourceRoot":"","sources":["../src/validity.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;GAUG;;AAsBH,kDAyFC;AA5GD,mDAA+C;AAC/C,iDAAoE;AACpE,+DAAsD;AACtD,iEAAuD;AACvD,mEAAuD;AAEvD;;;;;;;;;;;;GAYG;AACH,SAAgB,mBAAmB,CAAC,GAAsB;IACxD,MAAM,eAAe,GAAa,EAAE,CAAC;IAErC,+BAA+B;IAC/B,MAAM,MAAM,GAAG,IAAA,4BAAY,EAAC,GAAG,CAAC,CAAC;IACjC,MAAM,qBAAqB,GAAG,MAAM,CAAC,QAAQ,CAAC;IAC9C,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAC3B,eAAe,CAAC,IAAI,CAClB,6GAA6G,CAC9G,CAAC;IACJ,CAAC;IAED,uBAAuB;IACvB,MAAM,KAAK,GAAG,IAAA,6BAAc,EAAC,GAAG,CAAC,CAAC;IAClC,MAAM,kBAAkB,GAAG,KAAK,CAAC,YAAY,GAAG,CAAC,IAAI,KAAK,CAAC,iBAAiB,GAAG,CAAC,CAAC;IACjF,IAAI,CAAC,kBAAkB,EAAE,CAAC;QACxB,IAAI,KAAK,CAAC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B;QACrB,mBAAmB;QACnB,0BAA0B;KAC3B,CAAC;IACF,MAAM,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC;IACpD,MAAM,KAAK,GAAG,SAAS,GAAG,UAAU,CAAC,MAAM,CAAC;IAE5C,+DAA+D;IAC/D,MAAM,YAAY,GAAG,SAAS,KAAK,UAAU,CAAC,MAAM,CAAC;IAErD,IAAI,YAAY,EAAE,CAAC;QACjB,eAAe,CAAC,IAAI,CAClB,+EAA+E,CAChF,CAAC;IACJ,CAAC;IAED,OAAO;QACL,qBAAqB;QACrB,kBAAkB;QAClB,qBAAqB;QACrB,mBAAmB;QACnB,0BAA0B;QAC1B,YAAY;QACZ,KAAK;QACL,eAAe;KAChB,CAAC;AACJ,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@medicine-wheel/transformation-tracker",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Research transformation tracking for the Medicine Wheel Developer Suite — Wilson validity criterion: if research doesn't change you, you haven't done it right",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./types": {
|
|
15
|
+
"types": "./dist/types.d.ts",
|
|
16
|
+
"import": "./dist/types.js",
|
|
17
|
+
"require": "./dist/types.js",
|
|
18
|
+
"default": "./dist/types.js"
|
|
19
|
+
},
|
|
20
|
+
"./schemas": {
|
|
21
|
+
"types": "./dist/schemas.d.ts",
|
|
22
|
+
"import": "./dist/schemas.js",
|
|
23
|
+
"require": "./dist/schemas.js",
|
|
24
|
+
"default": "./dist/schemas.js"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"sideEffects": false,
|
|
28
|
+
"files": [
|
|
29
|
+
"dist",
|
|
30
|
+
"README.md"
|
|
31
|
+
],
|
|
32
|
+
"scripts": {
|
|
33
|
+
"build": "tsc",
|
|
34
|
+
"dev": "tsc --watch",
|
|
35
|
+
"lint": "tsc --noEmit",
|
|
36
|
+
"clean": "rm -rf dist",
|
|
37
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"medicine-wheel",
|
|
41
|
+
"transformation",
|
|
42
|
+
"wilson-validity",
|
|
43
|
+
"indigenous-research",
|
|
44
|
+
"relational-accountability",
|
|
45
|
+
"reciprocity",
|
|
46
|
+
"seven-generations"
|
|
47
|
+
],
|
|
48
|
+
"author": "IAIP Collaborative - Shawinigan, QC",
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"dependencies": {
|
|
51
|
+
"@medicine-wheel/ontology-core": "^0.2.2",
|
|
52
|
+
"@medicine-wheel/ceremony-protocol": "^0.2.2",
|
|
53
|
+
"zod": "^3.23.0"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@types/node": "^20.10.0",
|
|
57
|
+
"typescript": "^5.3.0"
|
|
58
|
+
}
|
|
59
|
+
}
|