@task-mcp/shared 1.0.6 → 1.0.7
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/inbox.d.ts +49 -18
- package/dist/schemas/inbox.d.ts.map +1 -1
- package/dist/schemas/inbox.js +16 -16
- package/dist/schemas/inbox.js.map +1 -1
- package/dist/schemas/project.d.ts +154 -41
- package/dist/schemas/project.d.ts.map +1 -1
- package/dist/schemas/project.js +38 -33
- package/dist/schemas/project.js.map +1 -1
- package/dist/schemas/response-format.d.ts +3 -2
- package/dist/schemas/response-format.d.ts.map +1 -1
- package/dist/schemas/response-format.js +2 -2
- package/dist/schemas/response-format.js.map +1 -1
- package/dist/schemas/task.d.ts +588 -147
- package/dist/schemas/task.d.ts.map +1 -1
- package/dist/schemas/task.js +114 -88
- package/dist/schemas/task.js.map +1 -1
- package/dist/schemas/view.d.ts +128 -37
- package/dist/schemas/view.d.ts.map +1 -1
- package/dist/schemas/view.js +38 -24
- package/dist/schemas/view.js.map +1 -1
- package/package.json +2 -2
- package/src/schemas/inbox.ts +20 -20
- package/src/schemas/project.ts +43 -40
- package/src/schemas/response-format.ts +3 -3
- package/src/schemas/task.ts +128 -110
- package/src/schemas/view.ts +43 -33
package/dist/schemas/inbox.d.ts
CHANGED
|
@@ -1,24 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const InboxStatus: z.ZodEnum<["pending", "promoted", "discarded"]>;
|
|
3
|
+
export type InboxStatus = z.infer<typeof InboxStatus>;
|
|
4
|
+
export declare const InboxItem: z.ZodObject<{
|
|
5
|
+
id: z.ZodString;
|
|
6
|
+
content: z.ZodString;
|
|
7
|
+
capturedAt: z.ZodString;
|
|
8
|
+
source: z.ZodOptional<z.ZodString>;
|
|
9
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
10
|
+
promotedToTaskId: z.ZodOptional<z.ZodString>;
|
|
11
|
+
status: z.ZodEnum<["pending", "promoted", "discarded"]>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
4
13
|
id: string;
|
|
14
|
+
status: "pending" | "promoted" | "discarded";
|
|
5
15
|
content: string;
|
|
6
16
|
capturedAt: string;
|
|
17
|
+
tags?: string[] | undefined;
|
|
18
|
+
source?: string | undefined;
|
|
19
|
+
promotedToTaskId?: string | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
id: string;
|
|
7
22
|
status: "pending" | "promoted" | "discarded";
|
|
8
|
-
source?: string;
|
|
9
|
-
tags?: string[];
|
|
10
|
-
promotedToTaskId?: string;
|
|
11
|
-
}, {}>;
|
|
12
|
-
export type InboxItem = typeof InboxItem.infer;
|
|
13
|
-
export declare const InboxCreateInput: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
14
23
|
content: string;
|
|
15
|
-
|
|
16
|
-
tags?: string[];
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
+
capturedAt: string;
|
|
25
|
+
tags?: string[] | undefined;
|
|
26
|
+
source?: string | undefined;
|
|
27
|
+
promotedToTaskId?: string | undefined;
|
|
28
|
+
}>;
|
|
29
|
+
export type InboxItem = z.infer<typeof InboxItem>;
|
|
30
|
+
export declare const InboxCreateInput: z.ZodObject<{
|
|
31
|
+
content: z.ZodString;
|
|
32
|
+
source: z.ZodOptional<z.ZodString>;
|
|
33
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
content: string;
|
|
36
|
+
tags?: string[] | undefined;
|
|
37
|
+
source?: string | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
content: string;
|
|
40
|
+
tags?: string[] | undefined;
|
|
41
|
+
source?: string | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
export type InboxCreateInput = z.infer<typeof InboxCreateInput>;
|
|
44
|
+
export declare const InboxUpdateInput: z.ZodObject<{
|
|
45
|
+
content: z.ZodOptional<z.ZodString>;
|
|
46
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
47
|
+
}, "strip", z.ZodTypeAny, {
|
|
48
|
+
tags?: string[] | undefined;
|
|
49
|
+
content?: string | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
tags?: string[] | undefined;
|
|
52
|
+
content?: string | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
export type InboxUpdateInput = z.infer<typeof InboxUpdateInput>;
|
|
24
55
|
//# sourceMappingURL=inbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,WAAW,iDAA+C,CAAC;AACxE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAGtD,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;EAQpB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;AAGlD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;EAI3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAGhE,eAAO,MAAM,gBAAgB;;;;;;;;;EAG3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/schemas/inbox.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
// Inbox item status
|
|
3
|
-
export const InboxStatus =
|
|
3
|
+
export const InboxStatus = z.enum(["pending", "promoted", "discarded"]);
|
|
4
4
|
// Inbox item schema - lightweight idea/memo capture
|
|
5
|
-
export const InboxItem =
|
|
6
|
-
id:
|
|
7
|
-
content:
|
|
8
|
-
capturedAt:
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
5
|
+
export const InboxItem = z.object({
|
|
6
|
+
id: z.string(),
|
|
7
|
+
content: z.string(), // The memo/idea content
|
|
8
|
+
capturedAt: z.string(), // ISO timestamp
|
|
9
|
+
source: z.string().optional(), // Origin: 'cli', 'mcp', 'api', etc.
|
|
10
|
+
tags: z.array(z.string()).optional(), // Simple tags for organization
|
|
11
|
+
promotedToTaskId: z.string().optional(), // Task ID if promoted
|
|
12
12
|
status: InboxStatus,
|
|
13
13
|
});
|
|
14
14
|
// Inbox item creation input (minimal)
|
|
15
|
-
export const InboxCreateInput =
|
|
16
|
-
content:
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
export const InboxCreateInput = z.object({
|
|
16
|
+
content: z.string(),
|
|
17
|
+
source: z.string().optional(),
|
|
18
|
+
tags: z.array(z.string()).optional(),
|
|
19
19
|
});
|
|
20
20
|
// Inbox item update input
|
|
21
|
-
export const InboxUpdateInput =
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
export const InboxUpdateInput = z.object({
|
|
22
|
+
content: z.string().optional(),
|
|
23
|
+
tags: z.array(z.string()).optional(),
|
|
24
24
|
});
|
|
25
25
|
//# sourceMappingURL=inbox.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM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55 +1,168 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const ProjectStatus: z.ZodEnum<["active", "on_hold", "completed", "archived"]>;
|
|
3
|
+
export type ProjectStatus = z.infer<typeof ProjectStatus>;
|
|
4
|
+
export declare const Context: z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
color: z.ZodOptional<z.ZodString>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
4
9
|
name: string;
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}, {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
color?: string | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string | undefined;
|
|
15
|
+
color?: string | undefined;
|
|
16
|
+
}>;
|
|
17
|
+
export type Context = z.infer<typeof Context>;
|
|
18
|
+
export declare const Project: z.ZodObject<{
|
|
19
|
+
id: z.ZodString;
|
|
20
|
+
name: z.ZodString;
|
|
21
|
+
description: z.ZodOptional<z.ZodString>;
|
|
22
|
+
status: z.ZodEnum<["active", "on_hold", "completed", "archived"]>;
|
|
23
|
+
defaultPriority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
24
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
25
|
+
name: z.ZodString;
|
|
26
|
+
color: z.ZodOptional<z.ZodString>;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
name: string;
|
|
30
|
+
description?: string | undefined;
|
|
31
|
+
color?: string | undefined;
|
|
32
|
+
}, {
|
|
33
|
+
name: string;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
color?: string | undefined;
|
|
36
|
+
}>, "many">>;
|
|
37
|
+
createdAt: z.ZodString;
|
|
38
|
+
updatedAt: z.ZodString;
|
|
39
|
+
targetDate: z.ZodOptional<z.ZodString>;
|
|
40
|
+
completionPercentage: z.ZodOptional<z.ZodNumber>;
|
|
41
|
+
criticalPathLength: z.ZodOptional<z.ZodNumber>;
|
|
42
|
+
blockedTaskCount: z.ZodOptional<z.ZodNumber>;
|
|
43
|
+
totalTasks: z.ZodOptional<z.ZodNumber>;
|
|
44
|
+
completedTasks: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
46
|
id: string;
|
|
47
|
+
status: "completed" | "active" | "on_hold" | "archived";
|
|
48
|
+
createdAt: string;
|
|
49
|
+
updatedAt: string;
|
|
11
50
|
name: string;
|
|
51
|
+
description?: string | undefined;
|
|
52
|
+
contexts?: {
|
|
53
|
+
name: string;
|
|
54
|
+
description?: string | undefined;
|
|
55
|
+
color?: string | undefined;
|
|
56
|
+
}[] | undefined;
|
|
57
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
58
|
+
targetDate?: string | undefined;
|
|
59
|
+
completionPercentage?: number | undefined;
|
|
60
|
+
criticalPathLength?: number | undefined;
|
|
61
|
+
blockedTaskCount?: number | undefined;
|
|
62
|
+
totalTasks?: number | undefined;
|
|
63
|
+
completedTasks?: number | undefined;
|
|
64
|
+
}, {
|
|
65
|
+
id: string;
|
|
12
66
|
status: "completed" | "active" | "on_hold" | "archived";
|
|
13
67
|
createdAt: string;
|
|
14
68
|
updatedAt: string;
|
|
15
|
-
|
|
16
|
-
|
|
69
|
+
name: string;
|
|
70
|
+
description?: string | undefined;
|
|
17
71
|
contexts?: {
|
|
18
72
|
name: string;
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}[];
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
export
|
|
73
|
+
description?: string | undefined;
|
|
74
|
+
color?: string | undefined;
|
|
75
|
+
}[] | undefined;
|
|
76
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
77
|
+
targetDate?: string | undefined;
|
|
78
|
+
completionPercentage?: number | undefined;
|
|
79
|
+
criticalPathLength?: number | undefined;
|
|
80
|
+
blockedTaskCount?: number | undefined;
|
|
81
|
+
totalTasks?: number | undefined;
|
|
82
|
+
completedTasks?: number | undefined;
|
|
83
|
+
}>;
|
|
84
|
+
export type Project = z.infer<typeof Project>;
|
|
85
|
+
export declare const ProjectCreateInput: z.ZodObject<{
|
|
86
|
+
name: z.ZodString;
|
|
87
|
+
description: z.ZodOptional<z.ZodString>;
|
|
88
|
+
defaultPriority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
89
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
90
|
+
name: z.ZodString;
|
|
91
|
+
color: z.ZodOptional<z.ZodString>;
|
|
92
|
+
description: z.ZodOptional<z.ZodString>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
name: string;
|
|
95
|
+
description?: string | undefined;
|
|
96
|
+
color?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
name: string;
|
|
99
|
+
description?: string | undefined;
|
|
100
|
+
color?: string | undefined;
|
|
101
|
+
}>, "many">>;
|
|
102
|
+
targetDate: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
name: string;
|
|
105
|
+
description?: string | undefined;
|
|
106
|
+
contexts?: {
|
|
107
|
+
name: string;
|
|
108
|
+
description?: string | undefined;
|
|
109
|
+
color?: string | undefined;
|
|
110
|
+
}[] | undefined;
|
|
111
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
112
|
+
targetDate?: string | undefined;
|
|
113
|
+
}, {
|
|
31
114
|
name: string;
|
|
32
|
-
description?: string;
|
|
33
|
-
|
|
115
|
+
description?: string | undefined;
|
|
116
|
+
contexts?: {
|
|
117
|
+
name: string;
|
|
118
|
+
description?: string | undefined;
|
|
119
|
+
color?: string | undefined;
|
|
120
|
+
}[] | undefined;
|
|
121
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
122
|
+
targetDate?: string | undefined;
|
|
123
|
+
}>;
|
|
124
|
+
export type ProjectCreateInput = z.infer<typeof ProjectCreateInput>;
|
|
125
|
+
export declare const ProjectUpdateInput: z.ZodObject<{
|
|
126
|
+
name: z.ZodOptional<z.ZodString>;
|
|
127
|
+
description: z.ZodOptional<z.ZodString>;
|
|
128
|
+
status: z.ZodOptional<z.ZodEnum<["active", "on_hold", "completed", "archived"]>>;
|
|
129
|
+
defaultPriority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
|
|
130
|
+
contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
131
|
+
name: z.ZodString;
|
|
132
|
+
color: z.ZodOptional<z.ZodString>;
|
|
133
|
+
description: z.ZodOptional<z.ZodString>;
|
|
134
|
+
}, "strip", z.ZodTypeAny, {
|
|
135
|
+
name: string;
|
|
136
|
+
description?: string | undefined;
|
|
137
|
+
color?: string | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
name: string;
|
|
140
|
+
description?: string | undefined;
|
|
141
|
+
color?: string | undefined;
|
|
142
|
+
}>, "many">>;
|
|
143
|
+
targetDate: z.ZodOptional<z.ZodString>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
description?: string | undefined;
|
|
146
|
+
status?: "completed" | "active" | "on_hold" | "archived" | undefined;
|
|
34
147
|
contexts?: {
|
|
35
148
|
name: string;
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}[];
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
status?: "completed" | "active" | "on_hold" | "archived";
|
|
46
|
-
defaultPriority?: "critical" | "high" | "medium" | "low";
|
|
149
|
+
description?: string | undefined;
|
|
150
|
+
color?: string | undefined;
|
|
151
|
+
}[] | undefined;
|
|
152
|
+
name?: string | undefined;
|
|
153
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
154
|
+
targetDate?: string | undefined;
|
|
155
|
+
}, {
|
|
156
|
+
description?: string | undefined;
|
|
157
|
+
status?: "completed" | "active" | "on_hold" | "archived" | undefined;
|
|
47
158
|
contexts?: {
|
|
48
159
|
name: string;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
}[];
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
160
|
+
description?: string | undefined;
|
|
161
|
+
color?: string | undefined;
|
|
162
|
+
}[] | undefined;
|
|
163
|
+
name?: string | undefined;
|
|
164
|
+
defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
|
|
165
|
+
targetDate?: string | undefined;
|
|
166
|
+
}>;
|
|
167
|
+
export type ProjectUpdateInput = z.infer<typeof ProjectUpdateInput>;
|
|
55
168
|
//# sourceMappingURL=project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqBlB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,OAAO,CAAC,CAAC;AAG9C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAGpE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAO7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
package/dist/schemas/project.js
CHANGED
|
@@ -1,48 +1,53 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
import { Priority } from "./task.js";
|
|
3
3
|
// Project status
|
|
4
|
-
export const ProjectStatus =
|
|
4
|
+
export const ProjectStatus = z.enum([
|
|
5
|
+
"active",
|
|
6
|
+
"on_hold",
|
|
7
|
+
"completed",
|
|
8
|
+
"archived",
|
|
9
|
+
]);
|
|
5
10
|
// Context definition
|
|
6
|
-
export const Context =
|
|
7
|
-
name:
|
|
8
|
-
|
|
9
|
-
|
|
11
|
+
export const Context = z.object({
|
|
12
|
+
name: z.string(),
|
|
13
|
+
color: z.string().optional(), // hex color
|
|
14
|
+
description: z.string().optional(),
|
|
10
15
|
});
|
|
11
16
|
// Project schema
|
|
12
|
-
export const Project =
|
|
13
|
-
id:
|
|
14
|
-
name:
|
|
15
|
-
|
|
17
|
+
export const Project = z.object({
|
|
18
|
+
id: z.string(),
|
|
19
|
+
name: z.string(),
|
|
20
|
+
description: z.string().optional(),
|
|
16
21
|
status: ProjectStatus,
|
|
17
22
|
// Project-level settings
|
|
18
|
-
|
|
19
|
-
|
|
23
|
+
defaultPriority: Priority.optional(),
|
|
24
|
+
contexts: z.array(Context).optional(),
|
|
20
25
|
// Metadata
|
|
21
|
-
createdAt:
|
|
22
|
-
updatedAt:
|
|
23
|
-
|
|
26
|
+
createdAt: z.string(),
|
|
27
|
+
updatedAt: z.string(),
|
|
28
|
+
targetDate: z.string().optional(),
|
|
24
29
|
// Computed stats
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
completionPercentage: z.number().optional(),
|
|
31
|
+
criticalPathLength: z.number().optional(), // Total minutes on critical path
|
|
32
|
+
blockedTaskCount: z.number().optional(),
|
|
33
|
+
totalTasks: z.number().optional(),
|
|
34
|
+
completedTasks: z.number().optional(),
|
|
30
35
|
});
|
|
31
36
|
// Project creation input
|
|
32
|
-
export const ProjectCreateInput =
|
|
33
|
-
name:
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
37
|
+
export const ProjectCreateInput = z.object({
|
|
38
|
+
name: z.string(),
|
|
39
|
+
description: z.string().optional(),
|
|
40
|
+
defaultPriority: Priority.optional(),
|
|
41
|
+
contexts: z.array(Context).optional(),
|
|
42
|
+
targetDate: z.string().optional(),
|
|
38
43
|
});
|
|
39
44
|
// Project update input
|
|
40
|
-
export const ProjectUpdateInput =
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
export const ProjectUpdateInput = z.object({
|
|
46
|
+
name: z.string().optional(),
|
|
47
|
+
description: z.string().optional(),
|
|
48
|
+
status: ProjectStatus.optional(),
|
|
49
|
+
defaultPriority: Priority.optional(),
|
|
50
|
+
contexts: z.array(Context).optional(),
|
|
51
|
+
targetDate: z.string().optional(),
|
|
47
52
|
});
|
|
48
53
|
//# sourceMappingURL=project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":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C,MAAM,EAAE,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACtC,CAAC,CAAC;AAGH,yBAAyB;AACzB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,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;CAClC,CAAC,CAAC;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;CAClC,CAAC,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
1
2
|
/**
|
|
2
3
|
* Response Format Schema
|
|
3
4
|
*
|
|
@@ -8,8 +9,8 @@
|
|
|
8
9
|
* - standard: Common fields (7-10), balanced for most use cases
|
|
9
10
|
* - detailed: Full object, human-readable format
|
|
10
11
|
*/
|
|
11
|
-
export declare const ResponseFormat:
|
|
12
|
-
export type ResponseFormat = typeof ResponseFormat
|
|
12
|
+
export declare const ResponseFormat: z.ZodEnum<["concise", "standard", "detailed"]>;
|
|
13
|
+
export type ResponseFormat = z.infer<typeof ResponseFormat>;
|
|
13
14
|
export declare const DEFAULT_LIMIT = 20;
|
|
14
15
|
export declare const MAX_LIMIT = 100;
|
|
15
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-format.d.ts","sourceRoot":"","sources":["../../src/schemas/response-format.ts"],"names":[],"mappings":"
|
|
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,MAAM,cAAc,gDAA8C,CAAC;AAC1E,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAG5D,eAAO,MAAM,aAAa,KAAK,CAAC;AAChC,eAAO,MAAM,SAAS,MAAM,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,KAAK,EAAE,CAAC,EAAE,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED;;GAEG;AAGH,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;CAClB;AAGD,MAAM,WAAW,WAAY,SAAQ,WAAW;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAKD;;GAEG;AAGH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAGD,MAAM,WAAW,cAAe,SAAQ,cAAc;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AAGH,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAChB;AAGD,MAAM,WAAW,YAAa,SAAQ,YAAY;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB;AAED;;GAEG;AAGH,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAGD,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;CACtB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { z } from "zod";
|
|
2
2
|
/**
|
|
3
3
|
* Response Format Schema
|
|
4
4
|
*
|
|
@@ -10,7 +10,7 @@ import { type } from "arktype";
|
|
|
10
10
|
* - detailed: Full object, human-readable format
|
|
11
11
|
*/
|
|
12
12
|
// Response format options
|
|
13
|
-
export const ResponseFormat =
|
|
13
|
+
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;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"response-format.js","sourceRoot":"","sources":["../../src/schemas/response-format.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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"}
|