@askverdict/types 0.1.0
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/LICENSE +21 -0
- package/README.md +72 -0
- package/dist/action-items.d.ts +34 -0
- package/dist/action-items.d.ts.map +1 -0
- package/dist/action-items.js +6 -0
- package/dist/action-items.js.map +1 -0
- package/dist/agent.d.ts +33 -0
- package/dist/agent.d.ts.map +1 -0
- package/dist/agent.js +3 -0
- package/dist/agent.js.map +1 -0
- package/dist/api-key.d.ts +26 -0
- package/dist/api-key.d.ts.map +1 -0
- package/dist/api-key.js +3 -0
- package/dist/api-key.js.map +1 -0
- package/dist/api.d.ts +126 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +3 -0
- package/dist/api.js.map +1 -0
- package/dist/argument.d.ts +29 -0
- package/dist/argument.d.ts.map +1 -0
- package/dist/argument.js +3 -0
- package/dist/argument.js.map +1 -0
- package/dist/badges.d.ts +33 -0
- package/dist/badges.d.ts.map +1 -0
- package/dist/badges.js +471 -0
- package/dist/badges.js.map +1 -0
- package/dist/bias.d.ts +27 -0
- package/dist/bias.d.ts.map +1 -0
- package/dist/bias.js +3 -0
- package/dist/bias.js.map +1 -0
- package/dist/calibration.d.ts +35 -0
- package/dist/calibration.d.ts.map +1 -0
- package/dist/calibration.js +3 -0
- package/dist/calibration.js.map +1 -0
- package/dist/categories.d.ts +10 -0
- package/dist/categories.d.ts.map +1 -0
- package/dist/categories.js +71 -0
- package/dist/categories.js.map +1 -0
- package/dist/consensus.d.ts +33 -0
- package/dist/consensus.d.ts.map +1 -0
- package/dist/consensus.js +3 -0
- package/dist/consensus.js.map +1 -0
- package/dist/cost.d.ts +34 -0
- package/dist/cost.d.ts.map +1 -0
- package/dist/cost.js +3 -0
- package/dist/cost.js.map +1 -0
- package/dist/debate.d.ts +100 -0
- package/dist/debate.d.ts.map +1 -0
- package/dist/debate.js +3 -0
- package/dist/debate.js.map +1 -0
- package/dist/decision-chain.d.ts +50 -0
- package/dist/decision-chain.d.ts.map +1 -0
- package/dist/decision-chain.js +3 -0
- package/dist/decision-chain.js.map +1 -0
- package/dist/decision-score.d.ts +30 -0
- package/dist/decision-score.d.ts.map +1 -0
- package/dist/decision-score.js +13 -0
- package/dist/decision-score.js.map +1 -0
- package/dist/errors.d.ts +10 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js +3 -0
- package/dist/errors.js.map +1 -0
- package/dist/events.d.ts +430 -0
- package/dist/events.d.ts.map +1 -0
- package/dist/events.js +3 -0
- package/dist/events.js.map +1 -0
- package/dist/evidence.d.ts +15 -0
- package/dist/evidence.d.ts.map +1 -0
- package/dist/evidence.js +3 -0
- package/dist/evidence.js.map +1 -0
- package/dist/fallacy.d.ts +14 -0
- package/dist/fallacy.d.ts.map +1 -0
- package/dist/fallacy.js +3 -0
- package/dist/fallacy.js.map +1 -0
- package/dist/feature-flags.d.ts +25 -0
- package/dist/feature-flags.d.ts.map +1 -0
- package/dist/feature-flags.js +3 -0
- package/dist/feature-flags.js.map +1 -0
- package/dist/frameworks.d.ts +97 -0
- package/dist/frameworks.d.ts.map +1 -0
- package/dist/frameworks.js +273 -0
- package/dist/frameworks.js.map +1 -0
- package/dist/graph.d.ts +40 -0
- package/dist/graph.d.ts.map +1 -0
- package/dist/graph.js +3 -0
- package/dist/graph.js.map +1 -0
- package/dist/index.d.ts +42 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/outcome.d.ts +47 -0
- package/dist/outcome.d.ts.map +1 -0
- package/dist/outcome.js +3 -0
- package/dist/outcome.js.map +1 -0
- package/dist/pricing.d.ts +153 -0
- package/dist/pricing.d.ts.map +1 -0
- package/dist/pricing.js +359 -0
- package/dist/pricing.js.map +1 -0
- package/dist/provider.d.ts +84 -0
- package/dist/provider.d.ts.map +1 -0
- package/dist/provider.js +3 -0
- package/dist/provider.js.map +1 -0
- package/dist/renderers.d.ts +63 -0
- package/dist/renderers.d.ts.map +1 -0
- package/dist/renderers.js +446 -0
- package/dist/renderers.js.map +1 -0
- package/dist/rounds.d.ts +34 -0
- package/dist/rounds.d.ts.map +1 -0
- package/dist/rounds.js +3 -0
- package/dist/rounds.js.map +1 -0
- package/dist/search.d.ts +18 -0
- package/dist/search.d.ts.map +1 -0
- package/dist/search.js +3 -0
- package/dist/search.js.map +1 -0
- package/dist/shapes.d.ts +8 -0
- package/dist/shapes.d.ts.map +1 -0
- package/dist/shapes.js +3 -0
- package/dist/shapes.js.map +1 -0
- package/dist/sharing.d.ts +26 -0
- package/dist/sharing.d.ts.map +1 -0
- package/dist/sharing.js +3 -0
- package/dist/sharing.js.map +1 -0
- package/dist/store.d.ts +103 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +3 -0
- package/dist/store.js.map +1 -0
- package/dist/templates.d.ts +50 -0
- package/dist/templates.d.ts.map +1 -0
- package/dist/templates.js +252 -0
- package/dist/templates.js.map +1 -0
- package/dist/user.d.ts +55 -0
- package/dist/user.d.ts.map +1 -0
- package/dist/user.js +3 -0
- package/dist/user.js.map +1 -0
- package/dist/verdict.d.ts +52 -0
- package/dist/verdict.d.ts.map +1 -0
- package/dist/verdict.js +3 -0
- package/dist/verdict.js.map +1 -0
- package/package.json +46 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
// Decision Frameworks — structured debate methodologies
|
|
2
|
+
//
|
|
3
|
+
// Frameworks are orthogonal to modes (speed/depth). A user picks BOTH:
|
|
4
|
+
// Framework = methodology (Standard, Six Thinking Hats, Delphi, Pre-mortem)
|
|
5
|
+
// Mode = speed/depth (fast, balanced, thorough)
|
|
6
|
+
//
|
|
7
|
+
// The engine uses the framework to configure persona assignment, round
|
|
8
|
+
// structure, and verdict format — while the mode controls token budgets,
|
|
9
|
+
// agent count scaling, and temperature.
|
|
10
|
+
/** Type guard for custom framework IDs */
|
|
11
|
+
export function isCustomFrameworkId(id) {
|
|
12
|
+
return id.startsWith("custom-");
|
|
13
|
+
}
|
|
14
|
+
/** Type guard for built-in framework IDs */
|
|
15
|
+
export function isBuiltinFrameworkId(id) {
|
|
16
|
+
return ["standard", "six-thinking-hats", "delphi-method", "pre-mortem", "roast", "devils-advocate", "eli5", "shark-tank"].includes(id);
|
|
17
|
+
}
|
|
18
|
+
// ---------------------------------------------------------------------------
|
|
19
|
+
// Framework Definitions
|
|
20
|
+
// ---------------------------------------------------------------------------
|
|
21
|
+
const STANDARD_FRAMEWORK = {
|
|
22
|
+
id: "standard",
|
|
23
|
+
name: "Standard Debate",
|
|
24
|
+
description: "Classic multi-agent debate with advocate, critic, and specialist perspectives.",
|
|
25
|
+
longDescription: "The default debate format. Agents are assigned roles based on the question's domain - advocate, critic, analyst, engineer, economist, or devil's advocate. Each round, agents argue their positions, cross-examine each other, and build toward a synthesized verdict.",
|
|
26
|
+
icon: "scale",
|
|
27
|
+
agentCount: 0, // 0 = use mode's default agentCount
|
|
28
|
+
personaSlots: [], // empty = use standard persona selection logic
|
|
29
|
+
roundStructure: {
|
|
30
|
+
phases: ["Opening", "Cross-Examination", "Closing"],
|
|
31
|
+
phaseDescriptions: [
|
|
32
|
+
"Each agent presents their initial position",
|
|
33
|
+
"Agents challenge and respond to each other's arguments",
|
|
34
|
+
"Final statements and position summaries",
|
|
35
|
+
],
|
|
36
|
+
supportsEarlyExit: true,
|
|
37
|
+
},
|
|
38
|
+
verdictFormat: {
|
|
39
|
+
name: "Standard Verdict",
|
|
40
|
+
sections: ["Recommendation", "Arguments For", "Arguments Against", "Key Evidence", "Blind Spots", "Next Steps"],
|
|
41
|
+
},
|
|
42
|
+
minimumMode: "fast",
|
|
43
|
+
themeColor: "#3b82f6", // blue
|
|
44
|
+
};
|
|
45
|
+
const SIX_THINKING_HATS_FRAMEWORK = {
|
|
46
|
+
id: "six-thinking-hats",
|
|
47
|
+
name: "Six Thinking Hats",
|
|
48
|
+
description: "De Bono's structured thinking - 6 agents, each wearing a different cognitive hat.",
|
|
49
|
+
longDescription: "Based on Edward de Bono's Six Thinking Hats method. Each agent adopts one of six distinct thinking modes: White (facts & data), Red (emotions & intuition), Black (caution & risks), Yellow (optimism & benefits), Green (creativity & alternatives), and Blue (process & synthesis). The Blue Hat moderates and produces the final verdict.",
|
|
50
|
+
icon: "palette",
|
|
51
|
+
agentCount: 6,
|
|
52
|
+
personaSlots: [
|
|
53
|
+
{ slotId: "white-hat", name: "White Hat", role: "Facts & Data", color: "#f5f5f5", emoji: "🤍", basePersona: "analyst" },
|
|
54
|
+
{ slotId: "red-hat", name: "Red Hat", role: "Emotions & Intuition", color: "#ef4444", emoji: "❤️" },
|
|
55
|
+
{ slotId: "black-hat", name: "Black Hat", role: "Caution & Risks", color: "#1f2937", emoji: "🖤", basePersona: "critic" },
|
|
56
|
+
{ slotId: "yellow-hat", name: "Yellow Hat", role: "Optimism & Benefits", color: "#eab308", emoji: "💛", basePersona: "advocate" },
|
|
57
|
+
{ slotId: "green-hat", name: "Green Hat", role: "Creativity & Alternatives", color: "#22c55e", emoji: "💚" },
|
|
58
|
+
{ slotId: "blue-hat", name: "Blue Hat", role: "Process & Synthesis", color: "#3b82f6", emoji: "💙" },
|
|
59
|
+
],
|
|
60
|
+
roundStructure: {
|
|
61
|
+
phases: ["Hat Perspectives", "Cross-Hat Dialogue", "Blue Hat Synthesis"],
|
|
62
|
+
phaseDescriptions: [
|
|
63
|
+
"Each hat presents its unique perspective on the question",
|
|
64
|
+
"Hats respond to and build on each other's observations",
|
|
65
|
+
"Blue Hat synthesizes all perspectives into a structured recommendation",
|
|
66
|
+
],
|
|
67
|
+
supportsEarlyExit: false,
|
|
68
|
+
},
|
|
69
|
+
verdictFormat: {
|
|
70
|
+
name: "Hat Synthesis",
|
|
71
|
+
sections: ["Facts (White)", "Feelings (Red)", "Risks (Black)", "Benefits (Yellow)", "Alternatives (Green)", "Synthesis (Blue)", "Recommendation"],
|
|
72
|
+
},
|
|
73
|
+
minimumMode: "balanced",
|
|
74
|
+
themeColor: "#3b82f6", // blue (Blue Hat leads)
|
|
75
|
+
};
|
|
76
|
+
const DELPHI_METHOD_FRAMEWORK = {
|
|
77
|
+
id: "delphi-method",
|
|
78
|
+
name: "Delphi Method",
|
|
79
|
+
description: "Anonymous expert rounds that iteratively converge toward consensus.",
|
|
80
|
+
longDescription: "Based on the RAND Corporation's Delphi technique. Multiple expert agents independently assess the question, then see anonymous aggregated results (not who said what). Over successive rounds, they revise their positions. A convergence detector stops the debate when consensus is reached or maximum rounds are hit. The verdict shows the convergence trajectory and final consensus with remaining dissent.",
|
|
81
|
+
icon: "target",
|
|
82
|
+
agentCount: 5,
|
|
83
|
+
personaSlots: [
|
|
84
|
+
{ slotId: "expert-1", name: "Domain Expert", role: "Primary domain specialist", color: "#8b5cf6", emoji: "🔮", basePersona: "analyst" },
|
|
85
|
+
{ slotId: "expert-2", name: "Industry Analyst", role: "Market & industry perspective", color: "#06b6d4", emoji: "📊", basePersona: "economist" },
|
|
86
|
+
{ slotId: "expert-3", name: "Technical Evaluator", role: "Feasibility & implementation lens", color: "#f59e0b", emoji: "🔧", basePersona: "engineer" },
|
|
87
|
+
{ slotId: "expert-4", name: "Risk Assessor", role: "Probability & downside analysis", color: "#ef4444", emoji: "🎯", basePersona: "critic" },
|
|
88
|
+
{ slotId: "expert-5", name: "Strategic Advisor", role: "Long-term strategic implications", color: "#10b981", emoji: "🧭", basePersona: "advocate" },
|
|
89
|
+
],
|
|
90
|
+
roundStructure: {
|
|
91
|
+
phases: ["Independent Assessment", "Anonymous Aggregate Review", "Position Revision", "Convergence Check"],
|
|
92
|
+
phaseDescriptions: [
|
|
93
|
+
"Each expert independently evaluates the question",
|
|
94
|
+
"Aggregated positions shown without attribution",
|
|
95
|
+
"Experts revise based on anonymous peer perspectives",
|
|
96
|
+
"Check if variance has dropped below convergence threshold",
|
|
97
|
+
],
|
|
98
|
+
supportsEarlyExit: true,
|
|
99
|
+
},
|
|
100
|
+
verdictFormat: {
|
|
101
|
+
name: "Convergence Report",
|
|
102
|
+
sections: ["Final Consensus Position", "Convergence Trajectory", "Remaining Dissent", "Confidence Distribution", "Recommendation"],
|
|
103
|
+
},
|
|
104
|
+
minimumMode: "balanced",
|
|
105
|
+
themeColor: "#8b5cf6", // violet
|
|
106
|
+
};
|
|
107
|
+
const PRE_MORTEM_FRAMEWORK = {
|
|
108
|
+
id: "pre-mortem",
|
|
109
|
+
name: "Pre-mortem Analysis",
|
|
110
|
+
description: "\"Imagine this failed. Why?\" - agents argue from future-failure perspective.",
|
|
111
|
+
longDescription: "Based on Gary Klein's Pre-mortem technique. Agents assume the decision has already been made and failed, then work backward to identify why. Three personas - Pessimist (catastrophic failures), Realist (likely failures), and Optimist (what could go right despite risks) - generate failure scenarios, rank them by probability and impact, and propose mitigations. The verdict is a structured risk matrix with a proceed/don't-proceed recommendation.",
|
|
112
|
+
icon: "shield-alert",
|
|
113
|
+
agentCount: 3,
|
|
114
|
+
personaSlots: [
|
|
115
|
+
{ slotId: "pessimist", name: "The Pessimist", role: "Catastrophic failure scenarios", color: "#ef4444", emoji: "🔴", basePersona: "critic" },
|
|
116
|
+
{ slotId: "realist", name: "The Realist", role: "Likely failure modes & probabilities", color: "#f59e0b", emoji: "🟡", basePersona: "analyst" },
|
|
117
|
+
{ slotId: "optimist", name: "The Optimist", role: "Silver linings & mitigations", color: "#22c55e", emoji: "🟢", basePersona: "advocate" },
|
|
118
|
+
],
|
|
119
|
+
roundStructure: {
|
|
120
|
+
phases: ["Failure Scenarios", "Probability Ranking", "Mitigation Strategies"],
|
|
121
|
+
phaseDescriptions: [
|
|
122
|
+
"Each agent generates specific failure scenarios from their perspective",
|
|
123
|
+
"Agents rank all scenarios by probability and severity",
|
|
124
|
+
"Agents propose concrete mitigations for highest-ranked risks",
|
|
125
|
+
],
|
|
126
|
+
supportsEarlyExit: false,
|
|
127
|
+
},
|
|
128
|
+
verdictFormat: {
|
|
129
|
+
name: "Risk Matrix",
|
|
130
|
+
sections: ["Risk Matrix", "Top Failure Scenarios", "Mitigation Plan", "Proceed Conditions", "Recommendation"],
|
|
131
|
+
},
|
|
132
|
+
minimumMode: "balanced",
|
|
133
|
+
themeColor: "#ef4444", // red
|
|
134
|
+
};
|
|
135
|
+
// ---------------------------------------------------------------------------
|
|
136
|
+
// Fun Modes — entertaining decision frameworks
|
|
137
|
+
// ---------------------------------------------------------------------------
|
|
138
|
+
const ROAST_FRAMEWORK = {
|
|
139
|
+
id: "roast",
|
|
140
|
+
name: "Roast Mode",
|
|
141
|
+
description: "Brutally honest critique followed by genuine defense. No sugarcoating.",
|
|
142
|
+
longDescription: "The Roaster tears your idea apart with Gordon Ramsay-level honesty, finding every flaw and weak assumption. Then The Defender steps in to find the genuine merit hiding underneath. The verdict includes a Roast Score (0-100), top burns, and a 'but seriously...' section with real insights.",
|
|
143
|
+
icon: "flame",
|
|
144
|
+
agentCount: 2,
|
|
145
|
+
personaSlots: [
|
|
146
|
+
{ slotId: "roaster", name: "The Roaster", role: "Brutal honest critic", color: "#f97316", emoji: "🔥", basePersona: "critic" },
|
|
147
|
+
{ slotId: "defender", name: "The Defender", role: "Finds the genuine merit", color: "#22c55e", emoji: "🛡️", basePersona: "advocate" },
|
|
148
|
+
],
|
|
149
|
+
roundStructure: {
|
|
150
|
+
phases: ["The Roast", "The Defense"],
|
|
151
|
+
phaseDescriptions: [
|
|
152
|
+
"The Roaster delivers a brutally honest critique of the idea",
|
|
153
|
+
"The Defender finds the genuine merit and actionable insights",
|
|
154
|
+
],
|
|
155
|
+
supportsEarlyExit: false,
|
|
156
|
+
},
|
|
157
|
+
verdictFormat: {
|
|
158
|
+
name: "Roast Verdict",
|
|
159
|
+
sections: ["Roast Score", "Top Burns", "Hidden Strengths", "But Seriously...", "Final Take"],
|
|
160
|
+
},
|
|
161
|
+
minimumMode: "fast",
|
|
162
|
+
themeColor: "#f97316", // orange
|
|
163
|
+
};
|
|
164
|
+
const DEVILS_ADVOCATE_FRAMEWORK = {
|
|
165
|
+
id: "devils-advocate",
|
|
166
|
+
name: "Devil's Advocate",
|
|
167
|
+
description: "Relentless opposition that stress-tests your position from every angle.",
|
|
168
|
+
longDescription: "An enhanced devil's advocate that systematically attacks your position from multiple angles: logical consistency, hidden assumptions, second-order effects, and historical precedent. Over 3 rounds it escalates from surface-level pushback to deep structural challenges. The verdict rates your position's resilience and lists the vulnerabilities that survived scrutiny.",
|
|
169
|
+
icon: "swords",
|
|
170
|
+
agentCount: 2,
|
|
171
|
+
personaSlots: [
|
|
172
|
+
{ slotId: "devil", name: "The Devil", role: "Relentless opposition", color: "#ec4899", emoji: "😈", basePersona: "devil" },
|
|
173
|
+
{ slotId: "steel-man", name: "The Steel Man", role: "Strongest form of the argument", color: "#3b82f6", emoji: "🗡️", basePersona: "advocate" },
|
|
174
|
+
],
|
|
175
|
+
roundStructure: {
|
|
176
|
+
phases: ["Surface Attack", "Deep Challenge", "Steel Man Response"],
|
|
177
|
+
phaseDescriptions: [
|
|
178
|
+
"The Devil attacks obvious weaknesses and assumptions",
|
|
179
|
+
"The Devil escalates to structural and second-order challenges",
|
|
180
|
+
"The Steel Man constructs the strongest possible defense",
|
|
181
|
+
],
|
|
182
|
+
supportsEarlyExit: false,
|
|
183
|
+
},
|
|
184
|
+
verdictFormat: {
|
|
185
|
+
name: "Resilience Report",
|
|
186
|
+
sections: ["Position Strength", "Vulnerabilities Found", "Survived Challenges", "Watch For", "Final Assessment"],
|
|
187
|
+
},
|
|
188
|
+
minimumMode: "fast",
|
|
189
|
+
themeColor: "#ec4899", // pink
|
|
190
|
+
};
|
|
191
|
+
const ELI5_FRAMEWORK = {
|
|
192
|
+
id: "eli5",
|
|
193
|
+
name: "ELI5",
|
|
194
|
+
description: "Explain Like I'm 5. Complex decisions in simple words and analogies.",
|
|
195
|
+
longDescription: "The Simplifier breaks down complex decisions into plain language anyone can understand. No jargon, no hedging, no 'it depends.' Uses analogies, everyday comparisons, and clear yes/no/maybe answers. Perfect for getting clarity when you're drowning in complexity.",
|
|
196
|
+
icon: "baby",
|
|
197
|
+
agentCount: 1,
|
|
198
|
+
personaSlots: [
|
|
199
|
+
{ slotId: "simplifier", name: "The Simplifier", role: "Makes it dead simple", color: "#06b6d4", emoji: "🧒", basePersona: "analyst" },
|
|
200
|
+
],
|
|
201
|
+
roundStructure: {
|
|
202
|
+
phases: ["Simplification"],
|
|
203
|
+
phaseDescriptions: [
|
|
204
|
+
"The Simplifier breaks down the decision into plain language with analogies",
|
|
205
|
+
],
|
|
206
|
+
supportsEarlyExit: false,
|
|
207
|
+
},
|
|
208
|
+
verdictFormat: {
|
|
209
|
+
name: "Simple Answer",
|
|
210
|
+
sections: ["The Simple Answer", "The Analogy", "The One Caveat", "Bottom Line"],
|
|
211
|
+
},
|
|
212
|
+
minimumMode: "fast",
|
|
213
|
+
themeColor: "#06b6d4", // cyan
|
|
214
|
+
};
|
|
215
|
+
const SHARK_TANK_FRAMEWORK = {
|
|
216
|
+
id: "shark-tank",
|
|
217
|
+
name: "Shark Tank",
|
|
218
|
+
description: "4 investor sharks evaluate your idea. Will they bite, or are you out?",
|
|
219
|
+
longDescription: "Four distinct investor personas evaluate your idea or decision from different angles: Numbers Shark (unit economics and financials), Market Shark (TAM, moat, and timing), Tech Shark (feasibility and scalability), and Skeptic Shark (the toughest questions). Each independently decides 'I'm In' or 'I'm Out' with reasoning. The verdict shows the deal outcome and aggregate valuation range.",
|
|
220
|
+
icon: "fish",
|
|
221
|
+
agentCount: 4,
|
|
222
|
+
personaSlots: [
|
|
223
|
+
{ slotId: "numbers-shark", name: "Numbers Shark", role: "Unit economics and financials", color: "#22c55e", emoji: "💰", basePersona: "economist" },
|
|
224
|
+
{ slotId: "market-shark", name: "Market Shark", role: "TAM, moat, and timing", color: "#3b82f6", emoji: "🌊", basePersona: "analyst" },
|
|
225
|
+
{ slotId: "tech-shark", name: "Tech Shark", role: "Feasibility and scalability", color: "#8b5cf6", emoji: "⚡", basePersona: "engineer" },
|
|
226
|
+
{ slotId: "skeptic-shark", name: "Skeptic Shark", role: "The toughest questions", color: "#ef4444", emoji: "🦈", basePersona: "critic" },
|
|
227
|
+
],
|
|
228
|
+
roundStructure: {
|
|
229
|
+
phases: ["The Pitch Review", "Shark Questions", "Deal or No Deal"],
|
|
230
|
+
phaseDescriptions: [
|
|
231
|
+
"Each shark evaluates the idea from their expertise",
|
|
232
|
+
"Sharks challenge weak points and probe for details",
|
|
233
|
+
"Each shark independently declares In or Out with reasoning",
|
|
234
|
+
],
|
|
235
|
+
supportsEarlyExit: false,
|
|
236
|
+
},
|
|
237
|
+
verdictFormat: {
|
|
238
|
+
name: "Shark Tank Verdict",
|
|
239
|
+
sections: ["Deal Outcome", "Shark Decisions", "Valuation Range", "Key Concerns", "What Would Change Minds"],
|
|
240
|
+
},
|
|
241
|
+
minimumMode: "balanced",
|
|
242
|
+
themeColor: "#3b82f6", // blue
|
|
243
|
+
};
|
|
244
|
+
// ---------------------------------------------------------------------------
|
|
245
|
+
// Registry
|
|
246
|
+
// ---------------------------------------------------------------------------
|
|
247
|
+
/** All built-in frameworks, keyed by ID */
|
|
248
|
+
export const FRAMEWORKS = Object.freeze({
|
|
249
|
+
"standard": STANDARD_FRAMEWORK,
|
|
250
|
+
"six-thinking-hats": SIX_THINKING_HATS_FRAMEWORK,
|
|
251
|
+
"delphi-method": DELPHI_METHOD_FRAMEWORK,
|
|
252
|
+
"pre-mortem": PRE_MORTEM_FRAMEWORK,
|
|
253
|
+
"roast": ROAST_FRAMEWORK,
|
|
254
|
+
"devils-advocate": DEVILS_ADVOCATE_FRAMEWORK,
|
|
255
|
+
"eli5": ELI5_FRAMEWORK,
|
|
256
|
+
"shark-tank": SHARK_TANK_FRAMEWORK,
|
|
257
|
+
});
|
|
258
|
+
/** Get a built-in framework by ID, or undefined if not found */
|
|
259
|
+
export function getFramework(id) {
|
|
260
|
+
if (isBuiltinFrameworkId(id)) {
|
|
261
|
+
return FRAMEWORKS[id];
|
|
262
|
+
}
|
|
263
|
+
return undefined;
|
|
264
|
+
}
|
|
265
|
+
/** Get all built-in frameworks as an array */
|
|
266
|
+
export function getAllFrameworks() {
|
|
267
|
+
return Object.values(FRAMEWORKS);
|
|
268
|
+
}
|
|
269
|
+
/** Get all non-standard built-in frameworks (for framework selector UI) */
|
|
270
|
+
export function getSpecializedFrameworks() {
|
|
271
|
+
return Object.values(FRAMEWORKS).filter((f) => f.id !== "standard");
|
|
272
|
+
}
|
|
273
|
+
//# sourceMappingURL=frameworks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"frameworks.js","sourceRoot":"","sources":["../src/frameworks.ts"],"names":[],"mappings":"AAAA,wDAAwD;AACxD,EAAE;AACF,uEAAuE;AACvE,8EAA8E;AAC9E,kDAAkD;AAClD,EAAE;AACF,uEAAuE;AACvE,yEAAyE;AACzE,wCAAwC;AAyBxC,0CAA0C;AAC1C,MAAM,UAAU,mBAAmB,CAAC,EAAU;IAC5C,OAAO,EAAE,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC;AAED,4CAA4C;AAC5C,MAAM,UAAU,oBAAoB,CAAC,EAAU;IAC7C,OAAO,CAAC,UAAU,EAAE,mBAAmB,EAAE,eAAe,EAAE,YAAY,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,YAAY,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AACzI,CAAC;AAmFD,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E,MAAM,kBAAkB,GAAoB;IAC1C,EAAE,EAAE,UAAU;IACd,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,gFAAgF;IAC7F,eAAe,EACb,wQAAwQ;IAC1Q,IAAI,EAAE,OAAO;IACb,UAAU,EAAE,CAAC,EAAE,oCAAoC;IACnD,YAAY,EAAE,EAAE,EAAE,+CAA+C;IACjE,cAAc,EAAE;QACd,MAAM,EAAE,CAAC,SAAS,EAAE,mBAAmB,EAAE,SAAS,CAAC;QACnD,iBAAiB,EAAE;YACjB,4CAA4C;YAC5C,wDAAwD;YACxD,yCA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AA8C;AAC9C,MAAM,UAAU,gBAAgB;IAC9B,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;AACnC,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,wBAAwB;IACtC,OAAO,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,UAAU,CAAC,CAAC;AACtE,CAAC"}
|
package/dist/graph.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Evidence } from "./evidence";
|
|
2
|
+
export type ClaimStatus = "standing" | "challenged" | "rebutted" | "conceded" | "supported";
|
|
3
|
+
export type ClaimType = "claim" | "evidence" | "challenge" | "rebuttal" | "concession";
|
|
4
|
+
export type EdgeType = "supports" | "challenges" | "rebuts" | "concedes";
|
|
5
|
+
export interface Claim {
|
|
6
|
+
id: string;
|
|
7
|
+
type: ClaimType;
|
|
8
|
+
content: string;
|
|
9
|
+
authorAgentId: string;
|
|
10
|
+
round: number;
|
|
11
|
+
status: ClaimStatus;
|
|
12
|
+
evidence: Evidence[];
|
|
13
|
+
respondsTo: string | null;
|
|
14
|
+
engagementScore: number;
|
|
15
|
+
createdAt: Date;
|
|
16
|
+
}
|
|
17
|
+
export interface ArgumentEdge {
|
|
18
|
+
id: string;
|
|
19
|
+
sourceClaimId: string;
|
|
20
|
+
targetClaimId: string;
|
|
21
|
+
type: EdgeType;
|
|
22
|
+
round: number;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
}
|
|
25
|
+
export interface GraphSnapshot {
|
|
26
|
+
claims: Claim[];
|
|
27
|
+
edges: ArgumentEdge[];
|
|
28
|
+
roundNumber: number;
|
|
29
|
+
timestamp: Date;
|
|
30
|
+
}
|
|
31
|
+
export interface DebateGraph {
|
|
32
|
+
nodes: Claim[];
|
|
33
|
+
edges: ArgumentEdge[];
|
|
34
|
+
uncontestedClaims: Claim[];
|
|
35
|
+
resolvedDisputes: Claim[];
|
|
36
|
+
activeDisputes: Claim[];
|
|
37
|
+
strongestArguments: Claim[];
|
|
38
|
+
weakestArguments: Claim[];
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=graph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../src/graph.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAE3C,MAAM,MAAM,WAAW,GACnB,UAAU,GACV,YAAY,GACZ,UAAU,GACV,UAAU,GACV,WAAW,CAAC;AAEhB,MAAM,MAAM,SAAS,GACjB,OAAO,GACP,UAAU,GACV,WAAW,GACX,UAAU,GACV,YAAY,CAAC;AAEjB,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEzE,MAAM,WAAW,KAAK;IACpB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,SAAS,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,WAAW,CAAC;IACpB,QAAQ,EAAE,QAAQ,EAAE,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,KAAK,EAAE,CAAC;IAChB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,IAAI,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,KAAK,EAAE,CAAC;IACf,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,iBAAiB,EAAE,KAAK,EAAE,CAAC;IAC3B,gBAAgB,EAAE,KAAK,EAAE,CAAC;IAC1B,cAAc,EAAE,KAAK,EAAE,CAAC;IACxB,kBAAkB,EAAE,KAAK,EAAE,CAAC;IAC5B,gBAAgB,EAAE,KAAK,EAAE,CAAC;CAC3B"}
|
package/dist/graph.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../src/graph.ts"],"names":[],"mappings":"AAAA,uBAAuB"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type { Provider, ModelTier, TaskType, ModelConfig, ProviderKeys, ProviderResponse, ProviderCallOptions, ModelProvider, ModelRouting, ContextBudgetEntry, ContextBudget, ConfigPreset, ResolvedModelConfig, ResolveConfigOptions, } from "./provider";
|
|
2
|
+
export type { DebateMode, DebateStatus, DebateSource, PromptStyle, RoundTokenLimits, ModePreset, CostEstimate, SearchConfig, DebateConfig, CreateDebateConfig, CreateDebateResult, DebateCommandType, DebateCommand, QuickTakeAgreement, } from "./debate";
|
|
3
|
+
export type { PersonaType, PersonaConfig, AgentInfo, AgentSummary, AgentState, } from "./agent";
|
|
4
|
+
export type { EvidenceSource, Evidence, KnowledgeEvidence, } from "./evidence";
|
|
5
|
+
export type { ResponseType, AgentResponseItem, NewArgument, AgentResponse, Argument, CrossExamResponse, } from "./argument";
|
|
6
|
+
export type { ClaimStatus, ClaimType, EdgeType, Claim, ArgumentEdge, GraphSnapshot, DebateGraph, } from "./graph";
|
|
7
|
+
export type { ConsensusState, RoundMetrics, ConsensusRoundEntry, } from "./consensus";
|
|
8
|
+
export type { VerdictRecommendation, DecisionMatrixEntry, DecisionMatrix, DissentingView, VerdictNarrative, Verdict, } from "./verdict";
|
|
9
|
+
export type { CostRecord, ModelUsage, DebateCost, } from "./cost";
|
|
10
|
+
export type { RoundType, Round, ClaimAssignment, ValidationResult, ProcessingResult, AgentEngagement, EngagementMetrics, } from "./rounds";
|
|
11
|
+
export type { SearchQuery, SearchResult, SearchResponse, } from "./search";
|
|
12
|
+
export type { DebateShape, ShapeResult, } from "./shapes";
|
|
13
|
+
export type { InteractiveDebateStage, DebateStartEvent, AgentThinkingEvent, AgentArgumentEvent, AgentErrorEvent, AgentSearchEvent, GraphUpdateEvent, ConsensusCheckEvent, VerdictStartEvent, VerdictCompleteEvent, DebateCompleteEvent, DebateErrorEvent, DebateCachedEvent, StageChangeEvent, AgentIntroEvent, SynthesisProgressEvent, SynthesisNarrativeChunkEvent, DebateStatusEvent, DebatePausedEvent, DebateResumedEvent, ModeratorInjectEvent, QuestionClarificationEvent, MidDebateAnalysisEvent, FactCheckEvent, ControversyScoreEvent, EngineApiCallEvent, EngineApiResponseEvent, CostUpdateEvent, BadgesAwardedEvent, ClaimStatusChangedEvent, ControversyScoredEvent, QuickTakeStartEvent, QuickTakeThinkingEvent, QuickTakeCompleteEvent, QuickTakeAgreementEvent, AgentActionEvent, AgentThinkingContentEvent, DebateEvent, DebateEventType, DebateEventData, StreamEvent, } from "./events";
|
|
14
|
+
export type { StoredDebate, Checkpoint, KnowledgeEntry, DebateTranscriptArgument, DebateTranscriptRound, DebateTranscript, KnowledgeQuery, KnowledgeStats, DeleteDebateOptions, DeleteDebateResult, StoredEvent, } from "./store";
|
|
15
|
+
export type { BillingDebateMode, CreditPackType, Feature, CreditPack, PlanConfig, PricingFeature, PricingTier, WorkspacePlanId, WorkspacePlan, WorkspaceCreditPack, } from "./pricing";
|
|
16
|
+
export { DEBATE_CREDIT_COSTS, CREDIT_PACKS, CREDIT_AMOUNTS, STARTER_PLAN, PRO_PLAN, FREE_TIER, BYOK_DEBATE_LIMITS, SEAT_LIMITS, MONTHLY_CREDITS, FEATURE_MATRIX, PLAN_CONFIGS, PRICING_TIERS, FOUNDING_MEMBER, WORKSPACE_PLANS, WORKSPACE_CREDIT_PACKS, AGENT_COUNT_LIMITS, getCreditCostForMode, getMaxAgents, getPlanConfig, isPlanAllowed, getSeatLimit, isFreeTierModeAllowed, getWorkspacePlan, getMonthlyCredits, normalizePlan, } from "./pricing";
|
|
17
|
+
export type PreferredSignIn = "magic_link" | "passkey" | "password";
|
|
18
|
+
export type { UserPlan, FundingSource, CreditTransactionType, User, UsageStats, CreditBalance, ApiKey, } from "./user";
|
|
19
|
+
export type { CreateDebateRequest, CreateDebateResponse, GetDebateResponse, ListDebatesResponse, DebateCommandRequest, GetUsageResponse, HealthResponse, ApiError, StreamEventWrapper, } from "./api";
|
|
20
|
+
export type { ApiKeyConfig, PresetInfo, } from "./api-key";
|
|
21
|
+
export type { ErrorContext, VerdictErrorCode, } from "./errors";
|
|
22
|
+
export type { ShareSettings, PublicDebateView, } from "./sharing";
|
|
23
|
+
export type { OutcomeStatus, OutcomeRecord, OutcomeFeedback, PendingOutcome, OutcomeHistoryItem, } from "./outcome";
|
|
24
|
+
export type { CalibrationBucket, CalibratedProbability, CalibratedVerdict, PlattParams, } from "./calibration";
|
|
25
|
+
export type { DecisionScore, DomainAccuracy, AccuracyTrendPoint, DomainCategory, } from "./decision-score";
|
|
26
|
+
export { DOMAIN_KEYWORDS } from "./decision-score";
|
|
27
|
+
export type { ChainRelationship, ChainNode, DecisionChain, DecisionChainSummary, ChainLinkInput, ChainContext, } from "./decision-chain";
|
|
28
|
+
export type { FeatureFlagKey, FeatureFlag, UpsertFeatureFlagInput, } from "./feature-flags";
|
|
29
|
+
export type { FallacyDetection, FallacyReport, } from "./fallacy";
|
|
30
|
+
export type { BadgeRarity, BadgeCategory, BadgeDefinition, UserBadge, BadgesResponse, } from "./badges";
|
|
31
|
+
export { BADGE_DEFINITIONS, BADGE_MAP, BADGE_RARITY_ORDER, BADGE_RARITY_LABELS, } from "./badges";
|
|
32
|
+
export type { TemplateFieldType, TemplateCategory, TemplateField, DecisionTemplate, } from "./templates";
|
|
33
|
+
export { BUILTIN_TEMPLATES, getTemplate, getTemplatesByCategory, composeTemplateQuestion, validateTemplateFields, } from "./templates";
|
|
34
|
+
export type { BuiltinFrameworkId, CustomFrameworkId, DebateFrameworkId, FrameworkRoundStructure, FrameworkPersonaSlot, CustomPersonaSlot, FrameworkVerdictFormat, DebateFramework, CustomDebateFramework, } from "./frameworks";
|
|
35
|
+
export { FRAMEWORKS, getFramework, getAllFrameworks, getSpecializedFrameworks, isCustomFrameworkId, isBuiltinFrameworkId, } from "./frameworks";
|
|
36
|
+
export type { DecisionCategory } from "./categories";
|
|
37
|
+
export { DECISION_CATEGORIES, CATEGORY_LABELS, CATEGORY_COLORS, CATEGORY_KEYWORDS, } from "./categories";
|
|
38
|
+
export type { BiasType, BiasDetection, BiasProfile } from "./bias";
|
|
39
|
+
export type { ActionItemPriority, ActionItemCategory, ActionItemLink, ActionItem, ActionItemsData, } from "./action-items";
|
|
40
|
+
export type { VerdictCardData, SlackBlock, DiscordEmbed, VerdictCardFormat, } from "./renderers";
|
|
41
|
+
export { renderSlackBlocks, renderTeamsAdaptiveCard, renderDiscordEmbed, renderHtml, renderMarkdown, renderVerdictCard, } from "./renderers";
|
|
42
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,YAAY,EACV,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,gBAAgB,EAChB,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,kBAAkB,EAClB,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,YAAY,CAAC;AAGpB,YAAY,EACV,UAAU,EACV,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,UAAU,EACV,YAA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,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AAGrB,YAAY,EACV,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,uBAAuB,EACvB,oBAAoB,EACpB,iBAAiB,EACjB,sBAAsB,EACtB,eAAe,EACf,qBAAqB,GACtB,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAGtB,YAAY,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAGtB,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAGnE,YAAY,EACV,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,UAAU,EACV,eAAe,GAChB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EACV,eAAe,EACf,UAAU,EACV,YAAY,EACZ,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,iBAAiB,GAClB,MAAM,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// @askverdict/types — Shared type definitions for AskVerdict
|
|
2
|
+
export { DEBATE_CREDIT_COSTS, CREDIT_PACKS, CREDIT_AMOUNTS, STARTER_PLAN, PRO_PLAN, FREE_TIER, BYOK_DEBATE_LIMITS, SEAT_LIMITS, MONTHLY_CREDITS, FEATURE_MATRIX, PLAN_CONFIGS, PRICING_TIERS, FOUNDING_MEMBER, WORKSPACE_PLANS, WORKSPACE_CREDIT_PACKS, AGENT_COUNT_LIMITS, getCreditCostForMode, getMaxAgents, getPlanConfig, isPlanAllowed, getSeatLimit, isFreeTierModeAllowed, getWorkspacePlan, getMonthlyCredits, normalizePlan, } from "./pricing";
|
|
3
|
+
export { DOMAIN_KEYWORDS } from "./decision-score";
|
|
4
|
+
export { BADGE_DEFINITIONS, BADGE_MAP, BADGE_RARITY_ORDER, BADGE_RARITY_LABELS, } from "./badges";
|
|
5
|
+
export { BUILTIN_TEMPLATES, getTemplate, getTemplatesByCategory, composeTemplateQuestion, validateTemplateFields, } from "./templates";
|
|
6
|
+
export { FRAMEWORKS, getFramework, getAllFrameworks, getSpecializedFrameworks, isCustomFrameworkId, isBuiltinFrameworkId, } from "./frameworks";
|
|
7
|
+
export { DECISION_CATEGORIES, CATEGORY_LABELS, CATEGORY_COLORS, CATEGORY_KEYWORDS, } from "./categories";
|
|
8
|
+
export { renderSlackBlocks, renderTeamsAdaptiveCard, renderDiscordEmbed, renderHtml, renderMarkdown, renderVerdictCard, } from "./renderers";
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAoM7D,OAAO,EACL,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,SAAS,EACT,kBAAkB,EAClB,WAAW,EACX,eAAe,EACf,cAAc,EACd,YAAY,EACZ,aAAa,EACb,eAAe,EACf,eAAe,EACf,sBAAsB,EACtB,kBAAkB,EAClB,oBAAoB,EACpB,YAAY,EACZ,aAAa,EACb,aAAa,EACb,YAAY,EACZ,qBAAqB,EACrB,gBAAgB,EAChB,iBAAiB,EACjB,aAAa,GACd,MAAM,WAAW,CAAC;AAuEnB,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AAiCnD,OAAO,EACL,iBAAiB,EACjB,SAAS,EACT,kBAAkB,EAClB,mBAAmB,GACpB,MAAM,UAAU,CAAC;AASlB,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,sBAAsB,EACtB,uBAAuB,EACvB,sBAAsB,GACvB,MAAM,aAAa,CAAC;AAcrB,OAAO,EACL,UAAU,EACV,YAAY,EACZ,gBAAgB,EAChB,wBAAwB,EACxB,mBAAmB,EACnB,oBAAoB,GACrB,MAAM,cAAc,CAAC;AAItB,OAAO,EACL,mBAAmB,EACnB,eAAe,EACf,eAAe,EACf,iBAAiB,GAClB,MAAM,cAAc,CAAC;AAqBtB,OAAO,EACL,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,UAAU,EACV,cAAc,EACd,iBAAiB,GAClB,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/** Status of a decision outcome */
|
|
2
|
+
export type OutcomeStatus = "pending" | "correct" | "partially_correct" | "wrong" | "too_early" | "skipped";
|
|
3
|
+
/** Stored outcome record for a debate */
|
|
4
|
+
export interface OutcomeRecord {
|
|
5
|
+
id: string;
|
|
6
|
+
debateId: string;
|
|
7
|
+
userId: string;
|
|
8
|
+
predictedProbability: number;
|
|
9
|
+
outcomeStatus: OutcomeStatus;
|
|
10
|
+
outcomeNotes: string | null;
|
|
11
|
+
satisfactionScore: number | null;
|
|
12
|
+
reminderAt: string | null;
|
|
13
|
+
reminderSent: boolean;
|
|
14
|
+
recordedAt: string | null;
|
|
15
|
+
createdAt: string;
|
|
16
|
+
}
|
|
17
|
+
/** User input shape for submitting an outcome */
|
|
18
|
+
export interface OutcomeFeedback {
|
|
19
|
+
outcomeStatus: Exclude<OutcomeStatus, "pending" | "skipped">;
|
|
20
|
+
outcomeNotes?: string;
|
|
21
|
+
satisfactionScore?: number;
|
|
22
|
+
}
|
|
23
|
+
/** Pending outcome for display (includes debate context) */
|
|
24
|
+
export interface PendingOutcome {
|
|
25
|
+
id: string;
|
|
26
|
+
debateId: string;
|
|
27
|
+
question: string;
|
|
28
|
+
predictedProbability: number;
|
|
29
|
+
reminderAt: string | null;
|
|
30
|
+
daysSinceDebate: number;
|
|
31
|
+
createdAt: string;
|
|
32
|
+
}
|
|
33
|
+
/** Outcome history item with debate context */
|
|
34
|
+
export interface OutcomeHistoryItem {
|
|
35
|
+
id: string;
|
|
36
|
+
debateId: string;
|
|
37
|
+
question: string;
|
|
38
|
+
/** Whether the source debate has been soft-deleted */
|
|
39
|
+
debateDeleted?: boolean;
|
|
40
|
+
predictedProbability: number;
|
|
41
|
+
outcomeStatus: OutcomeStatus;
|
|
42
|
+
outcomeNotes: string | null;
|
|
43
|
+
satisfactionScore: number | null;
|
|
44
|
+
recordedAt: string | null;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=outcome.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outcome.d.ts","sourceRoot":"","sources":["../src/outcome.ts"],"names":[],"mappings":"AAEA,mCAAmC;AACnC,MAAM,MAAM,aAAa,GACrB,SAAS,GACT,SAAS,GACT,mBAAmB,GACnB,OAAO,GACP,WAAW,GACX,SAAS,CAAC;AAEd,yCAAyC;AACzC,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,iDAAiD;AACjD,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,OAAO,CAAC,aAAa,EAAE,SAAS,GAAG,SAAS,CAAC,CAAC;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,4DAA4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,+CAA+C;AAC/C,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,sDAAsD;IACtD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oBAAoB,EAAE,MAAM,CAAC;IAC7B,aAAa,EAAE,aAAa,CAAC;IAC7B,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/outcome.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"outcome.js","sourceRoot":"","sources":["../src/outcome.ts"],"names":[],"mappings":"AAAA,yBAAyB"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
export type UserPlan = "free" | "starter" | "pro" | "enterprise";
|
|
2
|
+
/** Billing-relevant debate modes (subset of engine DebateMode) */
|
|
3
|
+
export type BillingDebateMode = "instant" | "fast" | "balanced" | "thorough" | "compare";
|
|
4
|
+
export type CreditPackType = "credits_50" | "credits_200" | "credits_600";
|
|
5
|
+
export type Feature = "sso" | "scim" | "custom_roles" | "api_access" | "mfa_enforcement" | "advanced_audit" | "decision_matrix" | "convergence_scores" | "argument_graph_heatmap" | "file_upload_storage";
|
|
6
|
+
/**
|
|
7
|
+
* Credits consumed per debate/compare mode.
|
|
8
|
+
* Instant: 1 credit ($0.01 cost, $0.19 margin) - single-pass Quick Take
|
|
9
|
+
* Fast: 1 credit ($0.03 cost, $0.17 margin)
|
|
10
|
+
* Balanced: 3 credits ($0.08 cost, $0.52 margin)
|
|
11
|
+
* Thorough: 8 credits ($0.14 cost, $1.46 margin)
|
|
12
|
+
* Compare: 5 credits ($0.10 cost, $0.90 margin)
|
|
13
|
+
*/
|
|
14
|
+
export declare const DEBATE_CREDIT_COSTS: Record<BillingDebateMode, number>;
|
|
15
|
+
export interface CreditPack {
|
|
16
|
+
type: CreditPackType;
|
|
17
|
+
name: string;
|
|
18
|
+
credits: number;
|
|
19
|
+
displayPrice: string;
|
|
20
|
+
priceCents: number;
|
|
21
|
+
highlighted: boolean;
|
|
22
|
+
}
|
|
23
|
+
export declare const CREDIT_PACKS: CreditPack[];
|
|
24
|
+
/** Credit amounts awarded per pack purchase */
|
|
25
|
+
export declare const CREDIT_AMOUNTS: Record<CreditPackType, number>;
|
|
26
|
+
export declare const STARTER_PLAN: {
|
|
27
|
+
readonly monthly: {
|
|
28
|
+
readonly displayPrice: "$4.99";
|
|
29
|
+
readonly priceCents: 499;
|
|
30
|
+
readonly creditsPerMonth: 200;
|
|
31
|
+
};
|
|
32
|
+
readonly annual: {
|
|
33
|
+
readonly displayPrice: "$3.99";
|
|
34
|
+
readonly priceCents: 399;
|
|
35
|
+
readonly creditsPerMonth: 200;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const PRO_PLAN: {
|
|
39
|
+
readonly monthly: {
|
|
40
|
+
readonly displayPrice: "$14.99";
|
|
41
|
+
readonly priceCents: 1499;
|
|
42
|
+
readonly creditsPerMonth: 700;
|
|
43
|
+
};
|
|
44
|
+
readonly annual: {
|
|
45
|
+
readonly displayPrice: "$11.99";
|
|
46
|
+
readonly priceCents: 1199;
|
|
47
|
+
readonly creditsPerMonth: 700;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const FREE_TIER: {
|
|
51
|
+
readonly lifetimeDebates: 3;
|
|
52
|
+
readonly allowedModes: BillingDebateMode[];
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Monthly debate cap when using own API keys (BYOK toggle enabled).
|
|
56
|
+
* -1 means unlimited.
|
|
57
|
+
*/
|
|
58
|
+
export declare const BYOK_DEBATE_LIMITS: Record<Exclude<UserPlan, "free">, number>;
|
|
59
|
+
/** Per-plan seat limits. -1 means unlimited (enterprise). */
|
|
60
|
+
export declare const SEAT_LIMITS: Record<UserPlan, number>;
|
|
61
|
+
/** Credits included per month per plan. 0 = no subscription credits. */
|
|
62
|
+
export declare const MONTHLY_CREDITS: Record<UserPlan, number>;
|
|
63
|
+
/**
|
|
64
|
+
* Maps each gated feature to the set of plans that unlock it.
|
|
65
|
+
*/
|
|
66
|
+
export declare const FEATURE_MATRIX: Record<Feature, UserPlan[]>;
|
|
67
|
+
export interface PlanConfig {
|
|
68
|
+
label: string;
|
|
69
|
+
description: string;
|
|
70
|
+
limits: string[];
|
|
71
|
+
badgeClass: string;
|
|
72
|
+
}
|
|
73
|
+
export declare const PLAN_CONFIGS: Record<UserPlan, PlanConfig>;
|
|
74
|
+
export interface PricingFeature {
|
|
75
|
+
label: string;
|
|
76
|
+
included: boolean;
|
|
77
|
+
badge?: "new" | "popular";
|
|
78
|
+
}
|
|
79
|
+
export interface PricingTier {
|
|
80
|
+
name: string;
|
|
81
|
+
price: string;
|
|
82
|
+
annualPrice?: string;
|
|
83
|
+
annualPeriod?: string;
|
|
84
|
+
annualSavingsPercent?: number;
|
|
85
|
+
period: string;
|
|
86
|
+
description: string;
|
|
87
|
+
features: PricingFeature[];
|
|
88
|
+
highlighted: boolean;
|
|
89
|
+
badge?: string;
|
|
90
|
+
ctaLabel: string;
|
|
91
|
+
ctaHref: string;
|
|
92
|
+
}
|
|
93
|
+
export declare const PRICING_TIERS: PricingTier[];
|
|
94
|
+
export type WorkspacePlanId = "free" | "team" | "business" | "enterprise";
|
|
95
|
+
export interface WorkspacePlan {
|
|
96
|
+
id: WorkspacePlanId;
|
|
97
|
+
name: string;
|
|
98
|
+
description: string;
|
|
99
|
+
pricePerSeat: number;
|
|
100
|
+
minSeats: number;
|
|
101
|
+
maxSeats: number;
|
|
102
|
+
includedCredits: number;
|
|
103
|
+
features: string[];
|
|
104
|
+
}
|
|
105
|
+
export declare const WORKSPACE_PLANS: Record<WorkspacePlanId, WorkspacePlan>;
|
|
106
|
+
export declare const WORKSPACE_CREDIT_PACKS: readonly [{
|
|
107
|
+
readonly credits: 50;
|
|
108
|
+
readonly price: 7.99;
|
|
109
|
+
readonly popular: false;
|
|
110
|
+
}, {
|
|
111
|
+
readonly credits: 150;
|
|
112
|
+
readonly price: 19.99;
|
|
113
|
+
readonly popular: true;
|
|
114
|
+
}, {
|
|
115
|
+
readonly credits: 500;
|
|
116
|
+
readonly price: 49.99;
|
|
117
|
+
readonly popular: false;
|
|
118
|
+
}, {
|
|
119
|
+
readonly credits: 1500;
|
|
120
|
+
readonly price: 129.99;
|
|
121
|
+
readonly popular: false;
|
|
122
|
+
}];
|
|
123
|
+
export type WorkspaceCreditPack = (typeof WORKSPACE_CREDIT_PACKS)[number];
|
|
124
|
+
/** Get display config for a workspace plan. */
|
|
125
|
+
export declare function getWorkspacePlan(id: WorkspacePlanId): WorkspacePlan;
|
|
126
|
+
export declare const FOUNDING_MEMBER: {
|
|
127
|
+
readonly discountPercent: 100;
|
|
128
|
+
readonly durationMonths: 1;
|
|
129
|
+
readonly totalSlots: 100;
|
|
130
|
+
readonly description: "First 100 users get 1 month free Pro - no credit card required.";
|
|
131
|
+
};
|
|
132
|
+
/** Maximum number of agents per debate per plan. -1 means unlimited. */
|
|
133
|
+
export declare const AGENT_COUNT_LIMITS: Record<UserPlan, number>;
|
|
134
|
+
/** Get the maximum agent count allowed for a given plan. -1 means unlimited. */
|
|
135
|
+
export declare function getMaxAgents(plan: UserPlan): number;
|
|
136
|
+
/** Get the credit cost for a given debate mode. */
|
|
137
|
+
export declare function getCreditCostForMode(mode: BillingDebateMode): number;
|
|
138
|
+
/** Get display config for a plan. */
|
|
139
|
+
export declare function getPlanConfig(plan: UserPlan): PlanConfig;
|
|
140
|
+
/** Check if a plan grants access to a given feature. */
|
|
141
|
+
export declare function isPlanAllowed(plan: UserPlan, feature: Feature): boolean;
|
|
142
|
+
/** Get the seat limit for a plan. -1 means unlimited. */
|
|
143
|
+
export declare function getSeatLimit(plan: UserPlan): number;
|
|
144
|
+
/** Check if a debate mode is available on the free tier. */
|
|
145
|
+
export declare function isFreeTierModeAllowed(mode: BillingDebateMode): boolean;
|
|
146
|
+
/** Get monthly included credits for a plan. */
|
|
147
|
+
export declare function getMonthlyCredits(plan: UserPlan): number;
|
|
148
|
+
/**
|
|
149
|
+
* Normalize legacy plan names to new simplified plans.
|
|
150
|
+
* "byok" -> "starter", "byok_pro" -> "pro"
|
|
151
|
+
*/
|
|
152
|
+
export declare function normalizePlan(plan: string): UserPlan;
|
|
153
|
+
//# sourceMappingURL=pricing.d.ts.map
|