@medicine-wheel/mcp 4.26.2 → 4.26.4

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.
@@ -114,7 +114,7 @@ Please call these tools in sequence:
114
114
  2. ocap_compliance_checker - Verify data sovereignty
115
115
  3. wilson_paradigm_checker - Assess ontology/epistemology/axiology
116
116
 
117
- After audits, synthesize findings and recommend next steps. Be honest about gaps - this serves community protection.`,
117
+ After the audits, state what they found as current reality: facts about the plan today. Keep every hold they name (what must be in place before the research continues, reached with the community) as they state it. The pull is to fill each missing item, one task per item; that is not what we are doing. Pass each audit's next_tool_args to turn_to_creative_orientation to name the desired outcome on its own terms. Saying plainly what the audits found serves community protection.`,
118
118
  },
119
119
  },
120
120
  ];
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/prompts/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,OAAO,GAAa;IAC/B;QACE,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,kEAAkE;QAC/E,SAAS,EAAE;YACT;gBACE,IAAI,EAAE,WAAW;gBACjB,WAAW,EAAE,sDAAsD;gBACnE,QAAQ,EAAE,IAAI;aACf;YACD;gBACE,IAAI,EAAE,kBAAkB;gBACxB,WAAW,EAAE,mCAAmC;gBAChD,QAAQ,EAAE,IAAI;aACf;SACF;QACD,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACtB,MAAM,EAAE,SAAS,GAAG,MAAM,EAAE,gBAAgB,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC;YAE3D,MAAM,OAAO,GAAwB;gBACnC,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE;wBACP,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE;;oBAEE,gBAAgB;;;;;;;;4DAQwB;qBACjD;iBACF;gBACD,KAAK,EAAE;oBACL,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE;w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mF;gBACnG,cAAc,EAAE,oEAAoE;gBACpF,OAAO,EAAE,mEAAmE;gBAC5E,OAAO,EAAE,uEAAuE;aACjF,CAAC;YAEF,OAAO;gBACL;oBACE,IAAI,EAAE,MAAM;oBACZ,OAAO,EAAE;wBACP,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,8BAA8B,aAAa;;EAE3D,UAAU,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC,IAAI,qDAAqD;;;;;;;;;0DASxC;qBAC/C;iBACF;aACF,CAAC;QACJ,CAAC;KACF;CACF,CAAC"}
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Discovery Tools - Enable browsing and searching of medicine wheel data
3
3
  *
4
- * These tools address the gap: users couldn't find ceremonies, nodes, beats, or cycles
5
- * without already knowing IDs. Discovery enables relational exploration.
4
+ * These tools let users find ceremonies, nodes, beats, or cycles without already
5
+ * knowing their IDs. Discovery enables relational exploration.
6
6
  *
7
7
  * Adapted to use in-memory store instead of Redis/NCP.
8
8
  */
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * Discovery Tools - Enable browsing and searching of medicine wheel data
3
3
  *
4
- * These tools address the gap: users couldn't find ceremonies, nodes, beats, or cycles
5
- * without already knowing IDs. Discovery enables relational exploration.
4
+ * These tools let users find ceremonies, nodes, beats, or cycles without already
5
+ * knowing their IDs. Discovery enables relational exploration.
6
6
  *
7
7
  * Adapted to use in-memory store instead of Redis/NCP.
