@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
package/dist/store.d.ts
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import type { AgentState } from "./agent";
|
|
2
|
+
import type { ConsensusRoundEntry } from "./consensus";
|
|
3
|
+
import type { DebateCost } from "./cost";
|
|
4
|
+
import type { DebateStatus, DebateSource } from "./debate";
|
|
5
|
+
import type { KnowledgeEvidence } from "./evidence";
|
|
6
|
+
import type { GraphSnapshot } from "./graph";
|
|
7
|
+
import type { Verdict } from "./verdict";
|
|
8
|
+
export interface StoredDebate {
|
|
9
|
+
id: string;
|
|
10
|
+
question: string;
|
|
11
|
+
context?: string;
|
|
12
|
+
status: DebateStatus;
|
|
13
|
+
agentCount: number;
|
|
14
|
+
maxRounds: number;
|
|
15
|
+
completedRounds: number;
|
|
16
|
+
verdict: Verdict | null;
|
|
17
|
+
cost: DebateCost | null;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
20
|
+
completedAt: string | null;
|
|
21
|
+
deletedAt?: string | null;
|
|
22
|
+
source?: DebateSource;
|
|
23
|
+
parentDebateId?: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface Checkpoint {
|
|
26
|
+
id: number;
|
|
27
|
+
debateId: string;
|
|
28
|
+
round: number;
|
|
29
|
+
graphSnapshot: GraphSnapshot;
|
|
30
|
+
consensusHistory: ConsensusRoundEntry[];
|
|
31
|
+
agentStates: AgentState[];
|
|
32
|
+
createdAt: string;
|
|
33
|
+
}
|
|
34
|
+
export interface KnowledgeEntry {
|
|
35
|
+
id: number;
|
|
36
|
+
claimContent: string;
|
|
37
|
+
confidence: number;
|
|
38
|
+
domainTags: string[];
|
|
39
|
+
sourceDebateId: string;
|
|
40
|
+
sourceQuestion: string;
|
|
41
|
+
evidence: KnowledgeEvidence[];
|
|
42
|
+
createdAt: string;
|
|
43
|
+
sourceDeleted?: boolean;
|
|
44
|
+
archived?: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface DebateTranscriptArgument {
|
|
47
|
+
agentId: string;
|
|
48
|
+
content: string;
|
|
49
|
+
type: "opening" | "challenge" | "rebut" | "concede" | "closing";
|
|
50
|
+
confidence: number;
|
|
51
|
+
evidence: KnowledgeEvidence[];
|
|
52
|
+
responses?: Array<{
|
|
53
|
+
toClaimId: string;
|
|
54
|
+
type: "challenge" | "concede" | "rebut";
|
|
55
|
+
content: string;
|
|
56
|
+
evidence: KnowledgeEvidence[];
|
|
57
|
+
}>;
|
|
58
|
+
}
|
|
59
|
+
export interface DebateTranscriptRound {
|
|
60
|
+
round: number;
|
|
61
|
+
type: string;
|
|
62
|
+
arguments: DebateTranscriptArgument[];
|
|
63
|
+
}
|
|
64
|
+
export interface DebateTranscript {
|
|
65
|
+
agents: Array<{
|
|
66
|
+
id: string;
|
|
67
|
+
name: string;
|
|
68
|
+
persona: string;
|
|
69
|
+
}>;
|
|
70
|
+
rounds: DebateTranscriptRound[];
|
|
71
|
+
}
|
|
72
|
+
export interface KnowledgeQuery {
|
|
73
|
+
keywords: string[];
|
|
74
|
+
limit?: number;
|
|
75
|
+
minConfidence?: number;
|
|
76
|
+
}
|
|
77
|
+
export interface KnowledgeStats {
|
|
78
|
+
totalEntries: number;
|
|
79
|
+
sourceDebates: number;
|
|
80
|
+
avgConfidence: number;
|
|
81
|
+
topDomains: Array<{
|
|
82
|
+
domain: string;
|
|
83
|
+
count: number;
|
|
84
|
+
}>;
|
|
85
|
+
}
|
|
86
|
+
export interface DeleteDebateOptions {
|
|
87
|
+
hardDelete?: boolean;
|
|
88
|
+
deleteKnowledge?: boolean;
|
|
89
|
+
}
|
|
90
|
+
export interface DeleteDebateResult {
|
|
91
|
+
debateDeleted: boolean;
|
|
92
|
+
knowledgeDeleted: number;
|
|
93
|
+
knowledgeOrphaned: number;
|
|
94
|
+
}
|
|
95
|
+
export interface StoredEvent {
|
|
96
|
+
id: number;
|
|
97
|
+
debateId: string;
|
|
98
|
+
eventId: number;
|
|
99
|
+
eventType: string;
|
|
100
|
+
eventData: unknown;
|
|
101
|
+
createdAt: string;
|
|
102
|
+
}
|
|
103
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAA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,WAAW,mBAAmB;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC,aAAa,EAAE,OAAO,CAAC;IACvB,gBAAgB,EAAE,MAAM,CAAC;IACzB,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;CACnB"}
|
package/dist/store.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AAAA,0BAA0B"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/** Field types available in template input forms */
|
|
2
|
+
export type TemplateFieldType = "text" | "number" | "select" | "multiselect" | "textarea";
|
|
3
|
+
/** Category groupings for template picker */
|
|
4
|
+
export type TemplateCategory = "business" | "technology" | "career" | "investment";
|
|
5
|
+
/** A single input field in a template form */
|
|
6
|
+
export interface TemplateField {
|
|
7
|
+
name: string;
|
|
8
|
+
label: string;
|
|
9
|
+
type: TemplateFieldType;
|
|
10
|
+
required: boolean;
|
|
11
|
+
placeholder: string;
|
|
12
|
+
options?: string[];
|
|
13
|
+
description?: string;
|
|
14
|
+
}
|
|
15
|
+
/** A complete decision template definition */
|
|
16
|
+
export interface DecisionTemplate {
|
|
17
|
+
slug: string;
|
|
18
|
+
name: string;
|
|
19
|
+
category: TemplateCategory;
|
|
20
|
+
description: string;
|
|
21
|
+
icon: string;
|
|
22
|
+
fields: TemplateField[];
|
|
23
|
+
promptTemplate: string;
|
|
24
|
+
recommendedMode: "fast" | "balanced" | "thorough";
|
|
25
|
+
/** Suggested decision framework for this template (D.5 — Framework-Template Linking) */
|
|
26
|
+
suggestedFramework?: import("./frameworks").DebateFrameworkId;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Maximum length (in characters) for a composed template question.
|
|
30
|
+
* If the result exceeds this limit it is truncated at the last complete
|
|
31
|
+
* sentence boundary before the limit.
|
|
32
|
+
*/
|
|
33
|
+
export declare const MAX_COMPOSED_QUESTION_LENGTH = 4000;
|
|
34
|
+
export declare const BUILTIN_TEMPLATES: Readonly<Record<string, DecisionTemplate>>;
|
|
35
|
+
/** Get a template by slug, or undefined if not found */
|
|
36
|
+
export declare function getTemplate(slug: string): DecisionTemplate | undefined;
|
|
37
|
+
/** Get all templates as an array, optionally filtered by category */
|
|
38
|
+
export declare function getTemplatesByCategory(category?: TemplateCategory): DecisionTemplate[];
|
|
39
|
+
/**
|
|
40
|
+
* Compose a debate question from a template and user-provided field values.
|
|
41
|
+
* Uses simple mustache-like substitution: {{field}} for required,
|
|
42
|
+
* {{#field}}...{{/field}} blocks for optional fields (omitted if empty).
|
|
43
|
+
*/
|
|
44
|
+
export declare function composeTemplateQuestion(template: DecisionTemplate, fields: Record<string, string | number | string[]>): string;
|
|
45
|
+
/**
|
|
46
|
+
* Validate that all required fields for a template are provided.
|
|
47
|
+
* Returns array of missing field names, or empty array if valid.
|
|
48
|
+
*/
|
|
49
|
+
export declare function validateTemplateFields(template: DecisionTemplate, fields: Record<string, unknown>): string[];
|
|
50
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAEA,oDAAoD;AACpD,MAAM,MAAM,iBAAiB,GACzB,MAAM,GACN,QAAQ,GACR,QAAQ,GACR,aAAa,GACb,UAAU,CAAC;AAEf,6CAA6C;AAC7C,MAAM,MAAM,gBAAgB,GACxB,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,YAAY,CAAC;AAEjB,8CAA8C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AC1B,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,MAAM,EAAE,CAUV"}
|
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
// Decision Templates — structured business decision templates
|
|
2
|
+
// ============================================================================
|
|
3
|
+
// BUILT-IN TEMPLATES
|
|
4
|
+
// ============================================================================
|
|
5
|
+
const VENDOR_SELECTION = {
|
|
6
|
+
slug: "vendor-selection",
|
|
7
|
+
name: "Vendor Selection",
|
|
8
|
+
category: "business",
|
|
9
|
+
description: "Compare vendors, tools, or service providers against your requirements",
|
|
10
|
+
icon: "scale",
|
|
11
|
+
fields: [
|
|
12
|
+
{ name: "category", label: "Category", type: "text", required: true, placeholder: "e.g., Cloud hosting, CRM, Analytics" },
|
|
13
|
+
{ name: "options", label: "Options to Compare", type: "textarea", required: true, placeholder: "e.g., AWS vs GCP vs Azure" },
|
|
14
|
+
{ name: "budget", label: "Budget", type: "text", required: true, placeholder: "e.g., $50,000/year" },
|
|
15
|
+
{ name: "requirements", label: "Key Requirements", type: "textarea", required: true, placeholder: "e.g., SOC2 compliance, <100ms latency, API-first" },
|
|
16
|
+
{ name: "timeline", label: "Decision Timeline", type: "text", required: false, placeholder: "e.g., Q2 2026" },
|
|
17
|
+
{ name: "teamSize", label: "Team Size", type: "number", required: false, placeholder: "e.g., 15" },
|
|
18
|
+
],
|
|
19
|
+
promptTemplate: `Evaluate this vendor selection decision:
|
|
20
|
+
|
|
21
|
+
## Decision Context
|
|
22
|
+
Category: {{category}}
|
|
23
|
+
Options: {{options}}
|
|
24
|
+
Budget: {{budget}}
|
|
25
|
+
Key Requirements: {{requirements}}
|
|
26
|
+
{{#timeline}}Timeline: {{timeline}}{{/timeline}}
|
|
27
|
+
{{#teamSize}}Team Size: {{teamSize}}{{/teamSize}}
|
|
28
|
+
|
|
29
|
+
Compare each option against the stated requirements. Score them on cost, capability, reliability, and fit. Identify deal-breakers and hidden costs.`,
|
|
30
|
+
recommendedMode: "balanced",
|
|
31
|
+
suggestedFramework: "six-thinking-hats",
|
|
32
|
+
};
|
|
33
|
+
const BUILD_VS_BUY = {
|
|
34
|
+
slug: "build-vs-buy",
|
|
35
|
+
name: "Build vs Buy",
|
|
36
|
+
category: "technology",
|
|
37
|
+
description: "Decide whether to build in-house or purchase an existing solution",
|
|
38
|
+
icon: "hammer",
|
|
39
|
+
fields: [
|
|
40
|
+
{ name: "feature", label: "Feature / Capability", type: "text", required: true, placeholder: "e.g., Payment processing system" },
|
|
41
|
+
{ name: "internalCapacity", label: "Internal Capacity", type: "textarea", required: true, placeholder: "e.g., 3 senior engineers, 6 months availability" },
|
|
42
|
+
{ name: "budget", label: "Budget", type: "text", required: true, placeholder: "e.g., $100,000 initial + $20,000/year maintenance" },
|
|
43
|
+
{ name: "timeline", label: "Timeline", type: "text", required: true, placeholder: "e.g., Must ship by Q3 2026" },
|
|
44
|
+
{ name: "maintenanceBudget", label: "Ongoing Maintenance Budget", type: "text", required: false, placeholder: "e.g., $2,000/month" },
|
|
45
|
+
],
|
|
46
|
+
promptTemplate: `Evaluate this build vs buy decision:
|
|
47
|
+
|
|
48
|
+
## Decision Context
|
|
49
|
+
Feature: {{feature}}
|
|
50
|
+
Internal Capacity: {{internalCapacity}}
|
|
51
|
+
Budget: {{budget}}
|
|
52
|
+
Timeline: {{timeline}}
|
|
53
|
+
{{#maintenanceBudget}}Maintenance Budget: {{maintenanceBudget}}{{/maintenanceBudget}}
|
|
54
|
+
|
|
55
|
+
Analyze total cost of ownership for both paths. Consider development time, maintenance burden, vendor lock-in, customization needs, and opportunity cost of engineering time.`,
|
|
56
|
+
recommendedMode: "balanced",
|
|
57
|
+
suggestedFramework: "six-thinking-hats",
|
|
58
|
+
};
|
|
59
|
+
const HIRE_VS_CONTRACT = {
|
|
60
|
+
slug: "hire-vs-contract",
|
|
61
|
+
name: "Hire vs Contract",
|
|
62
|
+
category: "career",
|
|
63
|
+
description: "Decide between hiring full-time or engaging contractors",
|
|
64
|
+
icon: "users",
|
|
65
|
+
fields: [
|
|
66
|
+
{ name: "role", label: "Role", type: "text", required: true, placeholder: "e.g., Senior Backend Engineer" },
|
|
67
|
+
{ name: "duration", label: "Expected Duration", type: "text", required: true, placeholder: "e.g., 12+ months ongoing" },
|
|
68
|
+
{ name: "budget", label: "Budget", type: "text", required: true, placeholder: "e.g., $150,000/year fully loaded" },
|
|
69
|
+
{ name: "skills", label: "Required Skills", type: "textarea", required: true, placeholder: "e.g., Rust, distributed systems, AWS" },
|
|
70
|
+
{ name: "urgency", label: "Urgency", type: "select", required: true, placeholder: "Select urgency", options: ["Low — can wait 3+ months", "Medium — need within 1-2 months", "High — need within weeks", "Critical — need immediately"] },
|
|
71
|
+
],
|
|
72
|
+
promptTemplate: `Evaluate this staffing decision:
|
|
73
|
+
|
|
74
|
+
## Decision Context
|
|
75
|
+
Role: {{role}}
|
|
76
|
+
Duration: {{duration}}
|
|
77
|
+
Budget: {{budget}}
|
|
78
|
+
Required Skills: {{skills}}
|
|
79
|
+
Urgency: {{urgency}}
|
|
80
|
+
|
|
81
|
+
Compare full-time hire vs contractor engagement. Factor in ramp-up time, IP ownership, team culture, knowledge retention, total cost, and market availability for the required skills.`,
|
|
82
|
+
recommendedMode: "balanced",
|
|
83
|
+
suggestedFramework: "delphi-method",
|
|
84
|
+
};
|
|
85
|
+
const GO_NO_GO = {
|
|
86
|
+
slug: "go-no-go",
|
|
87
|
+
name: "Go / No-Go",
|
|
88
|
+
category: "business",
|
|
89
|
+
description: "Decide whether to proceed with a project, launch, or initiative",
|
|
90
|
+
icon: "rocket",
|
|
91
|
+
fields: [
|
|
92
|
+
{ name: "projectName", label: "Project Name", type: "text", required: true, placeholder: "e.g., Mobile App V2 Launch" },
|
|
93
|
+
{ name: "risks", label: "Known Risks", type: "textarea", required: true, placeholder: "e.g., Untested payment flow, 2 open P1 bugs, holiday season timing" },
|
|
94
|
+
{ name: "budget", label: "Budget at Stake", type: "text", required: true, placeholder: "e.g., $200,000 spent, $50,000 remaining" },
|
|
95
|
+
{ name: "marketCondition", label: "Market Conditions", type: "textarea", required: false, placeholder: "e.g., Competitor launching similar product in Q1" },
|
|
96
|
+
{ name: "readinessScore", label: "Self-Assessed Readiness (1-10)", type: "number", required: false, placeholder: "e.g., 7" },
|
|
97
|
+
],
|
|
98
|
+
promptTemplate: `Evaluate this go/no-go decision:
|
|
99
|
+
|
|
100
|
+
## Decision Context
|
|
101
|
+
Project: {{projectName}}
|
|
102
|
+
Known Risks: {{risks}}
|
|
103
|
+
Budget at Stake: {{budget}}
|
|
104
|
+
{{#marketCondition}}Market Conditions: {{marketCondition}}{{/marketCondition}}
|
|
105
|
+
{{#readinessScore}}Self-Assessed Readiness: {{readinessScore}}/10{{/readinessScore}}
|
|
106
|
+
|
|
107
|
+
Assess readiness across key dimensions: technical, market, financial, and operational. Identify blockers vs acceptable risks. Recommend go, no-go, or conditional go with specific conditions.`,
|
|
108
|
+
recommendedMode: "thorough",
|
|
109
|
+
suggestedFramework: "pre-mortem",
|
|
110
|
+
};
|
|
111
|
+
const INVESTMENT_THESIS = {
|
|
112
|
+
slug: "investment-thesis",
|
|
113
|
+
name: "Investment Thesis",
|
|
114
|
+
category: "investment",
|
|
115
|
+
description: "Evaluate an investment opportunity with structured analysis",
|
|
116
|
+
icon: "trending-up",
|
|
117
|
+
fields: [
|
|
118
|
+
{ name: "asset", label: "Asset / Opportunity", type: "text", required: true, placeholder: "e.g., Series A in FinTech startup" },
|
|
119
|
+
{ name: "amount", label: "Investment Amount", type: "text", required: true, placeholder: "e.g., $25,000" },
|
|
120
|
+
{ name: "timeHorizon", label: "Time Horizon", type: "select", required: true, placeholder: "Select horizon", options: ["Short-term (< 1 year)", "Medium-term (1-3 years)", "Long-term (3-10 years)", "Very long-term (10+ years)"] },
|
|
121
|
+
{ name: "riskTolerance", label: "Risk Tolerance", type: "select", required: true, placeholder: "Select tolerance", options: ["Conservative", "Moderate", "Aggressive", "Very Aggressive"] },
|
|
122
|
+
{ name: "thesis", label: "Your Investment Thesis", type: "textarea", required: true, placeholder: "e.g., AI will transform healthcare billing, this company has best-in-class NLP..." },
|
|
123
|
+
],
|
|
124
|
+
promptTemplate: `Evaluate this investment thesis:
|
|
125
|
+
|
|
126
|
+
## Decision Context
|
|
127
|
+
Asset: {{asset}}
|
|
128
|
+
Amount: {{amount}}
|
|
129
|
+
Time Horizon: {{timeHorizon}}
|
|
130
|
+
Risk Tolerance: {{riskTolerance}}
|
|
131
|
+
Thesis: {{thesis}}
|
|
132
|
+
|
|
133
|
+
Stress-test the thesis from multiple angles. Identify bull and bear cases, key assumptions that must hold, comparable investments, and specific metrics to monitor. Challenge the thesis rigorously.`,
|
|
134
|
+
recommendedMode: "thorough",
|
|
135
|
+
suggestedFramework: "pre-mortem",
|
|
136
|
+
};
|
|
137
|
+
const TECH_STACK = {
|
|
138
|
+
slug: "tech-stack",
|
|
139
|
+
name: "Tech Stack Decision",
|
|
140
|
+
category: "technology",
|
|
141
|
+
description: "Choose the right technology stack for your project",
|
|
142
|
+
icon: "layers",
|
|
143
|
+
fields: [
|
|
144
|
+
{ name: "useCase", label: "Use Case", type: "textarea", required: true, placeholder: "e.g., Real-time collaborative document editor" },
|
|
145
|
+
{ name: "scale", label: "Expected Scale", type: "text", required: true, placeholder: "e.g., 10K DAU, 1M documents, <200ms P99" },
|
|
146
|
+
{ name: "teamExpertise", label: "Team Expertise", type: "textarea", required: true, placeholder: "e.g., Strong in TypeScript/React, some Go experience, no Rust" },
|
|
147
|
+
{ name: "constraints", label: "Constraints", type: "textarea", required: false, placeholder: "e.g., Must run on AWS, HIPAA compliance, max $5K/month infra" },
|
|
148
|
+
{ name: "budget", label: "Development Budget", type: "text", required: false, placeholder: "e.g., $300,000 for MVP" },
|
|
149
|
+
],
|
|
150
|
+
promptTemplate: `Evaluate this technology stack decision:
|
|
151
|
+
|
|
152
|
+
## Decision Context
|
|
153
|
+
Use Case: {{useCase}}
|
|
154
|
+
Expected Scale: {{scale}}
|
|
155
|
+
Team Expertise: {{teamExpertise}}
|
|
156
|
+
{{#constraints}}Constraints: {{constraints}}{{/constraints}}
|
|
157
|
+
{{#budget}}Development Budget: {{budget}}{{/budget}}
|
|
158
|
+
|
|
159
|
+
Recommend a tech stack considering team strengths, scale requirements, ecosystem maturity, hiring market, and long-term maintenance. Compare 2-3 viable stacks with concrete trade-offs.`,
|
|
160
|
+
recommendedMode: "balanced",
|
|
161
|
+
suggestedFramework: "delphi-method",
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* Maximum length (in characters) for a composed template question.
|
|
165
|
+
* If the result exceeds this limit it is truncated at the last complete
|
|
166
|
+
* sentence boundary before the limit.
|
|
167
|
+
*/
|
|
168
|
+
export const MAX_COMPOSED_QUESTION_LENGTH = 4000;
|
|
169
|
+
// ============================================================================
|
|
170
|
+
// EXPORTS
|
|
171
|
+
// ============================================================================
|
|
172
|
+
export const BUILTIN_TEMPLATES = Object.freeze({
|
|
173
|
+
"vendor-selection": VENDOR_SELECTION,
|
|
174
|
+
"build-vs-buy": BUILD_VS_BUY,
|
|
175
|
+
"hire-vs-contract": HIRE_VS_CONTRACT,
|
|
176
|
+
"go-no-go": GO_NO_GO,
|
|
177
|
+
"investment-thesis": INVESTMENT_THESIS,
|
|
178
|
+
"tech-stack": TECH_STACK,
|
|
179
|
+
});
|
|
180
|
+
/** Get a template by slug, or undefined if not found */
|
|
181
|
+
export function getTemplate(slug) {
|
|
182
|
+
return BUILTIN_TEMPLATES[slug];
|
|
183
|
+
}
|
|
184
|
+
/** Get all templates as an array, optionally filtered by category */
|
|
185
|
+
export function getTemplatesByCategory(category) {
|
|
186
|
+
const all = Object.values(BUILTIN_TEMPLATES);
|
|
187
|
+
if (!category)
|
|
188
|
+
return all;
|
|
189
|
+
return all.filter((t) => t.category === category);
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Compose a debate question from a template and user-provided field values.
|
|
193
|
+
* Uses simple mustache-like substitution: {{field}} for required,
|
|
194
|
+
* {{#field}}...{{/field}} blocks for optional fields (omitted if empty).
|
|
195
|
+
*/
|
|
196
|
+
export function composeTemplateQuestion(template, fields) {
|
|
197
|
+
let prompt = template.promptTemplate;
|
|
198
|
+
// Replace simple {{field}} placeholders
|
|
199
|
+
for (const field of template.fields) {
|
|
200
|
+
const value = fields[field.name];
|
|
201
|
+
const stringValue = Array.isArray(value) ? value.join(", ") : String(value ?? "");
|
|
202
|
+
prompt = prompt.replaceAll(`{{${field.name}}}`, stringValue);
|
|
203
|
+
}
|
|
204
|
+
// Handle conditional blocks {{#field}}...{{/field}}
|
|
205
|
+
for (const field of template.fields) {
|
|
206
|
+
const value = fields[field.name];
|
|
207
|
+
// Treat undefined, null, empty string, AND empty arrays as "no value"
|
|
208
|
+
const hasValue = value !== undefined &&
|
|
209
|
+
value !== null &&
|
|
210
|
+
value !== "" &&
|
|
211
|
+
!(Array.isArray(value) && value.length === 0);
|
|
212
|
+
const blockRegex = new RegExp(`\\{\\{#${field.name}\\}\\}([\\s\\S]*?)\\{\\{/${field.name}\\}\\}`, "g");
|
|
213
|
+
if (hasValue) {
|
|
214
|
+
// Keep block content, substitute field value within
|
|
215
|
+
const stringValue = Array.isArray(value) ? value.join(", ") : String(value);
|
|
216
|
+
prompt = prompt.replace(blockRegex, (_match, content) => {
|
|
217
|
+
return content.replaceAll(`{{${field.name}}}`, stringValue);
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
// Remove entire block
|
|
222
|
+
prompt = prompt.replace(blockRegex, "");
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
// Clean up blank lines from removed blocks
|
|
226
|
+
prompt = prompt.replace(/\n{3,}/g, "\n\n").trim();
|
|
227
|
+
// Enforce maximum length — truncate at the last sentence boundary before the limit
|
|
228
|
+
if (prompt.length > MAX_COMPOSED_QUESTION_LENGTH) {
|
|
229
|
+
const truncated = prompt.slice(0, MAX_COMPOSED_QUESTION_LENGTH);
|
|
230
|
+
// Find the last sentence-ending punctuation followed by whitespace or end
|
|
231
|
+
const lastSentence = truncated.search(/[.!?][^.!?]*$/);
|
|
232
|
+
prompt = lastSentence > 0 ? truncated.slice(0, lastSentence + 1) : truncated;
|
|
233
|
+
}
|
|
234
|
+
return prompt;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* Validate that all required fields for a template are provided.
|
|
238
|
+
* Returns array of missing field names, or empty array if valid.
|
|
239
|
+
*/
|
|
240
|
+
export function validateTemplateFields(template, fields) {
|
|
241
|
+
const missing = [];
|
|
242
|
+
for (const field of template.fields) {
|
|
243
|
+
if (!field.required)
|
|
244
|
+
continue;
|
|
245
|
+
const value = fields[field.name];
|
|
246
|
+
if (value === undefined || value === null || value === "") {
|
|
247
|
+
missing.push(field.name);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
return missing;
|
|
251
|
+
}
|
|
252
|
+
//# sourceMappingURL=templates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.js","sourceRoot":"","sources":["../src/templates.ts"],"names":[],"mappings":"AAAA,8DAA8D;AA0C9D,+EAA+E;AAC/E,qBAAqB;AACrB,+EAA+E;AAE/E,MAAM,gBAAgB,GAAqB;IACzC,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,kBAAkB;IACxB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,wEAAwE;IACrF,IAAI,EAAE,OAAO;IACb,MAAM,EAAE;QACN,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,qCAAqC,EAAE;QACzH,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,oBAAoB,EAAE,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,IAAI,EAAE,WAAW,EAAE,2BAA2B,EAAE;QAC5H,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,M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B,KAAK,MAAM,KAAK,IAAI,QAAQ,CAAC,MAAM,EAAE,CAAC;QACpC,IAAI,CAAC,KAAK,CAAC,QAAQ;YAAE,SAAS;QAC9B,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QACjC,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,EAAE,CAAC;YAC1D,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;QAC3B,CAAC;IACH,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/user.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export type { UserPlan } from "./pricing";
|
|
2
|
+
import type { UserPlan } from "./pricing";
|
|
3
|
+
export type FundingSource = "byok" | "credits" | "free_tier" | "trial";
|
|
4
|
+
export type CreditTransactionType = "purchase" | "debate_usage" | "refund";
|
|
5
|
+
export interface User {
|
|
6
|
+
id: string;
|
|
7
|
+
email: string;
|
|
8
|
+
name: string | null;
|
|
9
|
+
avatarUrl: string | null;
|
|
10
|
+
plan: UserPlan;
|
|
11
|
+
stripeCustomerId: string | null;
|
|
12
|
+
stripeSubscriptionId: string | null;
|
|
13
|
+
creditBalance: number;
|
|
14
|
+
freeDebatesUsed: number;
|
|
15
|
+
bio: string | null;
|
|
16
|
+
location: string | null;
|
|
17
|
+
isPublicProfile: boolean;
|
|
18
|
+
isFoundingMember: boolean;
|
|
19
|
+
foundingOfferExpiresAt: string | null;
|
|
20
|
+
gracePeriodEndsAt: string | null;
|
|
21
|
+
trialEndsAt: string | null;
|
|
22
|
+
featuresSeenAt: string | null;
|
|
23
|
+
preferredSignIn: "magic_link" | "passkey" | "password";
|
|
24
|
+
magicLinkEnabled: boolean;
|
|
25
|
+
createdAt: Date;
|
|
26
|
+
updatedAt: Date;
|
|
27
|
+
}
|
|
28
|
+
export interface UsageStats {
|
|
29
|
+
debatesThisMonth: number;
|
|
30
|
+
debatesLimit: number | null;
|
|
31
|
+
creditsUsed: number;
|
|
32
|
+
creditsRemaining: number;
|
|
33
|
+
totalDebatesAllTime: number;
|
|
34
|
+
avgCostPerDebate: number;
|
|
35
|
+
topProviders: Array<{
|
|
36
|
+
provider: string;
|
|
37
|
+
count: number;
|
|
38
|
+
}>;
|
|
39
|
+
}
|
|
40
|
+
export interface CreditBalance {
|
|
41
|
+
balance: number;
|
|
42
|
+
lastPurchaseAt: Date | null;
|
|
43
|
+
lifetimePurchased: number;
|
|
44
|
+
lifetimeUsed: number;
|
|
45
|
+
}
|
|
46
|
+
export interface ApiKey {
|
|
47
|
+
id: string;
|
|
48
|
+
userId: string;
|
|
49
|
+
name: string;
|
|
50
|
+
keyPrefix: string;
|
|
51
|
+
config: import("./api-key").ApiKeyConfig;
|
|
52
|
+
lastUsedAt: Date | null;
|
|
53
|
+
createdAt: Date;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=user.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../src/user.ts"],"names":[],"mappings":"AAGA,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,OAAO,CAAC;AAEvE,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,cAAc,GAAG,QAAQ,CAAC;AAE3E,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,IAAI,EAAE,QAAQ,CAAC;IACf,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,oBAAoB,EAAE,MA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AO,WAAW,EAAE,YAAY,CAAC;IACzC,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,IAAI,CAAC;CACjB"}
|
package/dist/user.js
ADDED
package/dist/user.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../src/user.ts"],"names":[],"mappings":"AAAA,uCAAuC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { AgentSummary } from "./agent";
|
|
2
|
+
import type { Argument } from "./argument";
|
|
3
|
+
import type { Evidence } from "./evidence";
|
|
4
|
+
import type { ModelUsage } from "./cost";
|
|
5
|
+
export type VerdictRecommendation = "RECOMMENDED" | "NOT_RECOMMENDED" | "PROCEED_WITH_CAUTION" | "CONDITIONAL" | "SPLIT_DECISION" | "PROCEED" | "RECONSIDER" | "MORE_INFO_NEEDED";
|
|
6
|
+
export interface DecisionMatrixEntry {
|
|
7
|
+
criterion: string;
|
|
8
|
+
weight: number;
|
|
9
|
+
scores: Record<string, number>;
|
|
10
|
+
reasoning: string;
|
|
11
|
+
}
|
|
12
|
+
export interface DecisionMatrix {
|
|
13
|
+
entries: DecisionMatrixEntry[];
|
|
14
|
+
options: string[];
|
|
15
|
+
totalScores: Record<string, number>;
|
|
16
|
+
}
|
|
17
|
+
export interface DissentingView {
|
|
18
|
+
agentId: string;
|
|
19
|
+
agentName: string;
|
|
20
|
+
view: string;
|
|
21
|
+
reasoning: string;
|
|
22
|
+
}
|
|
23
|
+
export interface VerdictNarrative {
|
|
24
|
+
summary: string;
|
|
25
|
+
journey: string;
|
|
26
|
+
comparison: string;
|
|
27
|
+
evidenceAssessment: string;
|
|
28
|
+
finalWord: string;
|
|
29
|
+
fullNarrative?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface Verdict {
|
|
32
|
+
recommendation: VerdictRecommendation;
|
|
33
|
+
confidence: number;
|
|
34
|
+
oneLiner: string;
|
|
35
|
+
argumentsFor: Argument[];
|
|
36
|
+
argumentsAgainst: Argument[];
|
|
37
|
+
keyEvidence: Evidence[];
|
|
38
|
+
dissentingViews: DissentingView[];
|
|
39
|
+
blindSpots: string[];
|
|
40
|
+
assumptions: string[];
|
|
41
|
+
decisionMatrix: DecisionMatrix;
|
|
42
|
+
nextSteps: string[];
|
|
43
|
+
revisitTriggers: string[];
|
|
44
|
+
totalRounds: number;
|
|
45
|
+
agentsUsed: AgentSummary[];
|
|
46
|
+
modelsUsed: ModelUsage[];
|
|
47
|
+
totalCost: number;
|
|
48
|
+
debateDurationSeconds: number;
|
|
49
|
+
narrative?: VerdictNarrative;
|
|
50
|
+
missingInfo?: string[];
|
|
51
|
+
}
|
|
52
|
+
//# sourceMappingURL=verdict.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"verdict.d.ts","sourceRoot":"","sources":["../src/verdict.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAC5C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,MAAM,qBAAqB,GAE7B,aAAa,GACb,iBAAiB,GACjB,sBAAsB,GACtB,aAAa,GACb,gBAAgB,GAEhB,SAAS,GACT,YAAY,GACZ,kBAAkB,CAAC;AAEvB,MAAM,WAAW,mBAAmB;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,mBAAmB,EAAE,CAAC;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,WAAW,EAAE,MAAM,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"AAAA,kCAAkC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@askverdict/types",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Shared TypeScript types for AskVerdict AI debate engine",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.js",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.js",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": ["dist", "README.md", "LICENSE"],
|
|
16
|
+
"keywords": [
|
|
17
|
+
"askverdict",
|
|
18
|
+
"ai",
|
|
19
|
+
"debate",
|
|
20
|
+
"verdict",
|
|
21
|
+
"decision-making",
|
|
22
|
+
"multi-agent",
|
|
23
|
+
"types",
|
|
24
|
+
"typescript"
|
|
25
|
+
],
|
|
26
|
+
"homepage": "https://askverdict.ai",
|
|
27
|
+
"repository": {
|
|
28
|
+
"type": "git",
|
|
29
|
+
"url": "https://github.com/askverdict/askverdict",
|
|
30
|
+
"directory": "packages/types"
|
|
31
|
+
},
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"author": "AskVerdict <hello@askverdict.ai>",
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=18"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc",
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"clean": "rm -rf dist tsconfig.tsbuildinfo",
|
|
41
|
+
"prepublishOnly": "pnpm run clean && pnpm run build"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"typescript": "^5.7.3"
|
|
45
|
+
}
|
|
46
|
+
}
|