@tribeunal/mcp-server 1.14.1 → 1.14.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/CHANGELOG.md +7 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/tools/decisions.d.ts +0 -297
- package/dist/tools/decisions.d.ts.map +0 -1
- package/dist/tools/decisions.js +0 -102
- package/dist/tools/decisions.js.map +0 -1
- package/dist/tools/trials.d.ts +0 -78
- package/dist/tools/trials.d.ts.map +0 -1
- package/dist/tools/trials.js +0 -29
- package/dist/tools/trials.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Tribeunal MCP Server Changelog
|
|
2
2
|
|
|
3
|
+
## [1.14.2]
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- No functional changes. Published through the tag-triggered release workflow to prove npm
|
|
7
|
+
trusted publishing end to end — 1.14.1 had to be published by hand while the trusted
|
|
8
|
+
publisher was not yet configured.
|
|
9
|
+
|
|
3
10
|
## [1.14.1]
|
|
4
11
|
|
|
5
12
|
### Changed
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tribeunal/mcp-server",
|
|
3
|
-
"version": "1.14.
|
|
3
|
+
"version": "1.14.2",
|
|
4
4
|
"description": "MCP server for Tribeunal \u2014 the community jury platform where humans and AI agents create cases, join juries, weigh evidence and vote",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const QuickYesNoSchema: z.ZodObject<{
|
|
3
|
-
question: z.ZodString;
|
|
4
|
-
context: z.ZodOptional<z.ZodString>;
|
|
5
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
6
|
-
stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
-
categories: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8
|
-
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
question: string;
|
|
10
|
-
urgency: "low" | "medium" | "high" | "critical";
|
|
11
|
-
categories?: string[] | undefined;
|
|
12
|
-
stakeholders?: string[] | undefined;
|
|
13
|
-
context?: string | undefined;
|
|
14
|
-
}, {
|
|
15
|
-
question: string;
|
|
16
|
-
categories?: string[] | undefined;
|
|
17
|
-
stakeholders?: string[] | undefined;
|
|
18
|
-
context?: string | undefined;
|
|
19
|
-
urgency?: "low" | "medium" | "high" | "critical" | undefined;
|
|
20
|
-
}>;
|
|
21
|
-
export declare const CompareOptionsSchema: z.ZodObject<{
|
|
22
|
-
decision: z.ZodString;
|
|
23
|
-
options: z.ZodArray<z.ZodObject<{
|
|
24
|
-
name: z.ZodString;
|
|
25
|
-
description: z.ZodString;
|
|
26
|
-
pros: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
27
|
-
cons: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
description: string;
|
|
30
|
-
name: string;
|
|
31
|
-
pros?: string[] | undefined;
|
|
32
|
-
cons?: string[] | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
description: string;
|
|
35
|
-
name: string;
|
|
36
|
-
pros?: string[] | undefined;
|
|
37
|
-
cons?: string[] | undefined;
|
|
38
|
-
}>, "many">;
|
|
39
|
-
criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40
|
-
timeframe: z.ZodDefault<z.ZodNumber>;
|
|
41
|
-
stakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
options: {
|
|
44
|
-
description: string;
|
|
45
|
-
name: string;
|
|
46
|
-
pros?: string[] | undefined;
|
|
47
|
-
cons?: string[] | undefined;
|
|
48
|
-
}[];
|
|
49
|
-
timeframe: number;
|
|
50
|
-
decision: string;
|
|
51
|
-
stakeholders?: string[] | undefined;
|
|
52
|
-
criteria?: string[] | undefined;
|
|
53
|
-
}, {
|
|
54
|
-
options: {
|
|
55
|
-
description: string;
|
|
56
|
-
name: string;
|
|
57
|
-
pros?: string[] | undefined;
|
|
58
|
-
cons?: string[] | undefined;
|
|
59
|
-
}[];
|
|
60
|
-
decision: string;
|
|
61
|
-
timeframe?: number | undefined;
|
|
62
|
-
stakeholders?: string[] | undefined;
|
|
63
|
-
criteria?: string[] | undefined;
|
|
64
|
-
}>;
|
|
65
|
-
export declare const SeekExpertOpinionSchema: z.ZodObject<{
|
|
66
|
-
topic: z.ZodString;
|
|
67
|
-
question: z.ZodString;
|
|
68
|
-
context: z.ZodString;
|
|
69
|
-
expertiseAreas: z.ZodArray<z.ZodString, "many">;
|
|
70
|
-
urgency: z.ZodDefault<z.ZodEnum<["low", "medium", "high"]>>;
|
|
71
|
-
}, "strip", z.ZodTypeAny, {
|
|
72
|
-
question: string;
|
|
73
|
-
context: string;
|
|
74
|
-
urgency: "low" | "medium" | "high";
|
|
75
|
-
topic: string;
|
|
76
|
-
expertiseAreas: string[];
|
|
77
|
-
}, {
|
|
78
|
-
question: string;
|
|
79
|
-
context: string;
|
|
80
|
-
topic: string;
|
|
81
|
-
expertiseAreas: string[];
|
|
82
|
-
urgency?: "low" | "medium" | "high" | undefined;
|
|
83
|
-
}>;
|
|
84
|
-
export declare const PollStakeholdersSchema: z.ZodObject<{
|
|
85
|
-
topic: z.ZodString;
|
|
86
|
-
question: z.ZodString;
|
|
87
|
-
stakeholderGroups: z.ZodArray<z.ZodString, "many">;
|
|
88
|
-
options: z.ZodArray<z.ZodObject<{
|
|
89
|
-
name: z.ZodString;
|
|
90
|
-
description: z.ZodOptional<z.ZodString>;
|
|
91
|
-
}, "strip", z.ZodTypeAny, {
|
|
92
|
-
name: string;
|
|
93
|
-
description?: string | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
name: string;
|
|
96
|
-
description?: string | undefined;
|
|
97
|
-
}>, "many">;
|
|
98
|
-
anonymous: z.ZodDefault<z.ZodBoolean>;
|
|
99
|
-
deadline: z.ZodDefault<z.ZodNumber>;
|
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
options: {
|
|
102
|
-
name: string;
|
|
103
|
-
description?: string | undefined;
|
|
104
|
-
}[];
|
|
105
|
-
question: string;
|
|
106
|
-
topic: string;
|
|
107
|
-
stakeholderGroups: string[];
|
|
108
|
-
anonymous: boolean;
|
|
109
|
-
deadline: number;
|
|
110
|
-
}, {
|
|
111
|
-
options: {
|
|
112
|
-
name: string;
|
|
113
|
-
description?: string | undefined;
|
|
114
|
-
}[];
|
|
115
|
-
question: string;
|
|
116
|
-
topic: string;
|
|
117
|
-
stakeholderGroups: string[];
|
|
118
|
-
anonymous?: boolean | undefined;
|
|
119
|
-
deadline?: number | undefined;
|
|
120
|
-
}>;
|
|
121
|
-
export declare const ConsensusBuilderSchema: z.ZodObject<{
|
|
122
|
-
initiative: z.ZodString;
|
|
123
|
-
description: z.ZodString;
|
|
124
|
-
stakeholderGroups: z.ZodArray<z.ZodString, "many">;
|
|
125
|
-
consensusThreshold: z.ZodDefault<z.ZodEnum<["simple_majority", "qualified_majority", "unanimous"]>>;
|
|
126
|
-
phases: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
127
|
-
name: z.ZodString;
|
|
128
|
-
description: z.ZodString;
|
|
129
|
-
duration: z.ZodNumber;
|
|
130
|
-
}, "strip", z.ZodTypeAny, {
|
|
131
|
-
description: string;
|
|
132
|
-
name: string;
|
|
133
|
-
duration: number;
|
|
134
|
-
}, {
|
|
135
|
-
description: string;
|
|
136
|
-
name: string;
|
|
137
|
-
duration: number;
|
|
138
|
-
}>, "many">>;
|
|
139
|
-
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
description: string;
|
|
141
|
-
stakeholderGroups: string[];
|
|
142
|
-
initiative: string;
|
|
143
|
-
consensusThreshold: "simple_majority" | "qualified_majority" | "unanimous";
|
|
144
|
-
phases?: {
|
|
145
|
-
description: string;
|
|
146
|
-
name: string;
|
|
147
|
-
duration: number;
|
|
148
|
-
}[] | undefined;
|
|
149
|
-
}, {
|
|
150
|
-
description: string;
|
|
151
|
-
stakeholderGroups: string[];
|
|
152
|
-
initiative: string;
|
|
153
|
-
consensusThreshold?: "simple_majority" | "qualified_majority" | "unanimous" | undefined;
|
|
154
|
-
phases?: {
|
|
155
|
-
description: string;
|
|
156
|
-
name: string;
|
|
157
|
-
duration: number;
|
|
158
|
-
}[] | undefined;
|
|
159
|
-
}>;
|
|
160
|
-
export declare const AnalyzeReadinessSchema: z.ZodObject<{
|
|
161
|
-
decisionId: z.ZodString;
|
|
162
|
-
criteria: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
163
|
-
}, "strip", z.ZodTypeAny, {
|
|
164
|
-
decisionId: string;
|
|
165
|
-
criteria?: string[] | undefined;
|
|
166
|
-
}, {
|
|
167
|
-
decisionId: string;
|
|
168
|
-
criteria?: string[] | undefined;
|
|
169
|
-
}>;
|
|
170
|
-
export declare const PredictOutcomeSchema: z.ZodObject<{
|
|
171
|
-
decisionId: z.ZodString;
|
|
172
|
-
includeConfidence: z.ZodDefault<z.ZodBoolean>;
|
|
173
|
-
}, "strip", z.ZodTypeAny, {
|
|
174
|
-
decisionId: string;
|
|
175
|
-
includeConfidence: boolean;
|
|
176
|
-
}, {
|
|
177
|
-
decisionId: string;
|
|
178
|
-
includeConfidence?: boolean | undefined;
|
|
179
|
-
}>;
|
|
180
|
-
export declare const IdentifyBiasSchema: z.ZodObject<{
|
|
181
|
-
decisionId: z.ZodString;
|
|
182
|
-
biasTypes: z.ZodOptional<z.ZodArray<z.ZodEnum<["selection", "confirmation", "availability", "anchoring", "participation"]>, "many">>;
|
|
183
|
-
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
decisionId: string;
|
|
185
|
-
biasTypes?: ("selection" | "confirmation" | "availability" | "anchoring" | "participation")[] | undefined;
|
|
186
|
-
}, {
|
|
187
|
-
decisionId: string;
|
|
188
|
-
biasTypes?: ("selection" | "confirmation" | "availability" | "anchoring" | "participation")[] | undefined;
|
|
189
|
-
}>;
|
|
190
|
-
export declare const FindSimilarDecisionsSchema: z.ZodObject<{
|
|
191
|
-
topic: z.ZodString;
|
|
192
|
-
decisionType: z.ZodOptional<z.ZodEnum<["case", "advice", "poll"]>>;
|
|
193
|
-
timeframe: z.ZodDefault<z.ZodEnum<["week", "month", "quarter", "year", "all"]>>;
|
|
194
|
-
includeOutcomes: z.ZodDefault<z.ZodBoolean>;
|
|
195
|
-
}, "strip", z.ZodTypeAny, {
|
|
196
|
-
timeframe: "week" | "month" | "quarter" | "year" | "all";
|
|
197
|
-
topic: string;
|
|
198
|
-
includeOutcomes: boolean;
|
|
199
|
-
decisionType?: "case" | "advice" | "poll" | undefined;
|
|
200
|
-
}, {
|
|
201
|
-
topic: string;
|
|
202
|
-
decisionType?: "case" | "advice" | "poll" | undefined;
|
|
203
|
-
timeframe?: "week" | "month" | "quarter" | "year" | "all" | undefined;
|
|
204
|
-
includeOutcomes?: boolean | undefined;
|
|
205
|
-
}>;
|
|
206
|
-
export declare const CalculateConfidenceSchema: z.ZodObject<{
|
|
207
|
-
decisionId: z.ZodString;
|
|
208
|
-
factors: z.ZodOptional<z.ZodArray<z.ZodEnum<["participation_rate", "evidence_quality", "expert_involvement", "consensus_level", "time_adequacy"]>, "many">>;
|
|
209
|
-
}, "strip", z.ZodTypeAny, {
|
|
210
|
-
decisionId: string;
|
|
211
|
-
factors?: ("participation_rate" | "evidence_quality" | "expert_involvement" | "consensus_level" | "time_adequacy")[] | undefined;
|
|
212
|
-
}, {
|
|
213
|
-
decisionId: string;
|
|
214
|
-
factors?: ("participation_rate" | "evidence_quality" | "expert_involvement" | "consensus_level" | "time_adequacy")[] | undefined;
|
|
215
|
-
}>;
|
|
216
|
-
export declare const ScheduleReminderSchema: z.ZodObject<{
|
|
217
|
-
decisionId: z.ZodString;
|
|
218
|
-
reminderType: z.ZodEnum<["deadline_approaching", "low_participation", "consensus_reached", "custom"]>;
|
|
219
|
-
timing: z.ZodNumber;
|
|
220
|
-
recipients: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
221
|
-
message: z.ZodOptional<z.ZodString>;
|
|
222
|
-
}, "strip", z.ZodTypeAny, {
|
|
223
|
-
decisionId: string;
|
|
224
|
-
reminderType: "custom" | "deadline_approaching" | "low_participation" | "consensus_reached";
|
|
225
|
-
timing: number;
|
|
226
|
-
message?: string | undefined;
|
|
227
|
-
recipients?: string[] | undefined;
|
|
228
|
-
}, {
|
|
229
|
-
decisionId: string;
|
|
230
|
-
reminderType: "custom" | "deadline_approaching" | "low_participation" | "consensus_reached";
|
|
231
|
-
timing: number;
|
|
232
|
-
message?: string | undefined;
|
|
233
|
-
recipients?: string[] | undefined;
|
|
234
|
-
}>;
|
|
235
|
-
export declare const EscalateDeadlockSchema: z.ZodObject<{
|
|
236
|
-
decisionId: z.ZodString;
|
|
237
|
-
reason: z.ZodString;
|
|
238
|
-
escalationType: z.ZodEnum<["expert_review", "extended_timeline", "stakeholder_expansion", "mediation"]>;
|
|
239
|
-
newStakeholders: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
240
|
-
}, "strip", z.ZodTypeAny, {
|
|
241
|
-
decisionId: string;
|
|
242
|
-
reason: string;
|
|
243
|
-
escalationType: "expert_review" | "extended_timeline" | "stakeholder_expansion" | "mediation";
|
|
244
|
-
newStakeholders?: string[] | undefined;
|
|
245
|
-
}, {
|
|
246
|
-
decisionId: string;
|
|
247
|
-
reason: string;
|
|
248
|
-
escalationType: "expert_review" | "extended_timeline" | "stakeholder_expansion" | "mediation";
|
|
249
|
-
newStakeholders?: string[] | undefined;
|
|
250
|
-
}>;
|
|
251
|
-
export declare const ImplementOutcomeSchema: z.ZodObject<{
|
|
252
|
-
decisionId: z.ZodString;
|
|
253
|
-
actionItems: z.ZodArray<z.ZodObject<{
|
|
254
|
-
task: z.ZodString;
|
|
255
|
-
assignee: z.ZodOptional<z.ZodString>;
|
|
256
|
-
deadline: z.ZodOptional<z.ZodNumber>;
|
|
257
|
-
}, "strip", z.ZodTypeAny, {
|
|
258
|
-
task: string;
|
|
259
|
-
deadline?: number | undefined;
|
|
260
|
-
assignee?: string | undefined;
|
|
261
|
-
}, {
|
|
262
|
-
task: string;
|
|
263
|
-
deadline?: number | undefined;
|
|
264
|
-
assignee?: string | undefined;
|
|
265
|
-
}>, "many">;
|
|
266
|
-
trackingMethod: z.ZodDefault<z.ZodEnum<["manual", "automated", "milestone"]>>;
|
|
267
|
-
}, "strip", z.ZodTypeAny, {
|
|
268
|
-
decisionId: string;
|
|
269
|
-
actionItems: {
|
|
270
|
-
task: string;
|
|
271
|
-
deadline?: number | undefined;
|
|
272
|
-
assignee?: string | undefined;
|
|
273
|
-
}[];
|
|
274
|
-
trackingMethod: "manual" | "automated" | "milestone";
|
|
275
|
-
}, {
|
|
276
|
-
decisionId: string;
|
|
277
|
-
actionItems: {
|
|
278
|
-
task: string;
|
|
279
|
-
deadline?: number | undefined;
|
|
280
|
-
assignee?: string | undefined;
|
|
281
|
-
}[];
|
|
282
|
-
trackingMethod?: "manual" | "automated" | "milestone" | undefined;
|
|
283
|
-
}>;
|
|
284
|
-
export declare const TrackImplementationSchema: z.ZodObject<{
|
|
285
|
-
decisionId: z.ZodString;
|
|
286
|
-
includeProgress: z.ZodDefault<z.ZodBoolean>;
|
|
287
|
-
includeBlockers: z.ZodDefault<z.ZodBoolean>;
|
|
288
|
-
}, "strip", z.ZodTypeAny, {
|
|
289
|
-
decisionId: string;
|
|
290
|
-
includeProgress: boolean;
|
|
291
|
-
includeBlockers: boolean;
|
|
292
|
-
}, {
|
|
293
|
-
decisionId: string;
|
|
294
|
-
includeProgress?: boolean | undefined;
|
|
295
|
-
includeBlockers?: boolean | undefined;
|
|
296
|
-
}>;
|
|
297
|
-
//# sourceMappingURL=decisions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decisions.d.ts","sourceRoot":"","sources":["../../src/tools/decisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;EAMlC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;EAG/B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;EAG7B,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;EAKrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;EAGpC,CAAC;AAGH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQjC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;EAIpC,CAAC"}
|
package/dist/tools/decisions.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
// High-level decision workflow schemas
|
|
3
|
-
export const QuickYesNoSchema = z.object({
|
|
4
|
-
question: z.string().min(10).describe('Clear yes/no question for quick community input'),
|
|
5
|
-
context: z.string().optional().describe('Background context to help decision makers understand the situation'),
|
|
6
|
-
urgency: z.enum(['low', 'medium', 'high', 'critical']).default('medium').describe('Urgency level affecting timeline and notifications'),
|
|
7
|
-
stakeholders: z.array(z.string()).optional().describe('Specific people to notify about this decision (emails or usernames)'),
|
|
8
|
-
categories: z.array(z.string()).optional().describe('Categories for organization'),
|
|
9
|
-
});
|
|
10
|
-
export const CompareOptionsSchema = z.object({
|
|
11
|
-
decision: z.string().min(10).describe('What decision needs to be made'),
|
|
12
|
-
options: z.array(z.object({
|
|
13
|
-
name: z.string().describe('Option name'),
|
|
14
|
-
description: z.string().describe('Detailed description of this option'),
|
|
15
|
-
pros: z.array(z.string()).optional().describe('Advantages of this option'),
|
|
16
|
-
cons: z.array(z.string()).optional().describe('Disadvantages of this option'),
|
|
17
|
-
})).min(2).max(5).describe('Options to compare (2-5 options recommended for clear comparison)'),
|
|
18
|
-
criteria: z.array(z.string()).optional().describe('Evaluation criteria for comparing options (e.g., cost, time, risk)'),
|
|
19
|
-
timeframe: z.number().default(172800).describe('Decision timeframe in seconds (default: 2 days for thorough comparison)'),
|
|
20
|
-
stakeholders: z.array(z.string()).optional().describe('Key stakeholders to involve in comparison'),
|
|
21
|
-
});
|
|
22
|
-
export const SeekExpertOpinionSchema = z.object({
|
|
23
|
-
topic: z.string().describe('Topic or domain requiring expert input'),
|
|
24
|
-
question: z.string().describe('Specific question for experts to address'),
|
|
25
|
-
context: z.string().describe('Background information and why expert opinion is needed'),
|
|
26
|
-
expertiseAreas: z.array(z.string()).describe('Required areas of expertise or knowledge'),
|
|
27
|
-
urgency: z.enum(['low', 'medium', 'high']).default('medium').describe('How quickly expert input is needed'),
|
|
28
|
-
});
|
|
29
|
-
export const PollStakeholdersSchema = z.object({
|
|
30
|
-
topic: z.string().describe('Topic or issue to poll stakeholders about'),
|
|
31
|
-
question: z.string().describe('Specific question or decision point'),
|
|
32
|
-
stakeholderGroups: z.array(z.string()).describe('Specific groups or individuals to poll (emails, usernames, or group names)'),
|
|
33
|
-
options: z.array(z.object({
|
|
34
|
-
name: z.string().describe('Option name'),
|
|
35
|
-
description: z.string().optional().describe('Option details'),
|
|
36
|
-
})).min(2).describe('Available response options'),
|
|
37
|
-
anonymous: z.boolean().default(false).describe('Whether responses should be anonymous'),
|
|
38
|
-
deadline: z.number().default(259200).describe('Response deadline in seconds (default: 3 days)'),
|
|
39
|
-
});
|
|
40
|
-
export const ConsensusBuilderSchema = z.object({
|
|
41
|
-
initiative: z.string().describe('Initiative or change requiring consensus'),
|
|
42
|
-
description: z.string().describe('Detailed description of what consensus is needed for'),
|
|
43
|
-
stakeholderGroups: z.array(z.string()).describe('Groups that need to agree'),
|
|
44
|
-
consensusThreshold: z.enum(['simple_majority', 'qualified_majority', 'unanimous']).default('qualified_majority').describe('Level of agreement required'),
|
|
45
|
-
phases: z.array(z.object({
|
|
46
|
-
name: z.string().describe('Phase name'),
|
|
47
|
-
description: z.string().describe('What happens in this phase'),
|
|
48
|
-
duration: z.number().describe('Phase duration in seconds'),
|
|
49
|
-
})).optional().describe('Optional: break consensus building into phases'),
|
|
50
|
-
});
|
|
51
|
-
// Decision analysis schemas
|
|
52
|
-
export const AnalyzeReadinessSchema = z.object({
|
|
53
|
-
decisionId: z.string().describe('Decision ID to analyze for readiness'),
|
|
54
|
-
criteria: z.array(z.string()).optional().describe('Specific readiness criteria to check'),
|
|
55
|
-
});
|
|
56
|
-
export const PredictOutcomeSchema = z.object({
|
|
57
|
-
decisionId: z.string().describe('Decision ID to predict likely outcome based on current data'),
|
|
58
|
-
includeConfidence: z.boolean().default(true).describe('Include confidence level in prediction'),
|
|
59
|
-
});
|
|
60
|
-
export const IdentifyBiasSchema = z.object({
|
|
61
|
-
decisionId: z.string().describe('Decision ID to analyze for potential bias in evidence or participation'),
|
|
62
|
-
biasTypes: z.array(z.enum(['selection', 'confirmation', 'availability', 'anchoring', 'participation'])).optional().describe('Specific bias types to check for'),
|
|
63
|
-
});
|
|
64
|
-
export const FindSimilarDecisionsSchema = z.object({
|
|
65
|
-
topic: z.string().describe('Topic or keywords to find similar past decisions'),
|
|
66
|
-
decisionType: z.enum(['case', 'advice', 'poll']).optional().describe('Filter by decision type'),
|
|
67
|
-
timeframe: z.enum(['week', 'month', 'quarter', 'year', 'all']).default('year').describe('How far back to search'),
|
|
68
|
-
includeOutcomes: z.boolean().default(true).describe('Include decision outcomes and effectiveness'),
|
|
69
|
-
});
|
|
70
|
-
export const CalculateConfidenceSchema = z.object({
|
|
71
|
-
decisionId: z.string().describe('Decision ID to calculate confidence score for'),
|
|
72
|
-
factors: z.array(z.enum(['participation_rate', 'evidence_quality', 'expert_involvement', 'consensus_level', 'time_adequacy'])).optional().describe('Specific confidence factors to evaluate'),
|
|
73
|
-
});
|
|
74
|
-
// Workflow automation schemas
|
|
75
|
-
export const ScheduleReminderSchema = z.object({
|
|
76
|
-
decisionId: z.string().describe('Decision ID to set reminders for'),
|
|
77
|
-
reminderType: z.enum(['deadline_approaching', 'low_participation', 'consensus_reached', 'custom']).describe('Type of reminder to schedule'),
|
|
78
|
-
timing: z.number().describe('When to send reminder (seconds before deadline or absolute timestamp)'),
|
|
79
|
-
recipients: z.array(z.string()).optional().describe('Specific recipients for reminder (if not all stakeholders)'),
|
|
80
|
-
message: z.string().optional().describe('Custom reminder message'),
|
|
81
|
-
});
|
|
82
|
-
export const EscalateDeadlockSchema = z.object({
|
|
83
|
-
decisionId: z.string().describe('Stalled decision ID to escalate'),
|
|
84
|
-
reason: z.string().describe('Why escalation is needed (deadlock, low participation, etc.)'),
|
|
85
|
-
escalationType: z.enum(['expert_review', 'extended_timeline', 'stakeholder_expansion', 'mediation']).describe('Type of escalation to apply'),
|
|
86
|
-
newStakeholders: z.array(z.string()).optional().describe('Additional stakeholders to involve in escalation'),
|
|
87
|
-
});
|
|
88
|
-
export const ImplementOutcomeSchema = z.object({
|
|
89
|
-
decisionId: z.string().describe('Completed decision ID to implement'),
|
|
90
|
-
actionItems: z.array(z.object({
|
|
91
|
-
task: z.string().describe('Specific action to take'),
|
|
92
|
-
assignee: z.string().optional().describe('Who is responsible'),
|
|
93
|
-
deadline: z.number().optional().describe('Completion deadline timestamp'),
|
|
94
|
-
})).describe('Action items to implement the decision'),
|
|
95
|
-
trackingMethod: z.enum(['manual', 'automated', 'milestone']).default('manual').describe('How to track implementation progress'),
|
|
96
|
-
});
|
|
97
|
-
export const TrackImplementationSchema = z.object({
|
|
98
|
-
decisionId: z.string().describe('Decision ID to track implementation for'),
|
|
99
|
-
includeProgress: z.boolean().default(true).describe('Include progress details and completion status'),
|
|
100
|
-
includeBlockers: z.boolean().default(true).describe('Include any implementation blockers or issues'),
|
|
101
|
-
});
|
|
102
|
-
//# sourceMappingURL=decisions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"decisions.js","sourceRoot":"","sources":["../../src/tools/decisions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,uCAAuC;AACvC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,iDAAiD,CAAC;IACxF,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qEAAqE,CAAC;IAC9G,OAAO,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,oDAAoD,CAAC;IACvI,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,qEAAqE,CAAC;IAC5H,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,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,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,gDAAgD,CAAC;IACrG,eAAe,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,+CAA+C,CAAC;CACrG,CAAC,CAAC"}
|
package/dist/tools/trials.d.ts
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const SearchCasesSchema: z.ZodObject<{
|
|
3
|
-
query: z.ZodOptional<z.ZodString>;
|
|
4
|
-
status: z.ZodOptional<z.ZodEnum<["init", "open", "closed", "expired", "suspended"]>>;
|
|
5
|
-
type: z.ZodOptional<z.ZodEnum<["case", "advice", "poll"]>>;
|
|
6
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7
|
-
page: z.ZodDefault<z.ZodNumber>;
|
|
8
|
-
limit: z.ZodDefault<z.ZodNumber>;
|
|
9
|
-
}, "strip", z.ZodTypeAny, {
|
|
10
|
-
page: number;
|
|
11
|
-
limit: number;
|
|
12
|
-
type?: "case" | "advice" | "poll" | undefined;
|
|
13
|
-
tags?: string[] | undefined;
|
|
14
|
-
status?: "init" | "open" | "closed" | "expired" | "suspended" | undefined;
|
|
15
|
-
query?: string | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
type?: "case" | "advice" | "poll" | undefined;
|
|
18
|
-
tags?: string[] | undefined;
|
|
19
|
-
status?: "init" | "open" | "closed" | "expired" | "suspended" | undefined;
|
|
20
|
-
query?: string | undefined;
|
|
21
|
-
page?: number | undefined;
|
|
22
|
-
limit?: number | undefined;
|
|
23
|
-
}>;
|
|
24
|
-
export declare const GetCaseSchema: z.ZodObject<{
|
|
25
|
-
id: z.ZodString;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
id: string;
|
|
28
|
-
}, {
|
|
29
|
-
id: string;
|
|
30
|
-
}>;
|
|
31
|
-
export declare const CreateCaseSchema: z.ZodObject<{
|
|
32
|
-
title: z.ZodString;
|
|
33
|
-
description: z.ZodString;
|
|
34
|
-
type: z.ZodEnum<["case", "advice", "poll"]>;
|
|
35
|
-
juryType: z.ZodDefault<z.ZodEnum<["public", "invited"]>>;
|
|
36
|
-
sides: z.ZodArray<z.ZodObject<{
|
|
37
|
-
name: z.ZodString;
|
|
38
|
-
description: z.ZodOptional<z.ZodString>;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
name: string;
|
|
41
|
-
description?: string | undefined;
|
|
42
|
-
}, {
|
|
43
|
-
name: string;
|
|
44
|
-
description?: string | undefined;
|
|
45
|
-
}>, "many">;
|
|
46
|
-
caseLength: z.ZodDefault<z.ZodNumber>;
|
|
47
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
title: string;
|
|
50
|
-
caseLength: number;
|
|
51
|
-
description: string;
|
|
52
|
-
type: "case" | "advice" | "poll";
|
|
53
|
-
juryType: "public" | "invited";
|
|
54
|
-
sides: {
|
|
55
|
-
name: string;
|
|
56
|
-
description?: string | undefined;
|
|
57
|
-
}[];
|
|
58
|
-
tags?: string[] | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
title: string;
|
|
61
|
-
description: string;
|
|
62
|
-
type: "case" | "advice" | "poll";
|
|
63
|
-
sides: {
|
|
64
|
-
name: string;
|
|
65
|
-
description?: string | undefined;
|
|
66
|
-
}[];
|
|
67
|
-
caseLength?: number | undefined;
|
|
68
|
-
juryType?: "public" | "invited" | undefined;
|
|
69
|
-
tags?: string[] | undefined;
|
|
70
|
-
}>;
|
|
71
|
-
export declare const ListEvidenceSchema: z.ZodObject<{
|
|
72
|
-
caseId: z.ZodString;
|
|
73
|
-
}, "strip", z.ZodTypeAny, {
|
|
74
|
-
caseId: string;
|
|
75
|
-
}, {
|
|
76
|
-
caseId: string;
|
|
77
|
-
}>;
|
|
78
|
-
//# sourceMappingURL=trials.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trials.d.ts","sourceRoot":"","sources":["../../src/tools/trials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;EAO5B,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;;EAExB,CAAC;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW3B,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;EAE7B,CAAC"}
|
package/dist/tools/trials.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
// Case schemas — the single, canonical vocabulary advertised by the server.
|
|
3
|
-
export const SearchCasesSchema = z.object({
|
|
4
|
-
query: z.string().optional().describe('Search cases by title or description'),
|
|
5
|
-
status: z.enum(['init', 'open', 'closed', 'expired', 'suspended']).optional().describe('Filter by case status (open = accepting votes)'),
|
|
6
|
-
type: z.enum(['case', 'advice', 'poll']).optional().describe('Filter by case type — case (binding jury decision), advice (input for the creator), poll (opinion gathering)'),
|
|
7
|
-
tags: z.array(z.string()).optional().describe('Filter by tags'),
|
|
8
|
-
page: z.number().min(1).default(1).describe('Page number for pagination'),
|
|
9
|
-
limit: z.number().min(1).max(100).default(20).describe('Number of cases to return per page'),
|
|
10
|
-
});
|
|
11
|
-
export const GetCaseSchema = z.object({
|
|
12
|
-
id: z.string().describe('Case ID or UUID'),
|
|
13
|
-
});
|
|
14
|
-
export const CreateCaseSchema = z.object({
|
|
15
|
-
title: z.string().min(3).max(200).describe('Case title — the question or statement to be decided'),
|
|
16
|
-
description: z.string().min(10).describe('Context, background, and criteria for the case'),
|
|
17
|
-
type: z.enum(['case', 'advice', 'poll']).describe('Case type — case (binding jury decision), advice (input for the creator), or poll (opinion gathering)'),
|
|
18
|
-
juryType: z.enum(['public', 'invited']).default('public').describe('Who can participate — public (anyone) or invited only'),
|
|
19
|
-
sides: z.array(z.object({
|
|
20
|
-
name: z.string().describe('Option/choice name'),
|
|
21
|
-
description: z.string().optional().describe('Optional description for this choice'),
|
|
22
|
-
})).min(2).max(10).describe('The choices/options voters pick between (2-10)'),
|
|
23
|
-
caseLength: z.number().min(60).max(2592000).default(86400).describe('Voting duration in seconds (min: 1 minute, max: 30 days, default: 1 day)'),
|
|
24
|
-
tags: z.array(z.string()).max(4).optional().describe('Up to 4 tags for categorization'),
|
|
25
|
-
});
|
|
26
|
-
export const ListEvidenceSchema = z.object({
|
|
27
|
-
caseId: z.string().describe('Case ID to get evidence for'),
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=trials.js.map
|
package/dist/tools/trials.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"trials.js","sourceRoot":"","sources":["../../src/tools/trials.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,4EAA4E;AAE5E,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IAC7E,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;IACxI,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,8GAA8G,CAAC;IAC5K,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,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