@task-mcp/shared 1.0.20 → 1.0.21
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/package.json +1 -6
- package/dist/algorithms/critical-path.d.ts +0 -46
- package/dist/algorithms/critical-path.d.ts.map +0 -1
- package/dist/algorithms/critical-path.js +0 -320
- package/dist/algorithms/critical-path.js.map +0 -1
- package/dist/algorithms/critical-path.test.d.ts +0 -2
- package/dist/algorithms/critical-path.test.d.ts.map +0 -1
- package/dist/algorithms/critical-path.test.js +0 -194
- package/dist/algorithms/critical-path.test.js.map +0 -1
- package/dist/algorithms/dependency-integrity.d.ts +0 -81
- package/dist/algorithms/dependency-integrity.d.ts.map +0 -1
- package/dist/algorithms/dependency-integrity.js +0 -207
- package/dist/algorithms/dependency-integrity.js.map +0 -1
- package/dist/algorithms/dependency-integrity.test.d.ts +0 -2
- package/dist/algorithms/dependency-integrity.test.d.ts.map +0 -1
- package/dist/algorithms/dependency-integrity.test.js +0 -309
- package/dist/algorithms/dependency-integrity.test.js.map +0 -1
- package/dist/algorithms/index.d.ts +0 -5
- package/dist/algorithms/index.d.ts.map +0 -1
- package/dist/algorithms/index.js +0 -5
- package/dist/algorithms/index.js.map +0 -1
- package/dist/algorithms/tech-analysis.d.ts +0 -106
- package/dist/algorithms/tech-analysis.d.ts.map +0 -1
- package/dist/algorithms/tech-analysis.js +0 -344
- package/dist/algorithms/tech-analysis.js.map +0 -1
- package/dist/algorithms/tech-analysis.test.d.ts +0 -2
- package/dist/algorithms/tech-analysis.test.d.ts.map +0 -1
- package/dist/algorithms/tech-analysis.test.js +0 -338
- package/dist/algorithms/tech-analysis.test.js.map +0 -1
- package/dist/algorithms/topological-sort.d.ts +0 -41
- package/dist/algorithms/topological-sort.d.ts.map +0 -1
- package/dist/algorithms/topological-sort.js +0 -165
- package/dist/algorithms/topological-sort.js.map +0 -1
- package/dist/algorithms/topological-sort.test.d.ts +0 -2
- package/dist/algorithms/topological-sort.test.d.ts.map +0 -1
- package/dist/algorithms/topological-sort.test.js +0 -162
- package/dist/algorithms/topological-sort.test.js.map +0 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -7
- package/dist/index.js.map +0 -1
- package/dist/schemas/inbox.d.ts +0 -55
- package/dist/schemas/inbox.d.ts.map +0 -1
- package/dist/schemas/inbox.js +0 -25
- package/dist/schemas/inbox.js.map +0 -1
- package/dist/schemas/index.d.ts +0 -7
- package/dist/schemas/index.d.ts.map +0 -1
- package/dist/schemas/index.js +0 -17
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/project.d.ts +0 -177
- package/dist/schemas/project.d.ts.map +0 -1
- package/dist/schemas/project.js +0 -56
- package/dist/schemas/project.js.map +0 -1
- package/dist/schemas/response-format.d.ts +0 -148
- package/dist/schemas/response-format.d.ts.map +0 -1
- package/dist/schemas/response-format.js +0 -18
- package/dist/schemas/response-format.js.map +0 -1
- package/dist/schemas/response-schema.d.ts +0 -307
- package/dist/schemas/response-schema.d.ts.map +0 -1
- package/dist/schemas/response-schema.js +0 -75
- package/dist/schemas/response-schema.js.map +0 -1
- package/dist/schemas/response-schema.test.d.ts +0 -2
- package/dist/schemas/response-schema.test.d.ts.map +0 -1
- package/dist/schemas/response-schema.test.js +0 -256
- package/dist/schemas/response-schema.test.js.map +0 -1
- package/dist/schemas/state.d.ts +0 -17
- package/dist/schemas/state.d.ts.map +0 -1
- package/dist/schemas/state.js +0 -17
- package/dist/schemas/state.js.map +0 -1
- package/dist/schemas/task.d.ts +0 -881
- package/dist/schemas/task.d.ts.map +0 -1
- package/dist/schemas/task.js +0 -189
- package/dist/schemas/task.js.map +0 -1
- package/dist/schemas/view.d.ts +0 -143
- package/dist/schemas/view.d.ts.map +0 -1
- package/dist/schemas/view.js +0 -48
- package/dist/schemas/view.js.map +0 -1
- package/dist/utils/dashboard-renderer.d.ts +0 -93
- package/dist/utils/dashboard-renderer.d.ts.map +0 -1
- package/dist/utils/dashboard-renderer.js +0 -424
- package/dist/utils/dashboard-renderer.js.map +0 -1
- package/dist/utils/dashboard-renderer.test.d.ts +0 -2
- package/dist/utils/dashboard-renderer.test.d.ts.map +0 -1
- package/dist/utils/dashboard-renderer.test.js +0 -774
- package/dist/utils/dashboard-renderer.test.js.map +0 -1
- package/dist/utils/date.d.ts +0 -94
- package/dist/utils/date.d.ts.map +0 -1
- package/dist/utils/date.js +0 -323
- package/dist/utils/date.js.map +0 -1
- package/dist/utils/date.test.d.ts +0 -2
- package/dist/utils/date.test.d.ts.map +0 -1
- package/dist/utils/date.test.js +0 -276
- package/dist/utils/date.test.js.map +0 -1
- package/dist/utils/hierarchy.d.ts +0 -102
- package/dist/utils/hierarchy.d.ts.map +0 -1
- package/dist/utils/hierarchy.js +0 -236
- package/dist/utils/hierarchy.js.map +0 -1
- package/dist/utils/hierarchy.test.d.ts +0 -2
- package/dist/utils/hierarchy.test.d.ts.map +0 -1
- package/dist/utils/hierarchy.test.js +0 -436
- package/dist/utils/hierarchy.test.js.map +0 -1
- package/dist/utils/id.d.ts +0 -60
- package/dist/utils/id.d.ts.map +0 -1
- package/dist/utils/id.js +0 -118
- package/dist/utils/id.js.map +0 -1
- package/dist/utils/id.test.d.ts +0 -2
- package/dist/utils/id.test.d.ts.map +0 -1
- package/dist/utils/id.test.js +0 -193
- package/dist/utils/id.test.js.map +0 -1
- package/dist/utils/index.d.ts +0 -12
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -34
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/natural-language.d.ts +0 -57
- package/dist/utils/natural-language.d.ts.map +0 -1
- package/dist/utils/natural-language.js +0 -211
- package/dist/utils/natural-language.js.map +0 -1
- package/dist/utils/natural-language.test.d.ts +0 -2
- package/dist/utils/natural-language.test.d.ts.map +0 -1
- package/dist/utils/natural-language.test.js +0 -197
- package/dist/utils/natural-language.test.js.map +0 -1
- package/dist/utils/priority-queue.d.ts +0 -17
- package/dist/utils/priority-queue.d.ts.map +0 -1
- package/dist/utils/priority-queue.js +0 -62
- package/dist/utils/priority-queue.js.map +0 -1
- package/dist/utils/priority-queue.test.d.ts +0 -2
- package/dist/utils/priority-queue.test.d.ts.map +0 -1
- package/dist/utils/priority-queue.test.js +0 -82
- package/dist/utils/priority-queue.test.js.map +0 -1
- package/dist/utils/projection.d.ts +0 -65
- package/dist/utils/projection.d.ts.map +0 -1
- package/dist/utils/projection.js +0 -180
- package/dist/utils/projection.js.map +0 -1
- package/dist/utils/projection.test.d.ts +0 -2
- package/dist/utils/projection.test.d.ts.map +0 -1
- package/dist/utils/projection.test.js +0 -336
- package/dist/utils/projection.test.js.map +0 -1
- package/dist/utils/terminal-ui.d.ts +0 -208
- package/dist/utils/terminal-ui.d.ts.map +0 -1
- package/dist/utils/terminal-ui.js +0 -611
- package/dist/utils/terminal-ui.js.map +0 -1
- package/dist/utils/terminal-ui.test.d.ts +0 -2
- package/dist/utils/terminal-ui.test.d.ts.map +0 -1
- package/dist/utils/terminal-ui.test.js +0 -683
- package/dist/utils/terminal-ui.test.js.map +0 -1
- package/dist/utils/workspace.d.ts +0 -100
- package/dist/utils/workspace.d.ts.map +0 -1
- package/dist/utils/workspace.js +0 -173
- package/dist/utils/workspace.js.map +0 -1
- package/dist/utils/workspace.test.d.ts +0 -2
- package/dist/utils/workspace.test.d.ts.map +0 -1
- package/dist/utils/workspace.test.js +0 -97
- package/dist/utils/workspace.test.js.map +0 -1
- package/src/algorithms/critical-path.test.ts +0 -241
- package/src/algorithms/dependency-integrity.test.ts +0 -348
- package/src/algorithms/tech-analysis.test.ts +0 -413
- package/src/algorithms/topological-sort.test.ts +0 -190
- package/src/schemas/response-schema.test.ts +0 -314
- package/src/utils/dashboard-renderer.test.ts +0 -983
- package/src/utils/date.test.ts +0 -329
- package/src/utils/hierarchy.test.ts +0 -505
- package/src/utils/id.test.ts +0 -235
- package/src/utils/natural-language.test.ts +0 -242
- package/src/utils/priority-queue.test.ts +0 -103
- package/src/utils/projection.test.ts +0 -425
- package/src/utils/terminal-ui.test.ts +0 -831
- package/src/utils/workspace.test.ts +0 -125
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Response Format Schema
|
|
4
|
-
*
|
|
5
|
-
* Token-efficient response formats for MCP tools.
|
|
6
|
-
* Based on Anthropic's recommended patterns for reducing token usage.
|
|
7
|
-
*
|
|
8
|
-
* - concise: Minimal fields (4-6), JSON format for machine processing
|
|
9
|
-
* - standard: Common fields (7-10), balanced for most use cases
|
|
10
|
-
* - detailed: Full object, human-readable format
|
|
11
|
-
*/
|
|
12
|
-
export declare const ResponseFormat: z.ZodEnum<["concise", "standard", "detailed"]>;
|
|
13
|
-
export type ResponseFormat = z.infer<typeof ResponseFormat>;
|
|
14
|
-
export declare const DEFAULT_LIMIT = 20;
|
|
15
|
-
export declare const MAX_LIMIT = 100;
|
|
16
|
-
/**
|
|
17
|
-
* Paginated response wrapper
|
|
18
|
-
*/
|
|
19
|
-
export interface PaginatedResponse<T> {
|
|
20
|
-
items: T[];
|
|
21
|
-
total: number;
|
|
22
|
-
limit: number;
|
|
23
|
-
offset: number;
|
|
24
|
-
hasMore: boolean;
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Task projection types - progressively more detailed
|
|
28
|
-
*/
|
|
29
|
-
export interface TaskSummary {
|
|
30
|
-
id: string;
|
|
31
|
-
title: string;
|
|
32
|
-
status: string;
|
|
33
|
-
priority: string;
|
|
34
|
-
}
|
|
35
|
-
export interface TaskPreview extends TaskSummary {
|
|
36
|
-
dueDate?: string;
|
|
37
|
-
tags?: string[];
|
|
38
|
-
contexts?: string[];
|
|
39
|
-
parentId?: string;
|
|
40
|
-
}
|
|
41
|
-
/**
|
|
42
|
-
* Workspace projection types
|
|
43
|
-
*/
|
|
44
|
-
export interface WorkspaceSummary {
|
|
45
|
-
name: string;
|
|
46
|
-
taskCount: number;
|
|
47
|
-
completionPercentage: number;
|
|
48
|
-
}
|
|
49
|
-
export interface WorkspacePreview extends WorkspaceSummary {
|
|
50
|
-
pendingTasks: number;
|
|
51
|
-
blockedTasks: number;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Inbox projection types
|
|
55
|
-
*/
|
|
56
|
-
export interface InboxSummary {
|
|
57
|
-
id: string;
|
|
58
|
-
content: string;
|
|
59
|
-
status: string;
|
|
60
|
-
}
|
|
61
|
-
export interface InboxPreview extends InboxSummary {
|
|
62
|
-
capturedAt: string;
|
|
63
|
-
tags?: string[];
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Analysis result types - optimized for token efficiency
|
|
67
|
-
*/
|
|
68
|
-
export interface CriticalPathSummary {
|
|
69
|
-
totalDuration: number;
|
|
70
|
-
taskCount: number;
|
|
71
|
-
taskIds: string[];
|
|
72
|
-
}
|
|
73
|
-
export interface BottleneckSummary {
|
|
74
|
-
taskId: string;
|
|
75
|
-
title: string;
|
|
76
|
-
blockedCount: number;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Dashboard response types - project_dashboard tool
|
|
80
|
-
*
|
|
81
|
-
* Provides unified project overview with progress, priority breakdown,
|
|
82
|
-
* dependency metrics, and next task recommendation.
|
|
83
|
-
*/
|
|
84
|
-
export interface DashboardProgress {
|
|
85
|
-
completed: number;
|
|
86
|
-
total: number;
|
|
87
|
-
pct: number;
|
|
88
|
-
}
|
|
89
|
-
export interface DashboardPriorityBreakdown {
|
|
90
|
-
critical: number;
|
|
91
|
-
high: number;
|
|
92
|
-
medium: number;
|
|
93
|
-
low: number;
|
|
94
|
-
}
|
|
95
|
-
export interface DashboardDependencyMetrics {
|
|
96
|
-
ready: number;
|
|
97
|
-
blocked: number;
|
|
98
|
-
noDeps: number;
|
|
99
|
-
}
|
|
100
|
-
export interface DashboardNextTask {
|
|
101
|
-
id: string;
|
|
102
|
-
title: string;
|
|
103
|
-
priority: string;
|
|
104
|
-
reason: string;
|
|
105
|
-
}
|
|
106
|
-
export interface DashboardCriticalPath {
|
|
107
|
-
length: number;
|
|
108
|
-
taskCount: number;
|
|
109
|
-
}
|
|
110
|
-
export interface DashboardStatusBreakdown {
|
|
111
|
-
done: number;
|
|
112
|
-
inProgress: number;
|
|
113
|
-
pending: number;
|
|
114
|
-
blocked: number;
|
|
115
|
-
deferred: number;
|
|
116
|
-
cancelled: number;
|
|
117
|
-
}
|
|
118
|
-
export interface DashboardSubtaskProgress {
|
|
119
|
-
completed: number;
|
|
120
|
-
total: number;
|
|
121
|
-
pct: number;
|
|
122
|
-
inProgress: number;
|
|
123
|
-
pending: number;
|
|
124
|
-
blocked: number;
|
|
125
|
-
}
|
|
126
|
-
export interface DashboardDependencyStats {
|
|
127
|
-
mostDependedOn?: {
|
|
128
|
-
taskId: string;
|
|
129
|
-
title: string;
|
|
130
|
-
dependentCount: number;
|
|
131
|
-
};
|
|
132
|
-
avgDepsPerTask: number;
|
|
133
|
-
}
|
|
134
|
-
export interface DashboardConcise {
|
|
135
|
-
workspace: string;
|
|
136
|
-
progress: DashboardProgress;
|
|
137
|
-
statusBreakdown: DashboardStatusBreakdown;
|
|
138
|
-
subtaskProgress?: DashboardSubtaskProgress;
|
|
139
|
-
priority: DashboardPriorityBreakdown;
|
|
140
|
-
dependency: DashboardDependencyMetrics;
|
|
141
|
-
dependencyStats: DashboardDependencyStats;
|
|
142
|
-
nextTask?: DashboardNextTask;
|
|
143
|
-
}
|
|
144
|
-
export interface DashboardStandard extends DashboardConcise {
|
|
145
|
-
criticalPath?: DashboardCriticalPath;
|
|
146
|
-
tasks: TaskSummary[];
|
|
147
|
-
}
|
|
148
|
-
//# sourceMappingURL=response-format.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response-format.d.ts","sourceRoot":"","sources":["../../src/schemas/response-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AAGH,eAAO,M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GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAGD,MAAM,WAAW,wBAAwB;IACvC,cAAc,CAAC,EAAE;QACf,MAAM,EAAE,MAAM,CAAC;QACf,KAAK,EAAE,MAAM,CAAC;QACd,cAAc,EAAE,MAAM,CAAC;KACxB,CAAC;IACF,cAAc,EAAE,MAAM,CAAC;CACxB;AAGD,MAAM,WAAW,gBAAgB;IAC/B,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,eAAe,EAAE,wBAAwB,CAAC;IAC1C,eAAe,CAAC,EAAE,wBAAwB,CAAC;IAC3C,QAAQ,EAAE,0BAA0B,CAAC;IACrC,UAAU,EAAE,0BAA0B,CAAC;IACvC,eAAe,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAGD,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Response Format Schema
|
|
4
|
-
*
|
|
5
|
-
* Token-efficient response formats for MCP tools.
|
|
6
|
-
* Based on Anthropic's recommended patterns for reducing token usage.
|
|
7
|
-
*
|
|
8
|
-
* - concise: Minimal fields (4-6), JSON format for machine processing
|
|
9
|
-
* - standard: Common fields (7-10), balanced for most use cases
|
|
10
|
-
* - detailed: Full object, human-readable format
|
|
11
|
-
*/
|
|
12
|
-
// Response format options
|
|
13
|
-
export const ResponseFormat = z.enum(["concise", "standard", "detailed"]);
|
|
14
|
-
// Default limits for pagination
|
|
15
|
-
export const DEFAULT_LIMIT = 20;
|
|
16
|
-
export const MAX_LIMIT = 100;
|
|
17
|
-
// Detailed format - human-readable markdown (use string output)
|
|
18
|
-
//# sourceMappingURL=response-format.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response-format.js","sourceRoot":"","sources":["../../src/schemas/response-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AAEH,0BAA0B;AAC1B,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AAG1E,gCAAgC;AAChC,MAAM,CAAC,MAAM,aAAa,GAAG,EAAE,CAAC;AAChC,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAC;AAmL7B,gEAAgE"}
|
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Response Schema
|
|
4
|
-
*
|
|
5
|
-
* Standardized formats for AI agents to ask questions, make suggestions,
|
|
6
|
-
* or request confirmation from users.
|
|
7
|
-
*/
|
|
8
|
-
export declare const ResponseType: z.ZodEnum<["question", "suggestion", "confirmation"]>;
|
|
9
|
-
export type ResponseType = z.infer<typeof ResponseType>;
|
|
10
|
-
export declare const ResponsePriority: z.ZodEnum<["low", "medium", "high", "critical"]>;
|
|
11
|
-
export type ResponsePriority = z.infer<typeof ResponsePriority>;
|
|
12
|
-
export declare const ResponseOption: z.ZodObject<{
|
|
13
|
-
label: z.ZodString;
|
|
14
|
-
value: z.ZodString;
|
|
15
|
-
description: z.ZodOptional<z.ZodString>;
|
|
16
|
-
}, "strip", z.ZodTypeAny, {
|
|
17
|
-
value: string;
|
|
18
|
-
label: string;
|
|
19
|
-
description?: string | undefined;
|
|
20
|
-
}, {
|
|
21
|
-
value: string;
|
|
22
|
-
label: string;
|
|
23
|
-
description?: string | undefined;
|
|
24
|
-
}>;
|
|
25
|
-
export type ResponseOption = z.infer<typeof ResponseOption>;
|
|
26
|
-
export declare const QuestionResponse: z.ZodObject<{
|
|
27
|
-
message: z.ZodString;
|
|
28
|
-
context: z.ZodOptional<z.ZodString>;
|
|
29
|
-
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
30
|
-
} & {
|
|
31
|
-
type: z.ZodLiteral<"question">;
|
|
32
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
33
|
-
label: z.ZodString;
|
|
34
|
-
value: z.ZodString;
|
|
35
|
-
description: z.ZodOptional<z.ZodString>;
|
|
36
|
-
}, "strip", z.ZodTypeAny, {
|
|
37
|
-
value: string;
|
|
38
|
-
label: string;
|
|
39
|
-
description?: string | undefined;
|
|
40
|
-
}, {
|
|
41
|
-
value: string;
|
|
42
|
-
label: string;
|
|
43
|
-
description?: string | undefined;
|
|
44
|
-
}>, "many">>;
|
|
45
|
-
defaultOption: z.ZodOptional<z.ZodString>;
|
|
46
|
-
}, "strip", z.ZodTypeAny, {
|
|
47
|
-
type: "question";
|
|
48
|
-
message: string;
|
|
49
|
-
options?: {
|
|
50
|
-
value: string;
|
|
51
|
-
label: string;
|
|
52
|
-
description?: string | undefined;
|
|
53
|
-
}[] | undefined;
|
|
54
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
55
|
-
context?: string | undefined;
|
|
56
|
-
defaultOption?: string | undefined;
|
|
57
|
-
}, {
|
|
58
|
-
type: "question";
|
|
59
|
-
message: string;
|
|
60
|
-
options?: {
|
|
61
|
-
value: string;
|
|
62
|
-
label: string;
|
|
63
|
-
description?: string | undefined;
|
|
64
|
-
}[] | undefined;
|
|
65
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
66
|
-
context?: string | undefined;
|
|
67
|
-
defaultOption?: string | undefined;
|
|
68
|
-
}>;
|
|
69
|
-
export type QuestionResponse = z.infer<typeof QuestionResponse>;
|
|
70
|
-
export declare const SuggestionResponse: z.ZodObject<{
|
|
71
|
-
message: z.ZodString;
|
|
72
|
-
context: z.ZodOptional<z.ZodString>;
|
|
73
|
-
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
74
|
-
} & {
|
|
75
|
-
type: z.ZodLiteral<"suggestion">;
|
|
76
|
-
options: z.ZodArray<z.ZodObject<{
|
|
77
|
-
label: z.ZodString;
|
|
78
|
-
value: z.ZodString;
|
|
79
|
-
description: z.ZodOptional<z.ZodString>;
|
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
value: string;
|
|
82
|
-
label: string;
|
|
83
|
-
description?: string | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
value: string;
|
|
86
|
-
label: string;
|
|
87
|
-
description?: string | undefined;
|
|
88
|
-
}>, "many">;
|
|
89
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
90
|
-
}, "strip", z.ZodTypeAny, {
|
|
91
|
-
type: "suggestion";
|
|
92
|
-
message: string;
|
|
93
|
-
options: {
|
|
94
|
-
value: string;
|
|
95
|
-
label: string;
|
|
96
|
-
description?: string | undefined;
|
|
97
|
-
}[];
|
|
98
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
99
|
-
context?: string | undefined;
|
|
100
|
-
reasoning?: string | undefined;
|
|
101
|
-
}, {
|
|
102
|
-
type: "suggestion";
|
|
103
|
-
message: string;
|
|
104
|
-
options: {
|
|
105
|
-
value: string;
|
|
106
|
-
label: string;
|
|
107
|
-
description?: string | undefined;
|
|
108
|
-
}[];
|
|
109
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
110
|
-
context?: string | undefined;
|
|
111
|
-
reasoning?: string | undefined;
|
|
112
|
-
}>;
|
|
113
|
-
export type SuggestionResponse = z.infer<typeof SuggestionResponse>;
|
|
114
|
-
export declare const ConfirmationResponse: z.ZodObject<{
|
|
115
|
-
message: z.ZodString;
|
|
116
|
-
context: z.ZodOptional<z.ZodString>;
|
|
117
|
-
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
118
|
-
} & {
|
|
119
|
-
type: z.ZodLiteral<"confirmation">;
|
|
120
|
-
action: z.ZodString;
|
|
121
|
-
consequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
122
|
-
defaultConfirm: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
-
}, "strip", z.ZodTypeAny, {
|
|
124
|
-
type: "confirmation";
|
|
125
|
-
message: string;
|
|
126
|
-
action: string;
|
|
127
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
128
|
-
context?: string | undefined;
|
|
129
|
-
consequences?: string[] | undefined;
|
|
130
|
-
defaultConfirm?: boolean | undefined;
|
|
131
|
-
}, {
|
|
132
|
-
type: "confirmation";
|
|
133
|
-
message: string;
|
|
134
|
-
action: string;
|
|
135
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
136
|
-
context?: string | undefined;
|
|
137
|
-
consequences?: string[] | undefined;
|
|
138
|
-
defaultConfirm?: boolean | undefined;
|
|
139
|
-
}>;
|
|
140
|
-
export type ConfirmationResponse = z.infer<typeof ConfirmationResponse>;
|
|
141
|
-
export declare const AgentResponse: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
142
|
-
message: z.ZodString;
|
|
143
|
-
context: z.ZodOptional<z.ZodString>;
|
|
144
|
-
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
145
|
-
} & {
|
|
146
|
-
type: z.ZodLiteral<"question">;
|
|
147
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
148
|
-
label: z.ZodString;
|
|
149
|
-
value: z.ZodString;
|
|
150
|
-
description: z.ZodOptional<z.ZodString>;
|
|
151
|
-
}, "strip", z.ZodTypeAny, {
|
|
152
|
-
value: string;
|
|
153
|
-
label: string;
|
|
154
|
-
description?: string | undefined;
|
|
155
|
-
}, {
|
|
156
|
-
value: string;
|
|
157
|
-
label: string;
|
|
158
|
-
description?: string | undefined;
|
|
159
|
-
}>, "many">>;
|
|
160
|
-
defaultOption: z.ZodOptional<z.ZodString>;
|
|
161
|
-
}, "strip", z.ZodTypeAny, {
|
|
162
|
-
type: "question";
|
|
163
|
-
message: string;
|
|
164
|
-
options?: {
|
|
165
|
-
value: string;
|
|
166
|
-
label: string;
|
|
167
|
-
description?: string | undefined;
|
|
168
|
-
}[] | undefined;
|
|
169
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
170
|
-
context?: string | undefined;
|
|
171
|
-
defaultOption?: string | undefined;
|
|
172
|
-
}, {
|
|
173
|
-
type: "question";
|
|
174
|
-
message: string;
|
|
175
|
-
options?: {
|
|
176
|
-
value: string;
|
|
177
|
-
label: string;
|
|
178
|
-
description?: string | undefined;
|
|
179
|
-
}[] | undefined;
|
|
180
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
181
|
-
context?: string | undefined;
|
|
182
|
-
defaultOption?: string | undefined;
|
|
183
|
-
}>, z.ZodObject<{
|
|
184
|
-
message: z.ZodString;
|
|
185
|
-
context: z.ZodOptional<z.ZodString>;
|
|
186
|
-
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
187
|
-
} & {
|
|
188
|
-
type: z.ZodLiteral<"suggestion">;
|
|
189
|
-
options: z.ZodArray<z.ZodObject<{
|
|
190
|
-
label: z.ZodString;
|
|
191
|
-
value: z.ZodString;
|
|
192
|
-
description: z.ZodOptional<z.ZodString>;
|
|
193
|
-
}, "strip", z.ZodTypeAny, {
|
|
194
|
-
value: string;
|
|
195
|
-
label: string;
|
|
196
|
-
description?: string | undefined;
|
|
197
|
-
}, {
|
|
198
|
-
value: string;
|
|
199
|
-
label: string;
|
|
200
|
-
description?: string | undefined;
|
|
201
|
-
}>, "many">;
|
|
202
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
203
|
-
}, "strip", z.ZodTypeAny, {
|
|
204
|
-
type: "suggestion";
|
|
205
|
-
message: string;
|
|
206
|
-
options: {
|
|
207
|
-
value: string;
|
|
208
|
-
label: string;
|
|
209
|
-
description?: string | undefined;
|
|
210
|
-
}[];
|
|
211
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
212
|
-
context?: string | undefined;
|
|
213
|
-
reasoning?: string | undefined;
|
|
214
|
-
}, {
|
|
215
|
-
type: "suggestion";
|
|
216
|
-
message: string;
|
|
217
|
-
options: {
|
|
218
|
-
value: string;
|
|
219
|
-
label: string;
|
|
220
|
-
description?: string | undefined;
|
|
221
|
-
}[];
|
|
222
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
223
|
-
context?: string | undefined;
|
|
224
|
-
reasoning?: string | undefined;
|
|
225
|
-
}>, z.ZodObject<{
|
|
226
|
-
message: z.ZodString;
|
|
227
|
-
context: z.ZodOptional<z.ZodString>;
|
|
228
|
-
priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
|
|
229
|
-
} & {
|
|
230
|
-
type: z.ZodLiteral<"confirmation">;
|
|
231
|
-
action: z.ZodString;
|
|
232
|
-
consequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
233
|
-
defaultConfirm: z.ZodOptional<z.ZodBoolean>;
|
|
234
|
-
}, "strip", z.ZodTypeAny, {
|
|
235
|
-
type: "confirmation";
|
|
236
|
-
message: string;
|
|
237
|
-
action: string;
|
|
238
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
239
|
-
context?: string | undefined;
|
|
240
|
-
consequences?: string[] | undefined;
|
|
241
|
-
defaultConfirm?: boolean | undefined;
|
|
242
|
-
}, {
|
|
243
|
-
type: "confirmation";
|
|
244
|
-
message: string;
|
|
245
|
-
action: string;
|
|
246
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
247
|
-
context?: string | undefined;
|
|
248
|
-
consequences?: string[] | undefined;
|
|
249
|
-
defaultConfirm?: boolean | undefined;
|
|
250
|
-
}>]>;
|
|
251
|
-
export type AgentResponse = z.infer<typeof AgentResponse>;
|
|
252
|
-
export declare const GenerateResponseInput: z.ZodObject<{
|
|
253
|
-
type: z.ZodEnum<["question", "suggestion", "confirmation"]>;
|
|
254
|
-
message: z.ZodString;
|
|
255
|
-
options: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
256
|
-
label: z.ZodString;
|
|
257
|
-
value: z.ZodString;
|
|
258
|
-
description: z.ZodOptional<z.ZodString>;
|
|
259
|
-
}, "strip", z.ZodTypeAny, {
|
|
260
|
-
value: string;
|
|
261
|
-
label: string;
|
|
262
|
-
description?: string | undefined;
|
|
263
|
-
}, {
|
|
264
|
-
value: string;
|
|
265
|
-
label: string;
|
|
266
|
-
description?: string | undefined;
|
|
267
|
-
}>, "many">>;
|
|
268
|
-
context: z.ZodOptional<z.ZodString>;
|
|
269
|
-
priority: z.ZodDefault<z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>>;
|
|
270
|
-
action: z.ZodOptional<z.ZodString>;
|
|
271
|
-
consequences: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
272
|
-
reasoning: z.ZodOptional<z.ZodString>;
|
|
273
|
-
defaultOption: z.ZodOptional<z.ZodString>;
|
|
274
|
-
defaultConfirm: z.ZodOptional<z.ZodBoolean>;
|
|
275
|
-
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
type: "question" | "suggestion" | "confirmation";
|
|
277
|
-
message: string;
|
|
278
|
-
priority: "critical" | "high" | "medium" | "low";
|
|
279
|
-
options?: {
|
|
280
|
-
value: string;
|
|
281
|
-
label: string;
|
|
282
|
-
description?: string | undefined;
|
|
283
|
-
}[] | undefined;
|
|
284
|
-
context?: string | undefined;
|
|
285
|
-
defaultOption?: string | undefined;
|
|
286
|
-
reasoning?: string | undefined;
|
|
287
|
-
action?: string | undefined;
|
|
288
|
-
consequences?: string[] | undefined;
|
|
289
|
-
defaultConfirm?: boolean | undefined;
|
|
290
|
-
}, {
|
|
291
|
-
type: "question" | "suggestion" | "confirmation";
|
|
292
|
-
message: string;
|
|
293
|
-
options?: {
|
|
294
|
-
value: string;
|
|
295
|
-
label: string;
|
|
296
|
-
description?: string | undefined;
|
|
297
|
-
}[] | undefined;
|
|
298
|
-
priority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
299
|
-
context?: string | undefined;
|
|
300
|
-
defaultOption?: string | undefined;
|
|
301
|
-
reasoning?: string | undefined;
|
|
302
|
-
action?: string | undefined;
|
|
303
|
-
consequences?: string[] | undefined;
|
|
304
|
-
defaultConfirm?: boolean | undefined;
|
|
305
|
-
}>;
|
|
306
|
-
export type GenerateResponseInput = z.infer<typeof GenerateResponseInput>;
|
|
307
|
-
//# sourceMappingURL=response-schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response-schema.d.ts","sourceRoot":"","sources":["../../src/schemas/response-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AAGH,eAAO,MAAM,YAAY,uDAAqD,CAAC;AAC/E,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAGxD,eAAO,MAAM,gBAAgB,kDAAgD,CAAC;AAC9E,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGhE,eAAO,MAAM,cAAc;;;;;;;;;;;;EAIzB,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAW5D,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGhE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAGpE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGxE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAIxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAG1D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBhC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
/**
|
|
3
|
-
* Response Schema
|
|
4
|
-
*
|
|
5
|
-
* Standardized formats for AI agents to ask questions, make suggestions,
|
|
6
|
-
* or request confirmation from users.
|
|
7
|
-
*/
|
|
8
|
-
// Response types
|
|
9
|
-
export const ResponseType = z.enum(["question", "suggestion", "confirmation"]);
|
|
10
|
-
// Priority level for responses
|
|
11
|
-
export const ResponsePriority = z.enum(["low", "medium", "high", "critical"]);
|
|
12
|
-
// Option for multiple choice responses
|
|
13
|
-
export const ResponseOption = z.object({
|
|
14
|
-
label: z.string().describe("Display text for the option"),
|
|
15
|
-
value: z.string().describe("Value to return when selected"),
|
|
16
|
-
description: z.string().optional().describe("Additional explanation"),
|
|
17
|
-
});
|
|
18
|
-
// Base response schema
|
|
19
|
-
const BaseResponse = z.object({
|
|
20
|
-
type: ResponseType.describe("Type of response: question, suggestion, or confirmation"),
|
|
21
|
-
message: z.string().describe("Main message to display to user"),
|
|
22
|
-
context: z.string().optional().describe("Additional context or explanation"),
|
|
23
|
-
priority: ResponsePriority.optional().describe("Urgency/importance of response (default: medium)"),
|
|
24
|
-
});
|
|
25
|
-
// Question response - for clarification
|
|
26
|
-
export const QuestionResponse = BaseResponse.extend({
|
|
27
|
-
type: z.literal("question"),
|
|
28
|
-
options: z.array(ResponseOption).optional()
|
|
29
|
-
.describe("Multiple choice options (omit for free-form answer)"),
|
|
30
|
-
defaultOption: z.string().optional()
|
|
31
|
-
.describe("Default option value if user provides no input"),
|
|
32
|
-
});
|
|
33
|
-
// Suggestion response - for recommendations
|
|
34
|
-
export const SuggestionResponse = BaseResponse.extend({
|
|
35
|
-
type: z.literal("suggestion"),
|
|
36
|
-
options: z.array(ResponseOption).min(1)
|
|
37
|
-
.describe("Suggested options for user to choose from"),
|
|
38
|
-
reasoning: z.string().optional()
|
|
39
|
-
.describe("Explanation of why these suggestions were made"),
|
|
40
|
-
});
|
|
41
|
-
// Confirmation response - for explicit approval
|
|
42
|
-
export const ConfirmationResponse = BaseResponse.extend({
|
|
43
|
-
type: z.literal("confirmation"),
|
|
44
|
-
action: z.string().describe("Action that will be taken if confirmed"),
|
|
45
|
-
consequences: z.array(z.string()).optional()
|
|
46
|
-
.describe("List of effects or changes that will occur"),
|
|
47
|
-
defaultConfirm: z.boolean().optional()
|
|
48
|
-
.describe("Default choice if user provides no input (default: false)"),
|
|
49
|
-
});
|
|
50
|
-
// Union type for all response types
|
|
51
|
-
export const AgentResponse = z.discriminatedUnion("type", [
|
|
52
|
-
QuestionResponse,
|
|
53
|
-
SuggestionResponse,
|
|
54
|
-
ConfirmationResponse,
|
|
55
|
-
]);
|
|
56
|
-
// Input schema for generating responses
|
|
57
|
-
export const GenerateResponseInput = z.object({
|
|
58
|
-
type: ResponseType.describe("Type of response to generate"),
|
|
59
|
-
message: z.string().describe("Main message"),
|
|
60
|
-
options: z.array(ResponseOption).optional()
|
|
61
|
-
.describe("Options for question/suggestion types"),
|
|
62
|
-
context: z.string().optional(),
|
|
63
|
-
priority: ResponsePriority.optional().default("medium"),
|
|
64
|
-
action: z.string().optional()
|
|
65
|
-
.describe("Action description (for confirmation type)"),
|
|
66
|
-
consequences: z.array(z.string()).optional()
|
|
67
|
-
.describe("Consequences list (for confirmation type)"),
|
|
68
|
-
reasoning: z.string().optional()
|
|
69
|
-
.describe("Reasoning explanation (for suggestion type)"),
|
|
70
|
-
defaultOption: z.string().optional()
|
|
71
|
-
.describe("Default option value (for question type)"),
|
|
72
|
-
defaultConfirm: z.boolean().optional()
|
|
73
|
-
.describe("Default confirmation choice (for confirmation type)"),
|
|
74
|
-
});
|
|
75
|
-
//# sourceMappingURL=response-schema.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"response-schema.js","sourceRoot":"","sources":["../../src/schemas/response-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;GAKG;AAEH,iBAAiB;AACjB,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC;AAG/E,+BAA+B;AAC/B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;AAG9E,uCAAuC;AACvC,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,6BAA6B,CAAC;IACzD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IAC3D,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC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