8
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"governance-transformation.d.ts","sourceRoot":"","sources":["../../src/tools/governance-transformation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkBH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC,eAAO,MAAM,6BAA6B,EAAE,IAAI,EA+K/C,CAAC"}
1
+ {"version":3,"file":"governance-transformation.d.ts","sourceRoot":"","sources":["../../src/tools/governance-transformation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkBH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAIxC,eAAO,MAAM,6BAA6B,EAAE,IAAI,EAmL/C,CAAC"}
@@ -9,6 +9,7 @@ import { createReviewCircle } from "@medicine-wheel/community-review";
9
9
  import { grantConsent } from "@medicine-wheel/consent-lifecycle";
10
10
  import { snapshotUnderstanding, wilsonValidityCheck } from "@medicine-wheel/transformation-tracker";
11
11
  import { store } from "../store.js";
12
+ import { TURN_SENTENCE, turnPointer } from "../validators/index.js";
12
13
  export const governanceTransformationTools = [
13
14
  {
14
15
  name: "mw_review_circle_open",
@@ -123,7 +124,7 @@ export const governanceTransformationTools = [
123
124
  },
124
125
  {
125
126
  name: "mw_snapshot_transformation",
126
- description: "Capture a snapshot of researcher understanding and perform a Wilson validity audit. Tracks growth, community impact, and relational shifts.",
127
+ description: "Capture a snapshot of researcher understanding and perform a Wilson validity audit. Tracks growth, community impact, and relational shifts. What the audit finds is stated as fact about the log today; when a dimension is not met, the answer points to turn_to_creative_orientation (next_tool, next_tool_args) for the desired outcome.",
127
128
  inputSchema: {
128
129
  type: "object",
129
130
  properties: {
@@ -168,8 +169,12 @@ export const governanceTransformationTools = [
168
169
  wilson_validity: validity,
169
170
  overall_valid: validity.overallValid,
170
171
  score: validity.score,
171
- recommendations: validity.recommendations,
172
- teaching: "If research doesn't change you as a person, then you haven't done it right. (A co-researcher's lesson that Wilson quotes, 2008, p. 135.)"
172
+ // The recommendations are findings, stated as facts about this log today.
173
+ recommendations: validity.overallValid
174
+ ? validity.recommendations
175
+ : [...validity.recommendations, TURN_SENTENCE],
176
+ teaching: "If research doesn't change you as a person, then you haven't done it right. (A co-researcher's lesson that Wilson quotes, 2008, p. 135.)",
177
+ ...(validity.overallValid ? {} : turnPointer("mw_snapshot_transformation", validity.recommendations)),
173
178
  };
174
179
  }
175
180
  catch (error) {
@@ -1 +1 @@
1
- {"version":3,"file":"governance-transformation.js","sourceRoot":"","sources":["../../src/tools/governance-transformation.ts"],"names":[],"m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AG,EAAE,EAAE,GAAG,IAAI,CAAC;gBAEhH,kEAAkE;gBAClE,MAAM,GAAG,GAAG;oBACV,EAAE,EAAE,SAAS,eAAe,EAAE;oBAC9B,eAAe;oBACf,SAAS,EAAE,EAAE;oBACb,WAAW,EAAE,EAAE;oBACf,gBAAgB,EAAE,EAAE;oBACpB,gBAAgB,EAAE,EAAE;oBACpB,iBAAiB,EAAE,EAAE;oBACrB,oBAAoB,EAAE,CAAC;oBACvB,qBAAqB,EAAE,CAAC;iBAClB,CAAC;gBAET,MAAM,QAAQ,GAAG;oBACf,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;oBACnC,SAAS;oBACT,aAAa;oBACb,aAAa;oBACb,cAAc,EAAE,CAAC,EAAE,yDAAyD;oBAC5E,eAAe,EAAE,GAAG;oBACpB,WAAW;oBACX,aAAa;iBACd,CAAC;gBAEF,MAAM,UAAU,GAAG,qBAAqB,CAAC,GAAG,EAAE,QAAe,CAAC,CAAC;gBAC/D,MAAM,QAAQ,GAAG,mBAAmB,CAAC,UAAU,CAAC,CAAC;gBAEjD,OAAO;oBACL,MAAM,EAAE,gBAAgB;oBACxB,eAAe,EAAE,QAAQ;oBACzB,aAAa,EAAE,QAAQ,CAAC,YAAY;oBACpC,KAAK,EAAE,QAAQ,CAAC,KAAK;oBACrB,eAAe,EAAE,QAAQ,CAAC,eAAe;oBACzC,QAAQ,EAAE,0IAA0I;iBACrJ,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YACrD,CAAC;QACH,CAAC;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"governance-transformation.js","sourceRoot":"","sources":["../../src/tools/governance-transformation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,kBAAkB,EAInB,MAAM,kCAAkC,CAAC;AAC1C,OAA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AAE,MAAM,CAAC,KAAK,CAAC,EAAE,CAAC;YACrD,CAAC;QACH,CAAC;KACF;CACF,CAAC"}
@@ -1,11 +1,17 @@
1
1
  /**
2
- * Orientation Tools — the question asked before the instrument is chosen.
2
+ * Orientation Tools — the question asked before the instrument is chosen, and
3
+ * the turn after a gap analysis.
3
4
  *
4
5
  * Two situations look identical under pressure and are not: something worked
5
- * and stopped (a fire — restore the prior state), and something has never
6
- * existed and is wanted (a creating act — advance toward it). They produce
7
- * different structures, and using the wrong instrument is how rigorous work
8
- * goes in circles.
6
+ * and stopped (a prior state to restore), and something has never existed and
7
+ * is wanted (a creating act, which advances toward it). They produce different
8
+ * structures, and using the wrong instrument is how rigorous work goes in
9
+ * circles.
10
+ *
11
+ * A gap analysis looks for what is missing. It can be useful, and it is not
12
+ * part of the creative orientation. After one, `turn_to_creative_orientation`
13
+ * keeps its findings as current reality and asks for the desired outcome, so a
14
+ * structural tension chart can follow.
9
15
  *
10
16
  * These tools are listed first because list order is scan order. Every string
11
17
  * here says what is true: the tool reads a claim the caller supplies. It does
@@ -1 +1 @@
1
- {"version":3,"file":"orientation.d.ts","sourceRoot":"","sources":["../../src/tools/orientation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAQxC,eAAO,MAAM,gBAAgB,EAAE,IAAI,EAqLlC,CAAC"}
1
+ {"version":3,"file":"orientation.d.ts","sourceRoot":"","sources":["../../src/tools/orientation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAcxC,eAAO,MAAM,gBAAgB,EAAE,IAAI,EAsOlC,CAAC"}
@@ -1,22 +1,28 @@
1
1
  /**
2
- * Orientation Tools — the question asked before the instrument is chosen.
2
+ * Orientation Tools — the question asked before the instrument is chosen, and
3
+ * the turn after a gap analysis.
3
4
  *
4
5
  * Two situations look identical under pressure and are not: something worked
5
- * and stopped (a fire — restore the prior state), and something has never
6
- * existed and is wanted (a creating act — advance toward it). They produce
7
- * different structures, and using the wrong instrument is how rigorous work
8
- * goes in circles.
6
+ * and stopped (a prior state to restore), and something has never existed and
7
+ * is wanted (a creating act, which advances toward it). They produce different
8
+ * structures, and using the wrong instrument is how rigorous work goes in
9
+ * circles.
10
+ *
11
+ * A gap analysis looks for what is missing. It can be useful, and it is not
12
+ * part of the creative orientation. After one, `turn_to_creative_orientation`
13
+ * keeps its findings as current reality and asks for the desired outcome, so a
14
+ * structural tension chart can follow.
9
15
  *
10
16
  * These tools are listed first because list order is scan order. Every string
11
17
  * here says what is true: the tool reads a claim the caller supplies. It does
12
18
  * not inspect the caller's reasoning, and it never refuses.
13
19
  */
14
20
  import { readOrientation, reorient, worthSaying, } from "@medicine-wheel/creative-orientation";
15
- import { openGapAnalysis, doorAdvice } from "@medicine-wheel/gap-analysis";
21
+ import { openGapAnalysis, doorAdvice, turnToCreativeOrientation, } from "@medicine-wheel/gap-analysis";
16
22
  export const orientationTools = [
17
23
  {
18
24
  name: "orient_before_solving",
19
- description: "Call this BEFORE any problem-solving, debugging, fixing, troubleshooting, root-cause analysis, or creative-problem-solving work. It asks the one question that decides which instrument fits: is there a prior state you are restoring? A prior state you can name, with evidence of when it existed, means the situation is a fire — problem-solving is correct and you should route to open_gap_analysis. No prior state means you are creating a state that has never existed, there is no baseline to close toward, and elimination framing will aim the work at a list of known failures rather than at the outcome — route to create_structural_tension_chart. REMEMBER: urgency is not evidence. Under pressure every situation feels like a fire. This tool reads the claim you supply, advises, and never refuses.",
25
+ description: "Call this BEFORE any problem-solving, debugging, fixing, troubleshooting, root-cause analysis, or creative-problem-solving work. It asks the one question that decides which instrument fits: is there a prior state you are restoring? A prior state you can name, with evidence of when it existed, routes to open_gap_analysis: a gap analysis looks for what is missing against that baseline. It can be useful, and it is not part of the creative orientation; after it, call turn_to_creative_orientation. No prior state means you are creating a state that has never existed, there is no baseline to measure against, and elimination framing will aim the work at a list of known failures rather than at the outcome: route to create_structural_tension_chart. REMEMBER: urgency is not evidence. Under pressure every situation feels like a fire. This tool reads the claim you supply, advises, and never refuses.",
20
26
  inputSchema: {
21
27
  type: "object",
22
28
  properties: {
@@ -53,7 +59,9 @@ export const orientationTools = [
53
59
  next_tool: reading.route === "gap-analysis"
54
60
  ? "open_gap_analysis"
55
61
  : "create_structural_tension_chart",
56
- teaching: "Problem-solving is not the lesser craft. It is the correct craft when something worked and stopped.",
62
+ teaching: reading.route === "gap-analysis"
63
+ ? "A gap analysis looks for what is missing against a baseline that existed. It can be useful, and it is not part of the creative orientation. After it, turn_to_creative_orientation keeps its findings as current reality and asks for the desired outcome."
64
+ : "Nothing is being restored. Name the desired outcome as something that will exist, state current reality as fact, and let the chart's action steps resolve the tension between them.",
57
65
  };
58
66
  }
59
67
  catch (error) {
@@ -68,7 +76,7 @@ export const orientationTools = [
68
76
  },
69
77
  {
70
78
  name: "open_gap_analysis",
71
- description: "The fire path, served without apology. Use this when a prior state existed and stopped — an outage, a regression, a build that passed last week, a reading that used to be within range — and the work is to restore it. Supply the baseline you are restoring and the evidence it was real; that pairing is what makes the difference between the two states the literal object of the work, and it is the one thing this instrument needs that a creating act cannot supply. Problem-solving is the correct craft here, not a degraded one, and nothing in this tool will try to talk you out of it. This tool reads the claim you supply, opens the analysis, and returns any advice raised at the door — it never refuses, and an analysis opened on a thin claim is still an analysis you can act on.",
79
+ description: "Open a gap analysis. A gap analysis looks for what is missing: it measures what is true now against a prior state that existed, and names the difference. Use it when a prior state existed and stopped: an outage, a regression, a build that passed last week, a reading that used to be within range. Supply the baseline and the evidence it was real; the analysis needs that pairing, and a creating act cannot supply it. The technique can be useful, and it is not part of the creative orientation. After it comes the turn: the pull is to fill each missing item, and that is not what we are doing. Call turn_to_creative_orientation with the returned analysis; it keeps the findings as current reality and asks for the desired outcome. This tool reads the claim you supply, opens the analysis, and returns any advice raised at the door. It never refuses, and an analysis opened on a thin claim is still returned.",
72
80
  inputSchema: {
73
81
  type: "object",
74
82
  properties: {
@@ -103,7 +111,8 @@ export const orientationTools = [
103
111
  status: "opened",
104
112
  analysis,
105
113
  door_advice: doorAdvice(analysis),
106
- teaching: "A fire deserves a real instrument, not a euphemism. An evidenced baseline is what makes the difference the object of the work.",
114
+ next_tool: "turn_to_creative_orientation",
115
+ teaching: "This analysis looks for what is missing against an evidenced baseline. The next pull is to fill each missing item. Turn instead: pass this analysis to turn_to_creative_orientation.",
107
116
  };
108
117
  }
109
118
  catch (error) {
@@ -116,6 +125,52 @@ export const orientationTools = [
116
125
  }
117
126
  },
118
127
  },
128
+ {
129
+ name: "turn_to_creative_orientation",
130
+ description: "Call this after open_gap_analysis, or after a check that reports what it did not find (accountability_validator, ocap_compliance_checker, wilson_paradigm_checker, mw_snapshot_transformation answer next_tool: turn_to_creative_orientation and next_tool_args to pass here). A gap analysis looks for what is missing, and the pull after one is to fill each missing item, one task per item. That is not what we are doing. This tool keeps the analysis's findings as current reality, stated as fact and never as tasks, and returns a reflection that names that pull. The next step is create_structural_tension_chart, which needs a desired outcome named on its own terms: what do we want to create, stated as something that will exist? Give desired_outcome and the tool also returns a draft chart input whose action_steps are empty, because no action step is taken from the findings; add a direction and pass it to create_structural_tension_chart. This tool reads what you supply, stores nothing, and never refuses.",
131
+ inputSchema: {
132
+ type: "object",
133
+ properties: {
134
+ analysis: {
135
+ type: "object",
136
+ description: "The analysis returned by open_gap_analysis (its `analysis` field): id, baseline, current, difference, steps. Or a check's findings, as a check returns them in next_tool_args.analysis: { check, findings, holds? }. Holds (what must be in place before the work continues) are kept as current reality, as the check states them.",
137
+ },
138
+ desired_outcome: {
139
+ type: "string",
140
+ description: "What you want to create, stated as something that will exist. Name it on its own terms, not from the findings. Leave it out if it is not named yet; the turn asks for it.",
141
+ },
142
+ },
143
+ required: ["analysis"],
144
+ },
145
+ handler: async (args) => {
146
+ try {
147
+ const { desired_outcome } = args;
148
+ // Some clients send an object argument as its JSON text.
149
+ const analysis = typeof args.analysis === "string" ? JSON.parse(args.analysis) : args.analysis;
150
+ const turn = turnToCreativeOrientation(analysis, {
151
+ desiredOutcome: typeof desired_outcome === "string" ? desired_outcome : undefined,
152
+ });
153
+ return {
154
+ status: "turned",
155
+ analysis_id: turn.analysisId,
156
+ current_reality: turn.currentReality,
157
+ reflection: turn.reflection,
158
+ next_tool: turn.nextStep.tool,
159
+ next_step: turn.nextStep,
160
+ chart_draft: turn.chartDraft,
161
+ desired_outcome_advice: turn.desiredOutcomeAdvice,
162
+ };
163
+ }
164
+ catch (error) {
165
+ const errorMsg = error instanceof Error ? error.message : String(error);
166
+ return {
167
+ status: "error",
168
+ message: `Failed to turn to the creative orientation: ${errorMsg}`,
169
+ error: errorMsg,
170
+ };
171
+ }
172
+ },
173
+ },
119
174
  {
120
175
  name: "check_emitted_outcome",
121
176
  description: "Call this on an outcome, option, or recommendation in the moment before you say it to a human. An elimination-shaped option, once a human selects it, stops looking like the agent's proposal and starts looking like the requirement — the framing outlives the moment it was offered in, and the work that follows aims at a list of known failures rather than at the state someone wanted. Supply the statement as you intend to speak it, plus the prior state it restores if one exists. When a prior state is named, elimination phrasing fits the situation and this tool says so plainly rather than sanding it down. When none is named, it returns a restatement prompt for you to finish — deliberately unfinished, because a machine that confidently rewrites what someone wants has decided it for them. This tool reads the statement you supply and never refuses.",
@@ -1 +1 @@
1
- {"version":3,"file":"orientation.js","sourceRoot":"","sources":["../../src/tools/orientation.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EACL,eAAe,EACf,QAAQ,EACR,WAAW,GACZ,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAE3E,MAAM,CAAC,MAAM,gBAAgB,GAAW;IACtC;QACE,IAAI,EAAE,uBAAuB;QAC7B,WAAW,EAAE,6xBAA6xB;QAC1yB,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YAC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E,OAAO,CAAC,MAAM;oBACtB,mBAAmB,EAAE,WAAW,CAAC,OAAO,CAAC;oBACzC,WAAW,EAAE,SAAS;wBACpB,CAAC,CAAC,OAAO,CAAC,gBAAgB,IAAI,QAAQ,CAAC,SAAS,CAAC;wBACjD,CAAC,CAAC,SAAS;oBACb,kBAAkB,EAAE,SAAS;wBAC3B,CAAC,CAAC,6MAA6M;wBAC/M,CAAC,CAAC,2JAA2J;oBAC/J,SAAS,EACP,OAAO,CAAC,KAAK,KAAK,cAAc;wBAC9B,CAAC,CAAC,mBAAmB;wBACrB,CAAC,CAAC,iCAAiC;oBACvC,QAAQ,EACN,uHAAuH;iBAC1H,CAAC;YACJ,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,QAAQ,GAAG,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBACxE,OAAO;oBACL,MAAM,EAAE,OAAO;oBACf,OAAO,EAAE,oCAAoC,QAAQ,EAAE;oBACvD,KAAK,EAAE,QAAQ;iBAChB,CAAC;YACJ,CAAC;QACH,CAAC;KACF;CACF,CAAC"}
@@ -1,3 +1,24 @@
1
1
  import type { Tool } from "../types.js";
2
+ /**
3
+ * What a check returns after it finds something missing. The findings are
4
+ * current reality: facts about the plan or the graph today. The pull after a
5
+ * check is to fill each missing item, one task per item, and that is not what
6
+ * we are doing. A hold stays as the check states it: what must be in place
7
+ * before the research continues, reached with the community and never turned
8
+ * into a task. The desired outcome is named on its own terms, through
9
+ * turn_to_creative_orientation.
10
+ */
11
+ export declare const TURN_TOOL: "turn_to_creative_orientation";
12
+ export declare const TURN_SENTENCE = "These findings are current reality: facts about the plan as it is today. The pull is to fill each one, one task per item; that is not what we are doing. Pass next_tool_args to turn_to_creative_orientation to name the desired outcome on its own terms. Any hold above stays while that happens.";
13
+ export declare function turnPointer(check: string, findings: string[], holds?: string[]): {
14
+ next_tool: "turn_to_creative_orientation";
15
+ next_tool_args: {
16
+ analysis: {
17
+ check: string;
18
+ findings: string[];
19
+ holds: string[];
20
+ };
21
+ };
22
+ };
2
23
  export declare const validators: Tool[];
3
24
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC,eAAO,MAAM,UAAU,EAAE,IAAI,EA2gB5B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAGxC;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,EAAG,8BAAuC,CAAC;AAEjE,eAAO,MAAM,aAAa,wSAC6Q,CAAC;AAExS,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,KAAK,GAAE,MAAM,EAAO;;;;;;;;;EAKlF;AAQD,eAAO,MAAM,UAAU,EAAE,IAAI,EAukB5B,CAAC"}
@@ -1,8 +1,31 @@
1
1
  import { store } from "../store.js";
2
+ /**
3
+ * What a check returns after it finds something missing. The findings are
4
+ * current reality: facts about the plan or the graph today. The pull after a
5
+ * check is to fill each missing item, one task per item, and that is not what
6
+ * we are doing. A hold stays as the check states it: what must be in place
7
+ * before the research continues, reached with the community and never turned
8
+ * into a task. The desired outcome is named on its own terms, through
9
+ * turn_to_creative_orientation.
10
+ */
11
+ export const TURN_TOOL = "turn_to_creative_orientation";
12
+ export const TURN_SENTENCE = "These findings are current reality: facts about the plan as it is today. The pull is to fill each one, one task per item; that is not what we are doing. Pass next_tool_args to turn_to_creative_orientation to name the desired outcome on its own terms. Any hold above stays while that happens.";
13
+ export function turnPointer(check, findings, holds = []) {
14
+ return {
15
+ next_tool: TURN_TOOL,
16
+ next_tool_args: { analysis: { check, findings, holds } },
17
+ };
18
+ }
19
+ /** "a", "a and b", "a, b and c". */
20
+ function inWords(items) {
21
+ if (items.length <= 1)
22
+ return items.join("");
23
+ return `${items.slice(0, -1).join(", ")} and ${items[items.length - 1]}`;
24
+ }
2
25
  export const validators = [
3
26
  {
4
27
  name: "accountability_validator",
5
- description: "Audit research plan for relational accountability alignment with Wilson's Indigenous paradigm. Checks ontology, epistemology, axiology, and relational obligations.",
28
+ description: "Audit research plan for relational accountability alignment with Wilson's Indigenous paradigm. Checks ontology, epistemology, axiology, and relational obligations. Each finding is stated as a fact about the plan today. When something is missing, the research holds while it is part of the plan, reached with the community; the answer names that hold and points to turn_to_creative_orientation (next_tool, next_tool_args) for the desired outcome.",
6
29
  inputSchema: {
7
30
  type: "object",
8
31
  properties: {
@@ -27,7 +50,10 @@ export const validators = [
27
50
  },
28
51
  handler: async (args) => {
29
52
  const plan = args.research_plan;
53
+ // Findings, each a fact about the plan today. `missing` names, for the
54
+ // hold, what must be part of the plan before the research continues.
30
55
  const gaps = [];
56
+ const missing = [];
31
57
  const strengths = [];
32
58
  let score = 0;
33
59
  // Check pre-relationship phase
@@ -36,7 +62,8 @@ export const validators = [
36
62
  score += 15;
37
63
  }
38
64
  else {
39
- gaps.push("CRITICAL: No pre-relationship phase; must build trust before data collection");
65
+ gaps.push("CRITICAL: The plan has no pre-relationship phase; data collection would begin before trust is built");
66
+ missing.push("a pre-relationship phase in which trust is built");
40
67
  }
41
68
  // Check advisory board
42
69
  if (plan.advisory_board_members > 0) {
@@ -44,7 +71,8 @@ export const validators = [
44
71
  score += 20;
45
72
  }
46
73
  else {
47
- gaps.push("CRITICAL: No community advisory board; research cannot proceed without community governance");
74
+ gaps.push("CRITICAL: The plan has no community advisory board; research does not proceed without community governance");
75
+ missing.push("community governance through an advisory board");
48
76
  }
49
77
  // Check Elder co-investigators
50
78
  if (plan.elder_investigators > 0) {
@@ -52,7 +80,8 @@ export const validators = [
52
80
  score += 20;
53
81
  }
54
82
  else {
55
- gaps.push("CRITICAL: No Elder co-investigators; Elder wisdom essential for cultural validity");
83
+ gaps.push("CRITICAL: The plan has no Elder co-investigators; its cultural validity rests on Elder knowledge it does not include");
84
+ missing.push("Elder co-investigators");
56
85
  }
57
86
  // Check ceremony integration
58
87
  if (plan.ceremony_integration && plan.ceremony_integration !== "none" && plan.ceremony_integration !== "none planned") {
@@ -60,7 +89,8 @@ export const validators = [
60
89
  score += 15;
61
90
  }
62
91
  else {
63
- gaps.push("CRITICAL: No ceremony integration; research is ceremony, not just methods");
92
+ gaps.push("CRITICAL: The plan does not integrate ceremony; research is ceremony, not just methods");
93
+ missing.push("ceremony throughout the research");
64
94
  }
65
95
  // Check community benefit
66
96
  if (plan.community_benefit && !plan.community_benefit.includes("Academic publication only")) {
@@ -68,7 +98,8 @@ export const validators = [
68
98
  score += 15;
69
99
  }
70
100
  else {
71
- gaps.push("CRITICAL: No reciprocal benefit; extractive approach; community must gain from research");
101
+ gaps.push("CRITICAL: The plan names no reciprocal benefit for the community; as written, the research is extractive");
102
+ missing.push("a benefit the community receives from the research");
72
103
  }
73
104
  // Check data storage (OCAP)
74
105
  if (plan.data_storage && (plan.data_storage.includes("on-premise") || plan.data_storage.includes("community"))) {
@@ -76,7 +107,8 @@ export const validators = [
76
107
  score += 10;
77
108
  }
78
109
  else {
79
- gaps.push("CRITICAL: Data not stored on-premise; OCAP® violation; community must possess data");
110
+ gaps.push("CRITICAL: The plan does not store the data on-premise or with the community; under OCAP® the community possesses its data");
111
+ missing.push("community possession of the data (OCAP®)");
80
112
  }
81
113
  // Check REB
82
114
  if (plan.reb_status && plan.reb_status.includes("community")) {
@@ -84,8 +116,13 @@ export const validators = [
84
116
  score += 5;
85
117
  }
86
118
  else {
87
- gaps.push("IMPORTANT: Community REB not identified; dual review required (TCPS2 Chapter 9)");
119
+ gaps.push("IMPORTANT: The plan identifies no community REB; TCPS2 Chapter 9 requires dual review");
120
+ missing.push("the community's REB (dual review, TCPS2 Chapter 9)");
88
121
  }
122
+ const hold = missing.length > 0
123
+ ? `Hold the research while ${inWords(missing)} ${missing.length === 1 ? "is" : "are"} part of the plan.`
124
+ : null;
125
+ const holdManner = "The hold is met with the community, its Elders and its leaders: the plan is revised with them, under an OCAP® data governance agreement, with ceremony throughout the research and not only at its end. It is not filled in from this list.";
89
126
  const status = score >= 70 ? "ALIGNED" : score >= 40 ? "NEEDS IMPROVEMENT" : "CRITICAL GAPS";
90
127
  return {
91
128
  audit_status: status,
@@ -110,24 +147,25 @@ export const validators = [
110
147
  },
111
148
  critical_gaps: gaps,
112
149
  strengths: strengths,
113
- recommendations: gaps.length > 0 ? [
114
- "Pause research until gaps addressed",
115
- "Consult with Elders and community leaders",
116
- "Revise research plan with community input",
117
- "Establish OCAP® data governance agreement",
118
- "Integrate ceremony throughout (not just at end)",
150
+ recommendations: hold ? [
151
+ hold,
152
+ holdManner,
153
+ TURN_SENTENCE,
119
154
  ] : [
120
155
  "Research plan is well-aligned with Indigenous paradigm",
121
156
  "Continue with community oversight",
122
157
  "Regular accountability audits recommended",
123
158
  ],
124
- next_steps: score < 70 ? "CANNOT PROCEED until critical gaps addressed" : "Proceed with ongoing community oversight",
159
+ next_steps: score < 70
160
+ ? `CANNOT PROCEED: the research holds while ${inWords(missing)} ${missing.length === 1 ? "is" : "are"} part of the plan, reached with the community.`
161
+ : "Proceed with ongoing community oversight",
162
+ ...(hold ? turnPointer("accountability_validator", gaps, [hold, holdManner]) : {}),
125
163
  };
126
164
  },
127
165
  },
128
166
  {
129
167
  name: "ocap_compliance_checker",
130
- description: "Verify OCAP® (Ownership, Control, Access, Possession) data sovereignty compliance. Ensures First Nations principles are honored.",
168
+ description: "Verify OCAP® (Ownership, Control, Access, Possession) data sovereignty compliance. Ensures First Nations principles are honored. Each violation is stated as a fact about the data plan today, beside the OCAP® principle it meets. On a violation the research holds while the community's agreement, custody and oversight are part of the data plan; the answer names that hold and points to turn_to_creative_orientation (next_tool, next_tool_args) for the desired outcome.",
131
169
  inputSchema: {
132
170
  type: "object",
133
171
  properties: {
@@ -154,21 +192,21 @@ export const validators = [
154
192
  compliant.push("✓ OWNERSHIP: Community ownership explicitly stated");
155
193
  }
156
194
  else {
157
- violations.push("✗ OWNERSHIP: Data ownership must belong to community, not researcher/institution");
195
+ violations.push("✗ OWNERSHIP: The plan does not state community ownership; under OCAP® the data belongs to the community, not the researcher or institution");
158
196
  }
159
197
  // Control
160
198
  if (plan.community_approval) {
161
199
  compliant.push("✓ CONTROL: Community approval required for data use");
162
200
  }
163
201
  else {
164
- violations.push("✗ CONTROL: Community must control data collection, use, and sharing");
202
+ violations.push("✗ CONTROL: The plan does not require community approval; under OCAP® the community controls collection, use and sharing");
165
203
  }
166
204
  // Access
167
205
  if (plan.access_controls && plan.access_controls !== "open") {
168
206
  compliant.push("✓ ACCESS: Access controls defined");
169
207
  }
170
208
  else {
171
- violations.push("✗ ACCESS: Community must determine who accesses data; cannot be open access without permission");
209
+ violations.push("✗ ACCESS: The plan sets no access controls, or sets open access; under OCAP® the community determines who accesses the data, and open access needs its permission");
172
210
  }
173
211
  // Possession
174
212
  const hybridCloudPatterns = ["hybrid", "encrypted-cloud", "sovereign-cloud", "community-cloud"];
@@ -183,11 +221,16 @@ export const validators = [
183
221
  compliant.push("⚠ POSSESSION: Hybrid/encrypted cloud — conditional pass pending sovereignty verification");
184
222
  }
185
223
  else {
186
- violations.push("✗ POSSESSION: Data must be physically/digitally possessed by community (on-premise)");
224
+ violations.push("✗ POSSESSION: The plan stores the data outside community custody; under OCAP® the community possesses the data, physically or digitally (on-premise)");
187
225
  }
188
226
  const isCompliant = violations.length === 0;
189
227
  const isConditional = isCompliant && possessionConditional;
190
228
  const possessionStatus = isOnPremise ? "✓" : isHybridCloud ? "⚠" : "✗";
229
+ // The holds, as what must be in place before the research continues.
230
+ const conditionalPossession = "POSSESSION passes only on condition that the community holds every encryption key (not the cloud provider), the data resides in a jurisdiction the community's governance approved, the community can extract or delete all data without vendor lock-in, its data stewards see the access logs, and sovereignty audits run under community oversight. Until the community confirms each condition, the pass stays conditional.";
231
+ const conditionalManner = "These conditions are confirmed with the community, not assumed and not filled in from this list.";
232
+ const violationHold = "Hold the research while an OCAP® data governance agreement with the community, community custody of the data (on-premise or community-controlled) and community oversight are part of the data plan.";
233
+ const violationManner = "That agreement is reached with the community, not filled in; consent is the community's to give.";
191
234
  const result = {
192
235
  ocap_status: isConditional ? "CONDITIONAL — CLOUD SOVEREIGNTY" : isCompliant ? "COMPLIANT" : "VIOLATIONS DETECTED",
193
236
  violations,
@@ -215,20 +258,18 @@ export const validators = [
215
258
  },
216
259
  },
217
260
  recommendations: isConditional ? [
218
- "Verify community holds all encryption keys — not the cloud provider",
219
- "Confirm data residency jurisdiction is approved by community governance",
220
- "Ensure community can extract/delete all data without vendor lock-in",
221
- "Establish access log visibility for community data stewards",
222
- "Schedule regular sovereignty audits with community oversight",
261
+ conditionalPossession,
262
+ conditionalManner,
263
+ TURN_SENTENCE,
223
264
  ] : isCompliant ? [
224
265
  "OCAP® compliance confirmed",
225
266
  "Maintain community governance throughout research",
226
267
  "Regular audits to ensure ongoing compliance",
227
268
  ] : [
228
269
  "STOP: Cannot proceed with current data plan",
229
- "Develop OCAP®-compliant data governance agreement with community",
230
- "Revise storage to on-premise/community controlled",
231
- "Establish community oversight mechanisms",
270
+ violationHold,
271
+ violationManner,
272
+ TURN_SENTENCE,
232
273
  ],
233
274
  tcps2_chapter9: {
234
275
  note: "Canadian institutions require TCPS2 Chapter 9 compliance",
@@ -253,6 +294,16 @@ export const validators = [
253
294
  note: "Cloud storage can honor OCAP® Possession when community retains effective control through encryption and governance. This is a recognized path, not an exception.",
254
295
  };
255
296
  }
297
+ if (!isCompliant) {
298
+ Object.assign(result, turnPointer("ocap_compliance_checker", violations, [
299
+ "STOP: Cannot proceed with current data plan",
300
+ violationHold,
301
+ violationManner,
302
+ ]));
303
+ }
304
+ else if (isConditional) {
305
+ Object.assign(result, turnPointer("ocap_compliance_checker", compliant.filter((c) => c.startsWith("⚠")), [conditionalPossession, conditionalManner]));
306
+ }
256
307
  return result;
257
308
  },
258
309
  },
@@ -392,7 +443,7 @@ export const validators = [
392
443
  },
393
444
  {
394
445
  name: "wilson_paradigm_checker",
395
- description: "Assess research alignment with Shawn Wilson's Indigenous research paradigm: ontology (relational reality), epistemology (ceremony as knowledge-making), axiology (relational accountability).",
446
+ description: "Assess research alignment with Shawn Wilson's Indigenous research paradigm: ontology (relational reality), epistemology (ceremony as knowledge-making), axiology (relational accountability). What the description and the store show is stated as fact. When something is not shown, the answer keeps the hold (ask the community what its own protocol requires before proceeding) and points to turn_to_creative_orientation (next_tool, next_tool_args) for the desired outcome.",
396
447
  inputSchema: {
397
448
  type: "object",
398
449
  properties: {
@@ -428,6 +479,21 @@ export const validators = [
428
479
  const hasRelational = hasRelational_text || hasRelationsInStore;
429
480
  const hasCeremony = hasCeremony_text || hasCeremonyInStore;
430
481
  const hasAccountability = hasAccountability_text || hasAccountabilityNodes;
482
+ // What the description and the store show, one fact per dimension.
483
+ const allShown = hasRelational && hasCeremony && hasAccountability;
484
+ const dimensionFacts = [
485
+ hasRelational
486
+ ? "Relational framing is shown in the description or in the store"
487
+ : "The description and the store show no relational framing (CRITICAL)",
488
+ hasCeremony
489
+ ? "Ceremony is shown in the description or in the store"
490
+ : "The description and the store show no ceremony (CRITICAL)",
491
+ hasAccountability
492
+ ? "Reciprocity and accountability are shown in the description or in the store"
493
+ : "The description and the store show no reciprocity or accountability (CRITICAL)",
494
+ ];
495
+ // The hold, kept as Wilson's sources give it.
496
+ const protocolHold = "Before proceeding, ask the community whose knowledge this concerns what its own protocol requires (p. 54; p. 136)";
431
497
  return {
432
498
  framework: "Shawn Wilson's Indigenous Research Paradigm",
433
499
  research_description,
@@ -489,16 +555,16 @@ export const validators = [
489
555
  source: "medicine-wheel://wilson/framework",
490
556
  },
491
557
  note: "This check matches keywords in a description: the suite's own heuristic, not a judgement Wilson makes. His book 'is not intended to impose conclusions on other people or to be a manual of techniques for their research' (Wilson 2008, p. 136); and in the Indigenous world 'you are recognized by your deeds… Not by what you say on paper' (Lewis Cardinal, p. 91). Read the relations actually made, or ask people (#65).",
492
- recommendations: hasRelational && hasCeremony && hasAccountability ? [
558
+ recommendations: allShown ? [
493
559
  "The keywords of relational framing, ceremony and accountability are present",
494
560
  "Ask the people involved Wilson's six questions (p. 77; medicine-wheel://wilson/framework, researcher_questions)",
495
561
  "Follow the community's own protocol for who is consulted (Atkinson, quoted p. 54)",
496
562
  ] : [
497
- "Strengthen relational framing" + (!hasRelational ? " (CRITICAL)" : ""),
498
- "Integrate ceremony throughout" + (!hasCeremony ? " (CRITICAL)" : ""),
499
- "Define reciprocal benefits" + (!hasAccountability ? " (CRITICAL)" : ""),
500
- "Before proceeding, ask the community whose knowledge this concerns what its own protocol requires (p. 54; p. 136)",
563
+ ...dimensionFacts,
564
+ protocolHold,
565
+ TURN_SENTENCE,
501
566
  ],
567
+ ...(allShown ? {} : turnPointer("wilson_paradigm_checker", dimensionFacts.filter((f) => f.endsWith("(CRITICAL)")), [protocolHold])),
502
568
  };
503
569
  },
504
570
  },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/validators/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,MAAM,CAAC,MAAM,UAAU,GAAW;IAChC;QACE,IAAI,EAAE,0BAA0B;QAChC,WAAW,EAAE,qKAAqK;QAClL,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,UAAU,EAAE;gBACV,aAAa,EAAE;oBACb,IAAI,EAAE,QAAQ;oBACd,WAAW,EAAE,mCAAmC;oBAChD,UAAU,EAAE;wBACV,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBACzB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC3B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;wBAC5B,sBAA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AAE;oBACZ,yBAAyB,EAAE,4HAA4H;oBACvJ,oBAAoB,EAAE,+EAA+E;oBACrG,WAAW,EAAE,wGAAwG;oBACrH,MAAM,EAAE,mCAAmC;iBAC5C;gBACD,IAAI,EAAE,gaAAga;gBACta,eAAe,EAAE,QAAQ,CAAC,CAAC,CAAC;oBAC1B,6EAA6E;oBAC7E,iHAAiH;oBACjH,mFAAmF;iBACpF,CAAC,CAAC,CAAC;oBACF,GAAG,cAAc;oBACjB,YAAY;oBACZ,aAAa;iBACd;gBACD,GAAG,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,WAAW,CAC7B,yBAAyB,EACzB,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC,EACtD,CAAC,YAAY,CAAC,CACf,CAAC;aACH,CAAC;QACJ,CAAC;KACF;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicine-wheel/mcp",
3
- "version": "4.26.2",
3
+ "version": "4.26.4",
4
4
  "description": "Medicine Wheel MCP Server — Integrated Indigenous Paradigm Research Framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -36,26 +36,26 @@
36
36
  "ceremony"
37
37
  ],
38
38
  "dependencies": {
39
- "@medicine-wheel/ceremony-protocol": "^0.26.2",
40
- "@medicine-wheel/community-review": "^0.26.2",
41
- "@medicine-wheel/consent-lifecycle": "^0.26.2",
42
- "@medicine-wheel/creative-orientation": "^0.26.2",
43
- "@medicine-wheel/events": "^0.26.2",
44
- "@medicine-wheel/fire-keeper": "^0.26.2",
45
- "@medicine-wheel/gap-analysis": "^0.26.2",
46
- "@medicine-wheel/graph-viz": "^0.26.2",
47
- "@medicine-wheel/honcho": "^0.26.2",
48
- "@medicine-wheel/importance-unit": "^0.26.2",
49
- "@medicine-wheel/infra": "^0.26.2",
50
- "@medicine-wheel/memory": "^0.26.2",
51
- "@medicine-wheel/narrative-engine": "^0.26.2",
52
- "@medicine-wheel/ontology-core": "^0.26.2",
53
- "@medicine-wheel/prompt-decomposition": "^0.26.2",
54
- "@medicine-wheel/relational-index": "^0.26.2",
55
- "@medicine-wheel/relational-query": "^0.26.2",
56
- "@medicine-wheel/session-reader": "^0.26.2",
57
- "@medicine-wheel/transformation-tracker": "^0.26.2",
58
- "@medicine-wheel/ui-components": "^0.26.2",
39
+ "@medicine-wheel/ceremony-protocol": "^0.26.4",
40
+ "@medicine-wheel/community-review": "^0.26.4",
41
+ "@medicine-wheel/consent-lifecycle": "^0.26.4",
42
+ "@medicine-wheel/creative-orientation": "^0.26.4",
43
+ "@medicine-wheel/events": "^0.26.4",
44
+ "@medicine-wheel/fire-keeper": "^0.26.4",
45
+ "@medicine-wheel/gap-analysis": "^0.26.4",
46
+ "@medicine-wheel/graph-viz": "^0.26.4",
47
+ "@medicine-wheel/honcho": "^0.26.4",
48
+ "@medicine-wheel/importance-unit": "^0.26.4",
49
+ "@medicine-wheel/infra": "^0.26.4",
50
+ "@medicine-wheel/memory": "^0.26.4",
51
+ "@medicine-wheel/narrative-engine": "^0.26.4",
52
+ "@medicine-wheel/ontology-core": "^0.26.4",
53
+ "@medicine-wheel/prompt-decomposition": "^0.26.4",
54
+ "@medicine-wheel/relational-index": "^0.26.4",
55
+ "@medicine-wheel/relational-query": "^0.26.4",
56
+ "@medicine-wheel/session-reader": "^0.26.4",
57
+ "@medicine-wheel/transformation-tracker": "^0.26.4",
58
+ "@medicine-wheel/ui-components": "^0.26.4",
59
59
  "@modelcontextprotocol/sdk": "^1.12.1"
60
60
  },
61
61
  "devDependencies": {