@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.
Files changed (42) hide show
  1. package/README.md +87 -0
  2. package/dist/community.d.ts +53 -0
  3. package/dist/community.d.ts.map +1 -0
  4. package/dist/community.js +97 -0
  5. package/dist/community.js.map +1 -0
  6. package/dist/index.d.ts +26 -0
  7. package/dist/index.d.ts.map +1 -0
  8. package/dist/index.js +60 -0
  9. package/dist/index.js.map +1 -0
  10. package/dist/prompts.d.ts +26 -0
  11. package/dist/prompts.d.ts.map +1 -0
  12. package/dist/prompts.js +124 -0
  13. package/dist/prompts.js.map +1 -0
  14. package/dist/reciprocity-ledger.d.ts +60 -0
  15. package/dist/reciprocity-ledger.d.ts.map +1 -0
  16. package/dist/reciprocity-ledger.js +98 -0
  17. package/dist/reciprocity-ledger.js.map +1 -0
  18. package/dist/relational-shift.d.ts +69 -0
  19. package/dist/relational-shift.d.ts.map +1 -0
  20. package/dist/relational-shift.js +123 -0
  21. package/dist/relational-shift.js.map +1 -0
  22. package/dist/researcher.d.ts +49 -0
  23. package/dist/researcher.d.ts.map +1 -0
  24. package/dist/researcher.js +118 -0
  25. package/dist/researcher.js.map +1 -0
  26. package/dist/schemas.d.ts +439 -0
  27. package/dist/schemas.d.ts.map +1 -0
  28. package/dist/schemas.js +90 -0
  29. package/dist/schemas.js.map +1 -0
  30. package/dist/seven-generations.d.ts +52 -0
  31. package/dist/seven-generations.d.ts.map +1 -0
  32. package/dist/seven-generations.js +165 -0
  33. package/dist/seven-generations.js.map +1 -0
  34. package/dist/types.d.ts +134 -0
  35. package/dist/types.d.ts.map +1 -0
  36. package/dist/types.js +12 -0
  37. package/dist/types.js.map +1 -0
  38. package/dist/validity.d.ts +27 -0
  39. package/dist/validity.d.ts.map +1 -0
  40. package/dist/validity.js +102 -0
  41. package/dist/validity.js.map +1 -0
  42. package/package.json +59 -0
