@task-mcp/shared 1.0.7 → 1.0.8
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/dist/schemas/index.d.ts +2 -1
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/schemas/index.js +2 -0
- package/dist/schemas/index.js.map +1 -1
- package/dist/schemas/project.d.ts +37 -28
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +3 -0
- package/dist/schemas/project.js.map +1 -1
- package/dist/schemas/response-format.d.ts +73 -0
- package/dist/schemas/response-format.d.ts.map +1 -1
- package/dist/schemas/response-format.js +1 -0
- package/dist/schemas/response-format.js.map +1 -1
- package/dist/schemas/response-schema.d.ts +307 -0
- package/dist/schemas/response-schema.d.ts.map +1 -0
- package/dist/schemas/response-schema.js +75 -0
- package/dist/schemas/response-schema.js.map +1 -0
- package/dist/schemas/response-schema.test.d.ts +2 -0
- package/dist/schemas/response-schema.test.d.ts.map +1 -0
- package/dist/schemas/response-schema.test.js +256 -0
- package/dist/schemas/response-schema.test.js.map +1 -0
- package/package.json +1 -1
- package/src/schemas/index.ts +23 -0
- package/src/schemas/project.ts +3 -0
- package/src/schemas/response-format.ts +96 -0
- package/src/schemas/response-schema.test.ts +314 -0
- package/src/schemas/response-schema.ts +92 -0
package/dist/schemas/index.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export { Priority, TaskStatus, DependencyType, Dependency, TimeEstimate, Recurre
|
|
|
2
2
|
export { ProjectStatus, Context, Project, ProjectCreateInput, ProjectUpdateInput, } from "./project.js";
|
|
3
3
|
export { SmartViewFilter, SortField, SortOrder, SmartView, BuiltInView, } from "./view.js";
|
|
4
4
|
export { InboxStatus, InboxItem, InboxCreateInput, InboxUpdateInput, } from "./inbox.js";
|
|
5
|
-
export { ResponseFormat, DEFAULT_LIMIT, MAX_LIMIT, type PaginatedResponse, type TaskSummary, type TaskPreview, type ProjectSummary, type ProjectPreview, type InboxSummary, type InboxPreview, type CriticalPathSummary, type BottleneckSummary, } from "./response-format.js";
|
|
5
|
+
export { ResponseFormat, DEFAULT_LIMIT, MAX_LIMIT, type PaginatedResponse, type TaskSummary, type TaskPreview, type ProjectSummary, type ProjectPreview, type InboxSummary, type InboxPreview, type CriticalPathSummary, type BottleneckSummary, type DashboardProgress, type DashboardPriorityBreakdown, type DashboardDependencyMetrics, type DashboardNextTask, type DashboardCriticalPath, type DashboardStatusBreakdown, type DashboardSubtaskProgress, type DashboardDependencyStats, type DashboardConcise, type DashboardStandard, } from "./response-format.js";
|
|
6
|
+
export { ResponseType, ResponsePriority, ResponseOption, QuestionResponse, SuggestionResponse, ConfirmationResponse, type AgentResponse, GenerateResponseInput, } from "./response-schema.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,UAAU,EAEV,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,iBAAiB,EAEjB,IAAI,EACJ,eAAe,EACf,eAAe,GAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,aAAa,EACb,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,eAAe,EACf,SAAS,EACT,SAAS,EACT,SAAS,EACT,WAAW,GACZ,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,cAAc,EACd,aAAa,EACb,SAAS,EACT,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,MAAM,sBAAsB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,UAAU,EAEV,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,iBAAiB,EAEjB,IAAI,EACJ,eAAe,EACf,eAAe,GAChB,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,aAAa,EACb,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAGtB,OAAO,EACL,eAAe,EACf,SAAS,EACT,SAAS,EACT,SAAS,EACT,WAAW,GACZ,MAAM,WAAW,CAAC;AAGnB,OAAO,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAGpB,OAAO,EACL,cAAc,EACd,aAAa,EACb,SAAS,EACT,KAAK,iBAAiB,EACtB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EAEtB,KAAK,iBAAiB,EACtB,KAAK,0BAA0B,EAC/B,KAAK,0BAA0B,EAC/B,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,GACvB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EACpB,KAAK,aAAa,EAClB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC"}
|
package/dist/schemas/index.js
CHANGED
|
@@ -12,4 +12,6 @@ export { SmartViewFilter, SortField, SortOrder, SmartView, BuiltInView, } from "
|
|
|
12
12
|
export { InboxStatus, InboxItem, InboxCreateInput, InboxUpdateInput, } from "./inbox.js";
|
|
13
13
|
// Response format schemas (token optimization)
|
|
14
14
|
export { ResponseFormat, DEFAULT_LIMIT, MAX_LIMIT, } from "./response-format.js";
|
|
15
|
+
// Response schema (agent interaction)
|
|
16
|
+
export { ResponseType, ResponsePriority, ResponseOption, QuestionResponse, SuggestionResponse, ConfirmationResponse, GenerateResponseInput, } from "./response-schema.js";
|
|
15
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EACL,QAAQ,EACR,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,UAAU;AACV,mBAAmB;AACnB,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,iBAAiB;AACjB,eAAe;AACf,IAAI,EACJ,eAAe,EACf,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,kBAAkB;AAClB,OAAO,EACL,aAAa,EACb,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAEtB,eAAe;AACf,OAAO,EACL,eAAe,EACf,SAAS,EACT,SAAS,EACT,SAAS,EACT,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,gBAAgB;AAChB,OAAO,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB,+CAA+C;AAC/C,OAAO,EACL,cAAc,EACd,aAAa,EACb,SAAS,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schemas/index.ts"],"names":[],"mappings":"AAAA,eAAe;AACf,OAAO,EACL,QAAQ,EACR,UAAU,EACV,cAAc,EACd,UAAU,EACV,YAAY,EACZ,UAAU;AACV,mBAAmB;AACnB,gBAAgB,EAChB,kBAAkB,EAClB,QAAQ,EACR,SAAS,EACT,iBAAiB;AACjB,eAAe;AACf,IAAI,EACJ,eAAe,EACf,eAAe,GAChB,MAAM,WAAW,CAAC;AAEnB,kBAAkB;AAClB,OAAO,EACL,aAAa,EACb,OAAO,EACP,OAAO,EACP,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,cAAc,CAAC;AAEtB,eAAe;AACf,OAAO,EACL,eAAe,EACf,SAAS,EACT,SAAS,EACT,SAAS,EACT,WAAW,GACZ,MAAM,WAAW,CAAC;AAEnB,gBAAgB;AAChB,OAAO,EACL,WAAW,EACX,SAAS,EACT,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,YAAY,CAAC;AAEpB,+CAA+C;AAC/C,OAAO,EACL,cAAc,EACd,aAAa,EACb,SAAS,GAqBV,MAAM,sBAAsB,CAAC;AAE9B,sCAAsC;AACtC,OAAO,EACL,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,gBAAgB,EAChB,kBAAkB,EAClB,oBAAoB,EAEpB,qBAAqB,GACtB,MAAM,sBAAsB,CAAC"}
|
|
@@ -7,12 +7,12 @@ export declare const Context: z.ZodObject<{
|
|
|
7
7
|
description: z.ZodOptional<z.ZodString>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
9
|
name: string;
|
|
10
|
-
description?: string | undefined;
|
|
11
10
|
color?: string | undefined;
|
|
11
|
+
description?: string | undefined;
|
|
12
12
|
}, {
|
|
13
13
|
name: string;
|
|
14
|
-
description?: string | undefined;
|
|
15
14
|
color?: string | undefined;
|
|
15
|
+
description?: string | undefined;
|
|
16
16
|
}>;
|
|
17
17
|
export type Context = z.infer<typeof Context>;
|
|
18
18
|
export declare const Project: z.ZodObject<{
|
|
@@ -27,54 +27,57 @@ export declare const Project: z.ZodObject<{
|
|
|
27
27
|
description: z.ZodOptional<z.ZodString>;
|
|
28
28
|
}, "strip", z.ZodTypeAny, {
|
|
29
29
|
name: string;
|
|
30
|
-
description?: string | undefined;
|
|
31
30
|
color?: string | undefined;
|
|
31
|
+
description?: string | undefined;
|
|
32
32
|
}, {
|
|
33
33
|
name: string;
|
|
34
|
-
description?: string | undefined;
|
|
35
34
|
color?: string | undefined;
|
|
35
|
+
description?: string | undefined;
|
|
36
36
|
}>, "many">>;
|
|
37
37
|
createdAt: z.ZodString;
|
|
38
38
|
updatedAt: z.ZodString;
|
|
39
39
|
targetDate: z.ZodOptional<z.ZodString>;
|
|
40
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
40
41
|
completionPercentage: z.ZodOptional<z.ZodNumber>;
|
|
41
42
|
criticalPathLength: z.ZodOptional<z.ZodNumber>;
|
|
42
43
|
blockedTaskCount: z.ZodOptional<z.ZodNumber>;
|
|
43
44
|
totalTasks: z.ZodOptional<z.ZodNumber>;
|
|
44
45
|
completedTasks: z.ZodOptional<z.ZodNumber>;
|
|
45
46
|
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
name: string;
|
|
48
|
+
status: "active" | "on_hold" | "completed" | "archived";
|
|
46
49
|
id: string;
|
|
47
|
-
status: "completed" | "active" | "on_hold" | "archived";
|
|
48
50
|
createdAt: string;
|
|
49
51
|
updatedAt: string;
|
|
50
|
-
name: string;
|
|
51
52
|
description?: string | undefined;
|
|
53
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
52
54
|
contexts?: {
|
|
53
55
|
name: string;
|
|
54
|
-
description?: string | undefined;
|
|
55
56
|
color?: string | undefined;
|
|
57
|
+
description?: string | undefined;
|
|
56
58
|
}[] | undefined;
|
|
57
|
-
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
58
59
|
targetDate?: string | undefined;
|
|
60
|
+
sortOrder?: number | undefined;
|
|
59
61
|
completionPercentage?: number | undefined;
|
|
60
62
|
criticalPathLength?: number | undefined;
|
|
61
63
|
blockedTaskCount?: number | undefined;
|
|
62
64
|
totalTasks?: number | undefined;
|
|
63
65
|
completedTasks?: number | undefined;
|
|
64
66
|
}, {
|
|
67
|
+
name: string;
|
|
68
|
+
status: "active" | "on_hold" | "completed" | "archived";
|
|
65
69
|
id: string;
|
|
66
|
-
status: "completed" | "active" | "on_hold" | "archived";
|
|
67
70
|
createdAt: string;
|
|
68
71
|
updatedAt: string;
|
|
69
|
-
name: string;
|
|
70
72
|
description?: string | undefined;
|
|
73
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
71
74
|
contexts?: {
|
|
72
75
|
name: string;
|
|
73
|
-
description?: string | undefined;
|
|
74
76
|
color?: string | undefined;
|
|
77
|
+
description?: string | undefined;
|
|
75
78
|
}[] | undefined;
|
|
76
|
-
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
77
79
|
targetDate?: string | undefined;
|
|
80
|
+
sortOrder?: number | undefined;
|
|
78
81
|
completionPercentage?: number | undefined;
|
|
79
82
|
criticalPathLength?: number | undefined;
|
|
80
83
|
blockedTaskCount?: number | undefined;
|
|
@@ -92,34 +95,37 @@ export declare const ProjectCreateInput: z.ZodObject<{
|
|
|
92
95
|
description: z.ZodOptional<z.ZodString>;
|
|
93
96
|
}, "strip", z.ZodTypeAny, {
|
|
94
97
|
name: string;
|
|
95
|
-
description?: string | undefined;
|
|
96
98
|
color?: string | undefined;
|
|
99
|
+
description?: string | undefined;
|
|
97
100
|
}, {
|
|
98
101
|
name: string;
|
|
99
|
-
description?: string | undefined;
|
|
100
102
|
color?: string | undefined;
|
|
103
|
+
description?: string | undefined;
|
|
101
104
|
}>, "many">>;
|
|
102
105
|
targetDate: z.ZodOptional<z.ZodString>;
|
|
106
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
103
107
|
}, "strip", z.ZodTypeAny, {
|
|
104
108
|
name: string;
|
|
105
109
|
description?: string | undefined;
|
|
110
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
106
111
|
contexts?: {
|
|
107
112
|
name: string;
|
|
108
|
-
description?: string | undefined;
|
|
109
113
|
color?: string | undefined;
|
|
114
|
+
description?: string | undefined;
|
|
110
115
|
}[] | undefined;
|
|
111
|
-
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
112
116
|
targetDate?: string | undefined;
|
|
117
|
+
sortOrder?: number | undefined;
|
|
113
118
|
}, {
|
|
114
119
|
name: string;
|
|
115
120
|
description?: string | undefined;
|
|
121
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
116
122
|
contexts?: {
|
|
117
123
|
name: string;
|
|
118
|
-
description?: string | undefined;
|
|
119
124
|
color?: string | undefined;
|
|
125
|
+
description?: string | undefined;
|
|
120
126
|
}[] | undefined;
|
|
121
|
-
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
122
127
|
targetDate?: string | undefined;
|
|
128
|
+
sortOrder?: number | undefined;
|
|
123
129
|
}>;
|
|
124
130
|
export type ProjectCreateInput = z.infer<typeof ProjectCreateInput>;
|
|
125
131
|
export declare const ProjectUpdateInput: z.ZodObject<{
|
|
@@ -133,36 +139,39 @@ export declare const ProjectUpdateInput: z.ZodObject<{
|
|
|
133
139
|
description: z.ZodOptional<z.ZodString>;
|
|
134
140
|
}, "strip", z.ZodTypeAny, {
|
|
135
141
|
name: string;
|
|
136
|
-
description?: string | undefined;
|
|
137
142
|
color?: string | undefined;
|
|
143
|
+
description?: string | undefined;
|
|
138
144
|
}, {
|
|
139
145
|
name: string;
|
|
140
|
-
description?: string | undefined;
|
|
141
146
|
color?: string | undefined;
|
|
147
|
+
description?: string | undefined;
|
|
142
148
|
}>, "many">>;
|
|
143
149
|
targetDate: z.ZodOptional<z.ZodString>;
|
|
150
|
+
sortOrder: z.ZodOptional<z.ZodNumber>;
|
|
144
151
|
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
name?: string | undefined;
|
|
145
153
|
description?: string | undefined;
|
|
146
|
-
status?: "
|
|
154
|
+
status?: "active" | "on_hold" | "completed" | "archived" | undefined;
|
|
155
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
147
156
|
contexts?: {
|
|
148
157
|
name: string;
|
|
149
|
-
description?: string | undefined;
|
|
150
158
|
color?: string | undefined;
|
|
159
|
+
description?: string | undefined;
|
|
151
160
|
}[] | undefined;
|
|
152
|
-
name?: string | undefined;
|
|
153
|
-
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
154
161
|
targetDate?: string | undefined;
|
|
162
|
+
sortOrder?: number | undefined;
|
|
155
163
|
}, {
|
|
164
|
+
name?: string | undefined;
|
|
156
165
|
description?: string | undefined;
|
|
157
|
-
status?: "
|
|
166
|
+
status?: "active" | "on_hold" | "completed" | "archived" | undefined;
|
|
167
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
158
168
|
contexts?: {
|
|
159
169
|
name: string;
|
|
160
|
-
description?: string | undefined;
|
|
161
170
|
color?: string | undefined;
|
|
171
|
+
description?: string | undefined;
|
|
162
172
|
}[] | undefined;
|
|
163
|
-
name?: string | undefined;
|
|
164
|
-
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
165
173
|
targetDate?: string | undefined;
|
|
174
|
+
sortOrder?: number | undefined;
|
|
166
175
|
}>;
|
|
167
176
|
export type ProjectUpdateInput = z.infer<typeof ProjectUpdateInput>;
|
|
168
177
|
//# sourceMappingURL=project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa,2DAKxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAG1D,eAAO,MAAM,OAAO;;;;;;;;;;;;EAIlB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAG9C,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,aAAa,2DAKxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAG1D,eAAO,MAAM,OAAO;;;;;;;;;;;;EAIlB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAG9C,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsBlB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAG9C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAGpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAQ7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/schemas/project.js
CHANGED
|
@@ -26,6 +26,7 @@ export const Project = z.object({
|
|
|
26
26
|
createdAt: z.string(),
|
|
27
27
|
updatedAt: z.string(),
|
|
28
28
|
targetDate: z.string().optional(),
|
|
29
|
+
sortOrder: z.number().optional(), // User-defined display order (auto-assigned if not specified)
|
|
29
30
|
// Computed stats
|
|
30
31
|
completionPercentage: z.number().optional(),
|
|
31
32
|
criticalPathLength: z.number().optional(), // Total minutes on critical path
|
|
@@ -40,6 +41,7 @@ export const ProjectCreateInput = z.object({
|
|
|
40
41
|
defaultPriority: Priority.optional(),
|
|
41
42
|
contexts: z.array(Context).optional(),
|
|
42
43
|
targetDate: z.string().optional(),
|
|
44
|
+
sortOrder: z.number().optional(), // Auto-assigned if not specified
|
|
43
45
|
});
|
|
44
46
|
// Project update input
|
|
45
47
|
export const ProjectUpdateInput = z.object({
|
|
@@ -49,5 +51,6 @@ export const ProjectUpdateInput = z.object({
|
|
|
49
51
|
defaultPriority: Priority.optional(),
|
|
50
52
|
contexts: z.array(Context).optional(),
|
|
51
53
|
targetDate: z.string().optional(),
|
|
54
|
+
sortOrder: z.number().optional(),
|
|
52
55
|
});
|
|
53
56
|
//# sourceMappingURL=project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,iBAAiB;AACjB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC;IAClC,QAAQ;IACR,SAAS;IACT,WAAW;IACX,UAAU;CACX,CAAC,CAAC;AAGH,qBAAqB;AACrB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,YAAY;IAC1C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACnC,CAAC,CAAC;AAGH,iBAAiB;AACjB,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,CAAC,MAAM,CAAC;IAC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AC;AAGH,uBAAuB;AACvB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,aAAa,CAAC,QAAQ,EAAE;IAChC,eAAe,EAAE,QAAQ,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC"}
|
|
@@ -77,4 +77,77 @@ export interface BottleneckSummary {
|
|
|
77
77
|
title: string;
|
|
78
78
|
blockedCount: number;
|
|
79
79
|
}
|
|
80
|
+
/**
|
|
81
|
+
* Dashboard response types - project_dashboard tool
|
|
82
|
+
*
|
|
83
|
+
* Provides unified project overview with progress, priority breakdown,
|
|
84
|
+
* dependency metrics, and next task recommendation.
|
|
85
|
+
*/
|
|
86
|
+
export interface DashboardProgress {
|
|
87
|
+
completed: number;
|
|
88
|
+
total: number;
|
|
89
|
+
pct: number;
|
|
90
|
+
}
|
|
91
|
+
export interface DashboardPriorityBreakdown {
|
|
92
|
+
critical: number;
|
|
93
|
+
high: number;
|
|
94
|
+
medium: number;
|
|
95
|
+
low: number;
|
|
96
|
+
}
|
|
97
|
+
export interface DashboardDependencyMetrics {
|
|
98
|
+
ready: number;
|
|
99
|
+
blocked: number;
|
|
100
|
+
noDeps: number;
|
|
101
|
+
}
|
|
102
|
+
export interface DashboardNextTask {
|
|
103
|
+
id: string;
|
|
104
|
+
title: string;
|
|
105
|
+
priority: string;
|
|
106
|
+
reason: string;
|
|
107
|
+
}
|
|
108
|
+
export interface DashboardCriticalPath {
|
|
109
|
+
length: number;
|
|
110
|
+
taskCount: number;
|
|
111
|
+
}
|
|
112
|
+
export interface DashboardStatusBreakdown {
|
|
113
|
+
done: number;
|
|
114
|
+
inProgress: number;
|
|
115
|
+
pending: number;
|
|
116
|
+
blocked: number;
|
|
117
|
+
deferred: number;
|
|
118
|
+
cancelled: number;
|
|
119
|
+
}
|
|
120
|
+
export interface DashboardSubtaskProgress {
|
|
121
|
+
completed: number;
|
|
122
|
+
total: number;
|
|
123
|
+
pct: number;
|
|
124
|
+
inProgress: number;
|
|
125
|
+
pending: number;
|
|
126
|
+
blocked: number;
|
|
127
|
+
}
|
|
128
|
+
export interface DashboardDependencyStats {
|
|
129
|
+
mostDependedOn?: {
|
|
130
|
+
taskId: string;
|
|
131
|
+
title: string;
|
|
132
|
+
dependentCount: number;
|
|
133
|
+
};
|
|
134
|
+
avgDepsPerTask: number;
|
|
135
|
+
}
|
|
136
|
+
export interface DashboardConcise {
|
|
137
|
+
id: string;
|
|
138
|
+
name: string;
|
|
139
|
+
progress: DashboardProgress;
|
|
140
|
+
statusBreakdown: DashboardStatusBreakdown;
|
|
141
|
+
subtaskProgress?: DashboardSubtaskProgress;
|
|
142
|
+
priority: DashboardPriorityBreakdown;
|
|
143
|
+
dependency: DashboardDependencyMetrics;
|
|
144
|
+
dependencyStats: DashboardDependencyStats;
|
|
145
|
+
nextTask?: DashboardNextTask;
|
|
146
|
+
}
|
|
147
|
+
export interface DashboardStandard extends DashboardConcise {
|
|
148
|
+
projectStatus: string;
|
|
149
|
+
targetDate?: string;
|
|
150
|
+
criticalPath?: DashboardCriticalPath;
|
|
151
|
+
tasks: TaskSummary[];
|
|
152
|
+
}
|
|
80
153
|
//# sourceMappingURL=response-format.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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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,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAGD,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IACzD,aAAa,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,qBAAqB,CAAC;IACrC,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB"}
|
|
@@ -14,4 +14,5 @@ export const ResponseFormat = z.enum(["concise", "standard", "detailed"]);
|
|
|
14
14
|
// Default limits for pagination
|
|
15
15
|
export const DEFAULT_LIMIT = 20;
|
|
16
16
|
export const MAX_LIMIT = 100;
|
|
17
|
+
// Detailed format - human-readable markdown (use string output)
|
|
17
18
|
//# sourceMappingURL=response-format.js.map
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
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;AAwL7B,gEAAgE"}
|
|
@@ -0,0 +1,307 @@
|
|
|
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
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
description?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
label: string;
|
|
22
|
+
value: 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
|
+
label: string;
|
|
38
|
+
value: string;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
}, {
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
description?: string | undefined;
|
|
44
|
+
}>, "many">>;
|
|
45
|
+
defaultOption: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
message: string;
|
|
48
|
+
type: "question";
|
|
49
|
+
options?: {
|
|
50
|
+
label: string;
|
|
51
|
+
value: string;
|
|
52
|
+
description?: string | undefined;
|
|
53
|
+
}[] | undefined;
|
|
54
|
+
context?: string | undefined;
|
|
55
|
+
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
56
|
+
defaultOption?: string | undefined;
|
|
57
|
+
}, {
|
|
58
|
+
message: string;
|
|
59
|
+
type: "question";
|
|
60
|
+
options?: {
|
|
61
|
+
label: string;
|
|
62
|
+
value: string;
|
|
63
|
+
description?: string | undefined;
|
|
64
|
+
}[] | undefined;
|
|
65
|
+
context?: string | undefined;
|
|
66
|
+
priority?: "low" | "medium" | "high" | "critical" | 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
|
+
label: string;
|
|
82
|
+
value: string;
|
|
83
|
+
description?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
label: string;
|
|
86
|
+
value: string;
|
|
87
|
+
description?: string | undefined;
|
|
88
|
+
}>, "many">;
|
|
89
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
90
|
+
}, "strip", z.ZodTypeAny, {
|
|
91
|
+
message: string;
|
|
92
|
+
options: {
|
|
93
|
+
label: string;
|
|
94
|
+
value: string;
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
}[];
|
|
97
|
+
type: "suggestion";
|
|
98
|
+
context?: string | undefined;
|
|
99
|
+
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
100
|
+
reasoning?: string | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
message: string;
|
|
103
|
+
options: {
|
|
104
|
+
label: string;
|
|
105
|
+
value: string;
|
|
106
|
+
description?: string | undefined;
|
|
107
|
+
}[];
|
|
108
|
+
type: "suggestion";
|
|
109
|
+
context?: string | undefined;
|
|
110
|
+
priority?: "low" | "medium" | "high" | "critical" | 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
|
+
message: string;
|
|
125
|
+
type: "confirmation";
|
|
126
|
+
action: string;
|
|
127
|
+
context?: string | undefined;
|
|
128
|
+
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
129
|
+
consequences?: string[] | undefined;
|
|
130
|
+
defaultConfirm?: boolean | undefined;
|
|
131
|
+
}, {
|
|
132
|
+
message: string;
|
|
133
|
+
type: "confirmation";
|
|
134
|
+
action: string;
|
|
135
|
+
context?: string | undefined;
|
|
136
|
+
priority?: "low" | "medium" | "high" | "critical" | 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
|
+
label: string;
|
|
153
|
+
value: string;
|
|
154
|
+
description?: string | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
label: string;
|
|
157
|
+
value: string;
|
|
158
|
+
description?: string | undefined;
|
|
159
|
+
}>, "many">>;
|
|
160
|
+
defaultOption: z.ZodOptional<z.ZodString>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
message: string;
|
|
163
|
+
type: "question";
|
|
164
|
+
options?: {
|
|
165
|
+
label: string;
|
|
166
|
+
value: string;
|
|
167
|
+
description?: string | undefined;
|
|
168
|
+
}[] | undefined;
|
|
169
|
+
context?: string | undefined;
|
|
170
|
+
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
171
|
+
defaultOption?: string | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
message: string;
|
|
174
|
+
type: "question";
|
|
175
|
+
options?: {
|
|
176
|
+
label: string;
|
|
177
|
+
value: string;
|
|
178
|
+
description?: string | undefined;
|
|
179
|
+
}[] | undefined;
|
|
180
|
+
context?: string | undefined;
|
|
181
|
+
priority?: "low" | "medium" | "high" | "critical" | 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
|
+
label: string;
|
|
195
|
+
value: string;
|
|
196
|
+
description?: string | undefined;
|
|
197
|
+
}, {
|
|
198
|
+
label: string;
|
|
199
|
+
value: string;
|
|
200
|
+
description?: string | undefined;
|
|
201
|
+
}>, "many">;
|
|
202
|
+
reasoning: z.ZodOptional<z.ZodString>;
|
|
203
|
+
}, "strip", z.ZodTypeAny, {
|
|
204
|
+
message: string;
|
|
205
|
+
options: {
|
|
206
|
+
label: string;
|
|
207
|
+
value: string;
|
|
208
|
+
description?: string | undefined;
|
|
209
|
+
}[];
|
|
210
|
+
type: "suggestion";
|
|
211
|
+
context?: string | undefined;
|
|
212
|
+
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
213
|
+
reasoning?: string | undefined;
|
|
214
|
+
}, {
|
|
215
|
+
message: string;
|
|
216
|
+
options: {
|
|
217
|
+
label: string;
|
|
218
|
+
value: string;
|
|
219
|
+
description?: string | undefined;
|
|
220
|
+
}[];
|
|
221
|
+
type: "suggestion";
|
|
222
|
+
context?: string | undefined;
|
|
223
|
+
priority?: "low" | "medium" | "high" | "critical" | 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
|
+
message: string;
|
|
236
|
+
type: "confirmation";
|
|
237
|
+
action: string;
|
|
238
|
+
context?: string | undefined;
|
|
239
|
+
priority?: "low" | "medium" | "high" | "critical" | undefined;
|
|
240
|
+
consequences?: string[] | undefined;
|
|
241
|
+
defaultConfirm?: boolean | undefined;
|
|
242
|
+
}, {
|
|
243
|
+
message: string;
|
|
244
|
+
type: "confirmation";
|
|
245
|
+
action: string;
|
|
246
|
+
context?: string | undefined;
|
|
247
|
+
priority?: "low" | "medium" | "high" | "critical" | 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
|
+
label: string;
|
|
261
|
+
value: string;
|
|
262
|
+
description?: string | undefined;
|
|
263
|
+
}, {
|
|
264
|
+
label: string;
|
|
265
|
+
value: 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
|
+
message: string;
|
|
277
|
+
type: "question" | "suggestion" | "confirmation";
|
|
278
|
+
priority: "low" | "medium" | "high" | "critical";
|
|
279
|
+
options?: {
|
|
280
|
+
label: string;
|
|
281
|
+
value: 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
|
+
message: string;
|
|
292
|
+
type: "question" | "suggestion" | "confirmation";
|
|
293
|
+
options?: {
|
|
294
|
+
label: string;
|
|
295
|
+
value: string;
|
|
296
|
+
description?: string | undefined;
|
|
297
|
+
}[] | undefined;
|
|
298
|
+
context?: string | undefined;
|
|
299
|
+
priority?: "low" | "medium" | "high" | "critical" | 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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"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