@@ -0,0 +1,439 @@
1
+ /**
2
+ * @medicine-wheel/transformation-tracker — Zod Schemas
3
+ *
4
+ * Runtime validation schemas for transformation tracking types.
5
+ */
6
+ import { z } from 'zod';
7
+ export declare const CeremonyPhaseSchema: z.ZodEnum<["opening", "council", "integration", "closure"]>;
8
+ export declare const GrowthSnapshotSchema: z.ZodObject<{
9
+ timestamp: z.ZodString;
10
+ direction: z.ZodEnum<["east", "south", "west", "north"]>;
11
+ ceremonyPhase: z.ZodEnum<["opening", "council", "integration", "closure"]>;
12
+ understanding: z.ZodString;
13
+ relationsCount: z.ZodNumber;
14
+ wilsonAlignment: z.ZodNumber;
15
+ keyInsights: z.ZodArray<z.ZodString, "many">;
16
+ openQuestions: z.ZodArray<z.ZodString, "many">;
17
+ }, "strip", z.ZodTypeAny, {
18
+ timestamp: string;
19
+ direction: "east" | "south" | "west" | "north";
20
+ ceremonyPhase: "opening" | "council" | "integration" | "closure";
21
+ understanding: string;
22
+ relationsCount: number;
23
+ wilsonAlignment: number;
24
+ keyInsights: string[];
25
+ openQuestions: string[];
26
+ }, {
27
+ timestamp: string;
28
+ direction: "east" | "south" | "west" | "north";
29
+ ceremonyPhase: "opening" | "council" | "integration" | "closure";
30
+ understanding: string;
31
+ relationsCount: number;
32
+ wilsonAlignment: number;
33
+ keyInsights: string[];
34
+ openQuestions: string[];
35
+ }>;
36
+ export declare const ReflectionSchema: z.ZodObject<{
37
+ id: z.ZodString;
38
+ timestamp: z.ZodString;
39
+ prompt: z.ZodString;
40
+ response: z.ZodString;
41
+ direction: z.ZodEnum<["east", "south", "west", "north"]>;
42
+ depth: z.ZodNumber;
43
+ }, "strip", z.ZodTypeAny, {
44
+ timestamp: string;
45
+ direction: "east" | "south" | "west" | "north";
46
+ id: string;
47
+ prompt: string;
48
+ response: string;
49
+ depth: number;
50
+ }, {
51
+ timestamp: string;
52
+ direction: "east" | "south" | "west" | "north";
53
+ id: string;
54
+ prompt: string;
55
+ response: string;
56
+ depth: number;
57
+ }>;
58
+ export declare const CommunityImpactSchema: z.ZodObject<{
59
+ id: z.ZodString;
60
+ description: z.ZodString;
61
+ beneficiary: z.ZodString;
62
+ category: z.ZodEnum<["human", "land", "spirit", "future"]>;
63
+ timestamp: z.ZodString;
64
+ measurable: z.ZodBoolean;
65
+ }, "strip", z.ZodTypeAny, {
66
+ timestamp: string;
67
+ id: string;
68
+ description: string;
69
+ beneficiary: string;
70
+ category: "human" | "land" | "spirit" | "future";
71
+ measurable: boolean;
72
+ }, {
73
+ timestamp: string;
74
+ id: string;
75
+ description: string;
76
+ beneficiary: string;
77
+ category: "human" | "land" | "spirit" | "future";
78
+ measurable: boolean;
79
+ }>;
80
+ export declare const RelationalShiftSchema: z.ZodObject<{
81
+ relationId: z.ZodString;
82
+ before: z.ZodObject<{
83
+ strength: z.ZodNumber;
84
+ description: z.ZodString;
85
+ }, "strip", z.ZodTypeAny, {
86
+ description: string;
87
+ strength: number;
88
+ }, {
89
+ description: string;
90
+ strength: number;
91
+ }>;
92
+ after: z.ZodObject<{
93
+ strength: z.ZodNumber;
94
+ description: z.ZodString;
95
+ }, "strip", z.ZodTypeAny, {
96
+ description: string;
97
+ strength: number;
98
+ }, {
99
+ description: string;
100
+ strength: number;
101
+ }>;
102
+ catalyst: z.ZodString;
103
+ direction: z.ZodEnum<["east", "south", "west", "north"]>;
104
+ timestamp: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ timestamp: string;
107
+ direction: "east" | "south" | "west" | "north";
108
+ relationId: string;
109
+ before: {
110
+ description: string;
111
+ strength: number;
112
+ };
113
+ after: {
114
+ description: string;
115
+ strength: number;
116
+ };
117
+ catalyst: string;
118
+ }, {
119
+ timestamp: string;
120
+ direction: "east" | "south" | "west" | "north";
121
+ relationId: string;
122
+ before: {
123
+ description: string;
124
+ strength: number;
125
+ };
126
+ after: {
127
+ description: string;
128
+ strength: number;
129
+ };
130
+ catalyst: string;
131
+ }>;
132
+ export declare const ReciprocityEntrySchema: z.ZodObject<{
133
+ type: z.ZodEnum<["giving", "receiving"]>;
134
+ description: z.ZodString;
135
+ relatedTo: z.ZodString;
136
+ category: z.ZodEnum<["human", "land", "spirit", "future"]>;
137
+ timestamp: z.ZodString;
138
+ }, "strip", z.ZodTypeAny, {
139
+ timestamp: string;
140
+ type: "giving" | "receiving";
141
+ description: string;
142
+ category: "human" | "land" | "spirit" | "future";
143
+ relatedTo: string;
144
+ }, {
145
+ timestamp: string;
146
+ type: "giving" | "receiving";
147
+ description: string;
148
+ category: "human" | "land" | "spirit" | "future";
149
+ relatedTo: string;
150
+ }>;
151
+ export declare const TransformationLogSchema: z.ZodObject<{
152
+ id: z.ZodString;
153
+ researchCycleId: z.ZodString;
154
+ snapshots: z.ZodArray<z.ZodObject<{
155
+ timestamp: z.ZodString;
156
+ direction: z.ZodEnum<["east", "south", "west", "north"]>;
157
+ ceremonyPhase: z.ZodEnum<["opening", "council", "integration", "closure"]>;
158
+ understanding: z.ZodString;
159
+ relationsCount: z.ZodNumber;
160
+ wilsonAlignment: z.ZodNumber;
161
+ keyInsights: z.ZodArray<z.ZodString, "many">;
162
+ openQuestions: z.ZodArray<z.ZodString, "many">;
163
+ }, "strip", z.ZodTypeAny, {
164
+ timestamp: string;
165
+ direction: "east" | "south" | "west" | "north";
166
+ ceremonyPhase: "opening" | "council" | "integration" | "closure";
167
+ understanding: string;
168
+ relationsCount: number;
169
+ wilsonAlignment: number;
170
+ keyInsights: string[];
171
+ openQuestions: string[];
172
+ }, {
173
+ timestamp: string;
174
+ direction: "east" | "south" | "west" | "north";
175
+ ceremonyPhase: "opening" | "council" | "integration" | "closure";
176
+ understanding: string;
177
+ relationsCount: number;
178
+ wilsonAlignment: number;
179
+ keyInsights: string[];
180
+ openQuestions: string[];
181
+ }>, "many">;
182
+ reflections: z.ZodArray<z.ZodObject<{
183
+ id: z.ZodString;
184
+ timestamp: z.ZodString;
185
+ prompt: z.ZodString;
186
+ response: z.ZodString;
187
+ direction: z.ZodEnum<["east", "south", "west", "north"]>;
188
+ depth: z.ZodNumber;
189
+ }, "strip", z.ZodTypeAny, {
190
+ timestamp: string;
191
+ direction: "east" | "south" | "west" | "north";
192
+ id: string;
193
+ prompt: string;
194
+ response: string;
195
+ depth: number;
196
+ }, {
197
+ timestamp: string;
198
+ direction: "east" | "south" | "west" | "north";
199
+ id: string;
200
+ prompt: string;
201
+ response: string;
202
+ depth: number;
203
+ }>, "many">;
204
+ communityImpacts: z.ZodArray<z.ZodObject<{
205
+ id: z.ZodString;
206
+ description: z.ZodString;
207
+ beneficiary: z.ZodString;
208
+ category: z.ZodEnum<["human", "land", "spirit", "future"]>;
209
+ timestamp: z.ZodString;
210
+ measurable: z.ZodBoolean;
211
+ }, "strip", z.ZodTypeAny, {
212
+ timestamp: string;
213
+ id: string;
214
+ description: string;
215
+ beneficiary: string;
216
+ category: "human" | "land" | "spirit" | "future";
217
+ measurable: boolean;
218
+ }, {
219
+ timestamp: string;
220
+ id: string;
221
+ description: string;
222
+ beneficiary: string;
223
+ category: "human" | "land" | "spirit" | "future";
224
+ measurable: boolean;
225
+ }>, "many">;
226
+ relationalShifts: z.ZodArray<z.ZodObject<{
227
+ relationId: z.ZodString;
228
+ before: z.ZodObject<{
229
+ strength: z.ZodNumber;
230
+ description: z.ZodString;
231
+ }, "strip", z.ZodTypeAny, {
232
+ description: string;
233
+ strength: number;
234
+ }, {
235
+ description: string;
236
+ strength: number;
237
+ }>;
238
+ after: z.ZodObject<{
239
+ strength: z.ZodNumber;
240
+ description: z.ZodString;
241
+ }, "strip", z.ZodTypeAny, {
242
+ description: string;
243
+ strength: number;
244
+ }, {
245
+ description: string;
246
+ strength: number;
247
+ }>;
248
+ catalyst: z.ZodString;
249
+ direction: z.ZodEnum<["east", "south", "west", "north"]>;
250
+ timestamp: z.ZodString;
251
+ }, "strip", z.ZodTypeAny, {
252
+ timestamp: string;
253
+ direction: "east" | "south" | "west" | "north";
254
+ relationId: string;
255
+ before: {
256
+ description: string;
257
+ strength: number;
258
+ };
259
+ after: {
260
+ description: string;
261
+ strength: number;
262
+ };
263
+ catalyst: string;
264
+ }, {
265
+ timestamp: string;
266
+ direction: "east" | "south" | "west" | "north";
267
+ relationId: string;
268
+ before: {
269
+ description: string;
270
+ strength: number;
271
+ };
272
+ after: {
273
+ description: string;
274
+ strength: number;
275
+ };
276
+ catalyst: string;
277
+ }>, "many">;
278
+ reciprocityLedger: z.ZodArray<z.ZodObject<{
279
+ type: z.ZodEnum<["giving", "receiving"]>;
280
+ description: z.ZodString;
281
+ relatedTo: z.ZodString;
282
+ category: z.ZodEnum<["human", "land", "spirit", "future"]>;
283
+ timestamp: z.ZodString;
284
+ }, "strip", z.ZodTypeAny, {
285
+ timestamp: string;
286
+ type: "giving" | "receiving";
287
+ description: string;
288
+ category: "human" | "land" | "spirit" | "future";
289
+ relatedTo: string;
290
+ }, {
291
+ timestamp: string;
292
+ type: "giving" | "receiving";
293
+ description: string;
294
+ category: "human" | "land" | "spirit" | "future";
295
+ relatedTo: string;
296
+ }>, "many">;
297
+ sevenGenerationScore: z.ZodNumber;
298
+ overallTransformation: z.ZodNumber;
299
+ }, "strip", z.ZodTypeAny, {
300
+ id: string;
301
+ researchCycleId: string;
302
+ snapshots: {
303
+ timestamp: string;
304
+ direction: "east" | "south" | "west" | "north";
305
+ ceremonyPhase: "opening" | "council" | "integration" | "closure";
306
+ understanding: string;
307
+ relationsCount: number;
308
+ wilsonAlignment: number;
309
+ keyInsights: string[];
310
+ openQuestions: string[];
311
+ }[];
312
+ reflections: {
313
+ timestamp: string;
314
+ direction: "east" | "south" | "west" | "north";
315
+ id: string;
316
+ prompt: string;
317
+ response: string;
318
+ depth: number;
319
+ }[];
320
+ communityImpacts: {
321
+ timestamp: string;
322
+ id: string;
323
+ description: string;
324
+ beneficiary: string;
325
+ category: "human" | "land" | "spirit" | "future";
326
+ measurable: boolean;
327
+ }[];
328
+ relationalShifts: {
329
+ timestamp: string;
330
+ direction: "east" | "south" | "west" | "north";
331
+ relationId: string;
332
+ before: {
333
+ description: string;
334
+ strength: number;
335
+ };
336
+ after: {
337
+ description: string;
338
+ strength: number;
339
+ };
340
+ catalyst: string;
341
+ }[];
342
+ reciprocityLedger: {
343
+ timestamp: string;
344
+ type: "giving" | "receiving";
345
+ description: string;
346
+ category: "human" | "land" | "spirit" | "future";
347
+ relatedTo: string;
348
+ }[];
349
+ sevenGenerationScore: number;
350
+ overallTransformation: number;
351
+ }, {
352
+ id: string;
353
+ researchCycleId: string;
354
+ snapshots: {
355
+ timestamp: string;
356
+ direction: "east" | "south" | "west" | "north";
357
+ ceremonyPhase: "opening" | "council" | "integration" | "closure";
358
+ understanding: string;
359
+ relationsCount: number;
360
+ wilsonAlignment: number;
361
+ keyInsights: string[];
362
+ openQuestions: string[];
363
+ }[];
364
+ reflections: {
365
+ timestamp: string;
366
+ direction: "east" | "south" | "west" | "north";
367
+ id: string;
368
+ prompt: string;
369
+ response: string;
370
+ depth: number;
371
+ }[];
372
+ communityImpacts: {
373
+ timestamp: string;
374
+ id: string;
375
+ description: string;
376
+ beneficiary: string;
377
+ category: "human" | "land" | "spirit" | "future";
378
+ measurable: boolean;
379
+ }[];
380
+ relationalShifts: {
381
+ timestamp: string;
382
+ direction: "east" | "south" | "west" | "north";
383
+ relationId: string;
384
+ before: {
385
+ description: string;
386
+ strength: number;
387
+ };
388
+ after: {
389
+ description: string;
390
+ strength: number;
391
+ };
392
+ catalyst: string;
393
+ }[];
394
+ reciprocityLedger: {
395
+ timestamp: string;
396
+ type: "giving" | "receiving";
397
+ description: string;
398
+ category: "human" | "land" | "spirit" | "future";
399
+ relatedTo: string;
400
+ }[];
401
+ sevenGenerationScore: number;
402
+ overallTransformation: number;
403
+ }>;
404
+ export declare const WilsonValiditySchema: z.ZodObject<{
405
+ researcherTransformed: z.ZodBoolean;
406
+ communityBenefited: z.ZodBoolean;
407
+ relationsStrengthened: z.ZodBoolean;
408
+ reciprocityBalanced: z.ZodBoolean;
409
+ sevenGenerationsConsidered: z.ZodBoolean;
410
+ overallValid: z.ZodBoolean;
411
+ score: z.ZodNumber;
412
+ recommendations: z.ZodArray<z.ZodString, "many">;
413
+ }, "strip", z.ZodTypeAny, {
414
+ researcherTransformed: boolean;
415
+ communityBenefited: boolean;
416
+ relationsStrengthened: boolean;
417
+ reciprocityBalanced: boolean;
418
+ sevenGenerationsConsidered: boolean;
419
+ overallValid: boolean;
420
+ score: number;
421
+ recommendations: string[];
422
+ }, {
423
+ researcherTransformed: boolean;
424
+ communityBenefited: boolean;
425
+ relationsStrengthened: boolean;
426
+ reciprocityBalanced: boolean;
427
+ sevenGenerationsConsidered: boolean;
428
+ overallValid: boolean;
429
+ score: number;
430
+ recommendations: string[];
431
+ }>;
432
+ export type ValidatedTransformationLog = z.infer<typeof TransformationLogSchema>;
433
+ export type ValidatedGrowthSnapshot = z.infer<typeof GrowthSnapshotSchema>;
434
+ export type ValidatedReflection = z.infer<typeof ReflectionSchema>;
435
+ export type ValidatedCommunityImpact = z.infer<typeof CommunityImpactSchema>;
436
+ export type ValidatedRelationalShift = z.infer<typeof RelationalShiftSchema>;
437
+ export type ValidatedReciprocityEntry = z.infer<typeof ReciprocityEntrySchema>;
438
+ export type ValidatedWilsonValidity = z.infer<typeof WilsonValiditySchema>;
439
+ //# sourceMappingURL=schemas.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../src/schemas.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAQxB,eAAO,MAAM,mBAAmB,6DAE9B,CAAC;AAIH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS/B,CAAC;AAIH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAO3B,CAAC;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;EAOhC,CAAC;AAIH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAahC,CAAC;AAIH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAIH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUlC,CAAC;AAIH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;EAS/B,CAAC;AAIH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACjF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAC3E,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AACnE,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;AAC7E,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC/E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC"}
@@ -0,0 +1,90 @@
1
+ "use strict";
2
+ /**
3
+ * @medicine-wheel/transformation-tracker — Zod Schemas
4
+ *
5
+ * Runtime validation schemas for transformation tracking types.
6
+ */
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.WilsonValiditySchema = exports.TransformationLogSchema = exports.ReciprocityEntrySchema = exports.RelationalShiftSchema = exports.CommunityImpactSchema = exports.ReflectionSchema = exports.GrowthSnapshotSchema = exports.CeremonyPhaseSchema = void 0;
9
+ const zod_1 = require("zod");
10
+ const ontology_core_1 = require("@medicine-wheel/ontology-core");
11
+ // ── Ceremony Phase Schema (local, from ontology-core type) ──────────────────
12
+ exports.CeremonyPhaseSchema = zod_1.z.enum([
13
+ 'opening', 'council', 'integration', 'closure',
14
+ ]);
15
+ // ── Growth Snapshot ─────────────────────────────────────────────────────────
16
+ exports.GrowthSnapshotSchema = zod_1.z.object({
17
+ timestamp: zod_1.z.string(),
18
+ direction: ontology_core_1.DirectionNameSchema,
19
+ ceremonyPhase: exports.CeremonyPhaseSchema,
20
+ understanding: zod_1.z.string(),
21
+ relationsCount: zod_1.z.number().int().min(0),
22
+ wilsonAlignment: zod_1.z.number().min(0).max(1),
23
+ keyInsights: zod_1.z.array(zod_1.z.string()),
24
+ openQuestions: zod_1.z.array(zod_1.z.string()),
25
+ });
26
+ // ── Reflection ──────────────────────────────────────────────────────────────
27
+ exports.ReflectionSchema = zod_1.z.object({
28
+ id: zod_1.z.string(),
29
+ timestamp: zod_1.z.string(),
30
+ prompt: zod_1.z.string(),
31
+ response: zod_1.z.string(),
32
+ direction: ontology_core_1.DirectionNameSchema,
33
+ depth: zod_1.z.number().min(0).max(1),
34
+ });
35
+ // ── Community Impact ────────────────────────────────────────────────────────
36
+ exports.CommunityImpactSchema = zod_1.z.object({
37
+ id: zod_1.z.string(),
38
+ description: zod_1.z.string(),
39
+ beneficiary: zod_1.z.string(),
40
+ category: ontology_core_1.ObligationCategorySchema,
41
+ timestamp: zod_1.z.string(),
42
+ measurable: zod_1.z.boolean(),
43
+ });
44
+ // ── Relational Shift ────────────────────────────────────────────────────────
45
+ exports.RelationalShiftSchema = zod_1.z.object({
46
+ relationId: zod_1.z.string(),
47
+ before: zod_1.z.object({
48
+ strength: zod_1.z.number().min(0).max(1),
49
+ description: zod_1.z.string(),
50
+ }),
51
+ after: zod_1.z.object({
52
+ strength: zod_1.z.number().min(0).max(1),
53
+ description: zod_1.z.string(),
54
+ }),
55
+ catalyst: zod_1.z.string(),
56
+ direction: ontology_core_1.DirectionNameSchema,
57
+ timestamp: zod_1.z.string(),
58
+ });
59
+ // ── Reciprocity Entry ───────────────────────────────────────────────────────
60
+ exports.ReciprocityEntrySchema = zod_1.z.object({
61
+ type: zod_1.z.enum(['giving', 'receiving']),
62
+ description: zod_1.z.string(),
63
+ relatedTo: zod_1.z.string(),
64
+ category: ontology_core_1.ObligationCategorySchema,
65
+ timestamp: zod_1.z.string(),
66
+ });
67
+ // ── Transformation Log ──────────────────────────────────────────────────────
68
+ exports.TransformationLogSchema = zod_1.z.object({
69
+ id: zod_1.z.string(),
70
+ researchCycleId: zod_1.z.string(),
71
+ snapshots: zod_1.z.array(exports.GrowthSnapshotSchema),
72
+ reflections: zod_1.z.array(exports.ReflectionSchema),
73
+ communityImpacts: zod_1.z.array(exports.CommunityImpactSchema),
74
+ relationalShifts: zod_1.z.array(exports.RelationalShiftSchema),
75
+ reciprocityLedger: zod_1.z.array(exports.ReciprocityEntrySchema),
76
+ sevenGenerationScore: zod_1.z.number().min(0).max(1),
77
+ overallTransformation: zod_1.z.number().min(0).max(1),
78
+ });
79
+ // ── Wilson Validity ─────────────────────────────────────────────────────────
80
+ exports.WilsonValiditySchema = zod_1.z.object({
81
+ researcherTransformed: zod_1.z.boolean(),
82
+ communityBenefited: zod_1.z.boolean(),
83
+ relationsStrengthened: zod_1.z.boolean(),
84
+ reciprocityBalanced: zod_1.z.boolean(),
85
+ sevenGenerationsConsidered: zod_1.z.boolean(),
86
+ overallValid: zod_1.z.boolean(),
87
+ score: zod_1.z.number().min(0).max(1),
88
+ recommendations: zod_1.z.array(zod_1.z.string()),
89
+ });
90
+ //# sourceMappingURL=schemas.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"schemas.js","s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
3
+ *
4
+ * Assesses the long-term sustainability and future-generation impact
5
+ * of research activities. The Seven Generations principle asks:
6
+ * how will this affect those who come seven generations after us?
7
+ */
8
+ import type { TransformationLog } from './types.js';
9
+ /**
10
+ * Compute a seven-generation sustainability score (0–1).
11
+ * Weighs community impact, reciprocity balance, relational health,
12
+ * and future-oriented reflection indicators.
13
+ */
14
+ export declare function sevenGenScore(log: TransformationLog): SevenGenResult;
15
+ /**
16
+ * Assess the potential impact on future generations.
17
+ * Examines whether the research creates lasting relational
18
+ * infrastructure or extractive short-term gains.
19
+ */
20
+ export declare function futureImpact(log: TransformationLog): FutureImpactAssessment;
21
+ /**
22
+ * Check long-term relational sustainability.
23
+ * Evaluates whether relations are growing or decaying over time.
24
+ */
25
+ export declare function sustainabilityCheck(log: TransformationLog): SustainabilityResult;
26
+ /** Seven-generation score result */
27
+ export interface SevenGenResult {
28
+ score: number;
29
+ communityScore: number;
30
+ reciprocityScore: number;
31
+ relationalScore: number;
32
+ futureScore: number;
33
+ summary: string;
34
+ }
35
+ /** Future impact assessment */
36
+ export interface FutureImpactAssessment {
37
+ futureReciprocityEntries: number;
38
+ futureImpacts: number;
39
+ hasLongTermRelations: boolean;
40
+ hasFutureReflections: boolean;
41
+ indicators: string[];
42
+ assessment: string;
43
+ }
44
+ /** Sustainability check result */
45
+ export interface SustainabilityResult {
46
+ sustainable: boolean;
47
+ growingRelations: number;
48
+ stableRelations: number;
49
+ decliningRelations: number;
50
+ recommendations: string[];
51
+ }
52
+ //# sourceMappingURL=seven-generations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seven-generations.d.ts","sourceRoot":"","sources":["../src/seven-generations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAEpD;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,iBAAiB,GAAG,cAAc,CAwBpE;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,iBAAiB,GAAG,sBAAsB,CAiC3E;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,iBAAiB,GAAG,oBAAoB,CAuDhF;AAID,oCAAoC;AACpC,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,+BAA+B;AAC/B,MAAM,WAAW,sBAAsB;IACrC,wBAAwB,EAAE,MAAM,CAAC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,kCAAkC;AAClC,MAAM,WAAW,oBAAoB;IACnC,WAAW,EAAE,OAAO,CAAC;IACrB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,eAAe,EAAE,MAAM,EAAE,CAAC;CAC3B"}