@task-mcp/shared 1.0.6 → 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.
Files changed (41) hide show
  1. package/dist/schemas/inbox.d.ts +49 -18
  2. package/dist/schemas/inbox.d.ts.map +1 -1
  3. package/dist/schemas/inbox.js +16 -16
  4. package/dist/schemas/inbox.js.map +1 -1
  5. package/dist/schemas/index.d.ts +2 -1
  6. package/dist/schemas/index.d.ts.map +1 -1
  7. package/dist/schemas/index.js +2 -0
  8. package/dist/schemas/index.js.map +1 -1
  9. package/dist/schemas/project.d.ts +164 -42
  10. package/dist/schemas/project.d.ts.map +1 -1
  11. package/dist/schemas/project.js +41 -33
  12. package/dist/schemas/project.js.map +1 -1
  13. package/dist/schemas/response-format.d.ts +76 -2
  14. package/dist/schemas/response-format.d.ts.map +1 -1
  15. package/dist/schemas/response-format.js +3 -2
  16. package/dist/schemas/response-format.js.map +1 -1
  17. package/dist/schemas/response-schema.d.ts +307 -0
  18. package/dist/schemas/response-schema.d.ts.map +1 -0
  19. package/dist/schemas/response-schema.js +75 -0
  20. package/dist/schemas/response-schema.js.map +1 -0
  21. package/dist/schemas/response-schema.test.d.ts +2 -0
  22. package/dist/schemas/response-schema.test.d.ts.map +1 -0
  23. package/dist/schemas/response-schema.test.js +256 -0
  24. package/dist/schemas/response-schema.test.js.map +1 -0
  25. package/dist/schemas/task.d.ts +588 -147
  26. package/dist/schemas/task.d.ts.map +1 -1
  27. package/dist/schemas/task.js +114 -88
  28. package/dist/schemas/task.js.map +1 -1
  29. package/dist/schemas/view.d.ts +128 -37
  30. package/dist/schemas/view.d.ts.map +1 -1
  31. package/dist/schemas/view.js +38 -24
  32. package/dist/schemas/view.js.map +1 -1
  33. package/package.json +2 -2
  34. package/src/schemas/inbox.ts +20 -20
  35. package/src/schemas/index.ts +23 -0
  36. package/src/schemas/project.ts +46 -40
  37. package/src/schemas/response-format.ts +99 -3
  38. package/src/schemas/response-schema.test.ts +314 -0
  39. package/src/schemas/response-schema.ts +92 -0
  40. package/src/schemas/task.ts +128 -110
  41. package/src/schemas/view.ts +43 -33
@@ -1,24 +1,55 @@
1
- export declare const InboxStatus: import("arktype/internal/methods/string.ts").StringType<"pending" | "promoted" | "discarded", {}>;
2
- export type InboxStatus = typeof InboxStatus.infer;
3
- export declare const InboxItem: import("arktype/internal/methods/object.ts").ObjectType<{
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
- source?: string;
16
- tags?: string[];
17
- }, {}>;
18
- export type InboxCreateInput = typeof InboxCreateInput.infer;
19
- export declare const InboxUpdateInput: import("arktype/internal/methods/object.ts").ObjectType<{
20
- content?: string;
21
- tags?: string[];
22
- }, {}>;
23
- export type InboxUpdateInput = typeof InboxUpdateInput.infer;
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":"AAGA,eAAO,MAAM,WAAW,mGAA+C,CAAC;AACxE,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,KAAK,CAAC;AAGnD,eAAO,MAAM,SAAS;;;;;;;;MAQpB,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,KAAK,CAAC;AAG/C,eAAO,MAAM,gBAAgB;;;;MAI3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,KAAK,CAAC;AAG7D,eAAO,MAAM,gBAAgB;;;MAG3B,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,KAAK,CAAC"}
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"}
@@ -1,25 +1,25 @@
1
- import { type } from "arktype";
1
+ import { z } from "zod";
2
2
  // Inbox item status
3
- export const InboxStatus = type("'pending' | 'promoted' | 'discarded'");
3
+ export const InboxStatus = z.enum(["pending", "promoted", "discarded"]);
4
4
  // Inbox item schema - lightweight idea/memo capture
5
- export const InboxItem = type({
6
- id: "string",
7
- content: "string", // The memo/idea content
8
- capturedAt: "string", // ISO timestamp
9
- "source?": "string", // Origin: 'cli', 'mcp', 'api', etc.
10
- "tags?": "string[]", // Simple tags for organization
11
- "promotedToTaskId?": "string", // Task ID if promoted
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 = type({
16
- content: "string",
17
- "source?": "string",
18
- "tags?": "string[]",
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 = type({
22
- "content?": "string",
23
- "tags?": "string[]",
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,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,oBAAoB;AACpB,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC,sCAAsC,CAAC,CAAC;AAGxE,oDAAoD;AACpD,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC;IAC5B,EAAE,EAAE,QAAQ;IACZ,OAAO,EAAE,QAAQ,EAAE,wBAAwB;IAC3C,UAAU,EAAE,QAAQ,EAAE,gBAAgB;IACtC,SAAS,EAAE,QAAQ,EAAE,oCAAoC;IACzD,OAAO,EAAE,UAAU,EAAE,+BAA+B;IACpD,mBAAmB,EAAE,QAAQ,EAAE,sBAAsB;IACrD,MAAM,EAAE,WAAW;CACpB,CAAC,CAAC;AAGH,sCAAsC;AACtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;IACnC,OAAO,EAAE,QAAQ;IACjB,SAAS,EAAE,QAAQ;IACnB,OAAO,EAAE,UAAU;CACpB,CAAC,CAAC;AAGH,0BAA0B;AAC1B,MAAM,CAAC,MAAM,gBAAgB,GAAG,IAAI,CAAC;IACnC,UAAU,EAAE,QAAQ;IACpB,OAAO,EAAE,UAAU;CACpB,CAAC,CAAC"}
1
+ {"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE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,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"}
@@ -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,GAUV,MAAM,sBAAsB,CAAC"}
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"}
@@ -1,55 +1,177 @@
1
- export declare const ProjectStatus: import("arktype/internal/methods/string.ts").StringType<"completed" | "active" | "on_hold" | "archived", {}>;
2
- export type ProjectStatus = typeof ProjectStatus.infer;
3
- export declare const Context: import("arktype/internal/methods/object.ts").ObjectType<{
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
- color?: string;
6
- description?: string;
7
- }, {}>;
8
- export type Context = typeof Context.infer;
9
- export declare const Project: import("arktype/internal/methods/object.ts").ObjectType<{
10
+ color?: string | undefined;
11
+ description?: string | undefined;
12
+ }, {
13
+ name: string;
14
+ color?: string | undefined;
15
+ description?: 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
+ color?: string | undefined;
31
+ description?: string | undefined;
32
+ }, {
33
+ name: string;
34
+ color?: string | undefined;
35
+ description?: string | undefined;
36
+ }>, "many">>;
37
+ createdAt: z.ZodString;
38
+ updatedAt: z.ZodString;
39
+ targetDate: z.ZodOptional<z.ZodString>;
40
+ sortOrder: z.ZodOptional<z.ZodNumber>;
41
+ completionPercentage: z.ZodOptional<z.ZodNumber>;
42
+ criticalPathLength: z.ZodOptional<z.ZodNumber>;
43
+ blockedTaskCount: z.ZodOptional<z.ZodNumber>;
44
+ totalTasks: z.ZodOptional<z.ZodNumber>;
45
+ completedTasks: z.ZodOptional<z.ZodNumber>;
46
+ }, "strip", z.ZodTypeAny, {
47
+ name: string;
48
+ status: "active" | "on_hold" | "completed" | "archived";
10
49
  id: string;
50
+ createdAt: string;
51
+ updatedAt: string;
52
+ description?: string | undefined;
53
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
54
+ contexts?: {
55
+ name: string;
56
+ color?: string | undefined;
57
+ description?: string | undefined;
58
+ }[] | undefined;
59
+ targetDate?: string | undefined;
60
+ sortOrder?: number | undefined;
61
+ completionPercentage?: number | undefined;
62
+ criticalPathLength?: number | undefined;
63
+ blockedTaskCount?: number | undefined;
64
+ totalTasks?: number | undefined;
65
+ completedTasks?: number | undefined;
66
+ }, {
11
67
  name: string;
12
- status: "completed" | "active" | "on_hold" | "archived";
68
+ status: "active" | "on_hold" | "completed" | "archived";
69
+ id: string;
13
70
  createdAt: string;
14
71
  updatedAt: string;
15
- description?: string;
16
- defaultPriority?: "critical" | "high" | "medium" | "low";
72
+ description?: string | undefined;
73
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
17
74
  contexts?: {
18
75
  name: string;
19
- color?: string;
20
- description?: string;
21
- }[];
22
- targetDate?: string;
23
- completionPercentage?: number;
24
- criticalPathLength?: number;
25
- blockedTaskCount?: number;
26
- totalTasks?: number;
27
- completedTasks?: number;
28
- }, {}>;
29
- export type Project = typeof Project.infer;
30
- export declare const ProjectCreateInput: import("arktype/internal/methods/object.ts").ObjectType<{
76
+ color?: string | undefined;
77
+ description?: string | undefined;
78
+ }[] | undefined;
79
+ targetDate?: string | undefined;
80
+ sortOrder?: number | undefined;
81
+ completionPercentage?: number | undefined;
82
+ criticalPathLength?: number | undefined;
83
+ blockedTaskCount?: number | undefined;
84
+ totalTasks?: number | undefined;
85
+ completedTasks?: number | undefined;
86
+ }>;
87
+ export type Project = z.infer<typeof Project>;
88
+ export declare const ProjectCreateInput: z.ZodObject<{
89
+ name: z.ZodString;
90
+ description: z.ZodOptional<z.ZodString>;
91
+ defaultPriority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
92
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
93
+ name: z.ZodString;
94
+ color: z.ZodOptional<z.ZodString>;
95
+ description: z.ZodOptional<z.ZodString>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ name: string;
98
+ color?: string | undefined;
99
+ description?: string | undefined;
100
+ }, {
101
+ name: string;
102
+ color?: string | undefined;
103
+ description?: string | undefined;
104
+ }>, "many">>;
105
+ targetDate: z.ZodOptional<z.ZodString>;
106
+ sortOrder: z.ZodOptional<z.ZodNumber>;
107
+ }, "strip", z.ZodTypeAny, {
108
+ name: string;
109
+ description?: string | undefined;
110
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
111
+ contexts?: {
112
+ name: string;
113
+ color?: string | undefined;
114
+ description?: string | undefined;
115
+ }[] | undefined;
116
+ targetDate?: string | undefined;
117
+ sortOrder?: number | undefined;
118
+ }, {
31
119
  name: string;
32
- description?: string;
33
- defaultPriority?: "critical" | "high" | "medium" | "low";
120
+ description?: string | undefined;
121
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
122
+ contexts?: {
123
+ name: string;
124
+ color?: string | undefined;
125
+ description?: string | undefined;
126
+ }[] | undefined;
127
+ targetDate?: string | undefined;
128
+ sortOrder?: number | undefined;
129
+ }>;
130
+ export type ProjectCreateInput = z.infer<typeof ProjectCreateInput>;
131
+ export declare const ProjectUpdateInput: z.ZodObject<{
132
+ name: z.ZodOptional<z.ZodString>;
133
+ description: z.ZodOptional<z.ZodString>;
134
+ status: z.ZodOptional<z.ZodEnum<["active", "on_hold", "completed", "archived"]>>;
135
+ defaultPriority: z.ZodOptional<z.ZodEnum<["critical", "high", "medium", "low"]>>;
136
+ contexts: z.ZodOptional<z.ZodArray<z.ZodObject<{
137
+ name: z.ZodString;
138
+ color: z.ZodOptional<z.ZodString>;
139
+ description: z.ZodOptional<z.ZodString>;
140
+ }, "strip", z.ZodTypeAny, {
141
+ name: string;
142
+ color?: string | undefined;
143
+ description?: string | undefined;
144
+ }, {
145
+ name: string;
146
+ color?: string | undefined;
147
+ description?: string | undefined;
148
+ }>, "many">>;
149
+ targetDate: z.ZodOptional<z.ZodString>;
150
+ sortOrder: z.ZodOptional<z.ZodNumber>;
151
+ }, "strip", z.ZodTypeAny, {
152
+ name?: string | undefined;
153
+ description?: string | undefined;
154
+ status?: "active" | "on_hold" | "completed" | "archived" | undefined;
155
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
34
156
  contexts?: {
35
157
  name: string;
36
- color?: string;
37
- description?: string;
38
- }[];
39
- targetDate?: string;
40
- }, {}>;
41
- export type ProjectCreateInput = typeof ProjectCreateInput.infer;
42
- export declare const ProjectUpdateInput: import("arktype/internal/methods/object.ts").ObjectType<{
43
- name?: string;
44
- description?: string;
45
- status?: "completed" | "active" | "on_hold" | "archived";
46
- defaultPriority?: "critical" | "high" | "medium" | "low";
158
+ color?: string | undefined;
159
+ description?: string | undefined;
160
+ }[] | undefined;
161
+ targetDate?: string | undefined;
162
+ sortOrder?: number | undefined;
163
+ }, {
164
+ name?: string | undefined;
165
+ description?: string | undefined;
166
+ status?: "active" | "on_hold" | "completed" | "archived" | undefined;
167
+ defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
47
168
  contexts?: {
48
169
  name: string;
49
- color?: string;
50
- description?: string;
51
- }[];
52
- targetDate?: string;
53
- }, {}>;
54
- export type ProjectUpdateInput = typeof ProjectUpdateInput.infer;
170
+ color?: string | undefined;
171
+ description?: string | undefined;
172
+ }[] | undefined;
173
+ targetDate?: string | undefined;
174
+ sortOrder?: number | undefined;
175
+ }>;
176
+ export type ProjectUpdateInput = z.infer<typeof ProjectUpdateInput>;
55
177
  //# sourceMappingURL=project.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,8GAEzB,CAAC;AACF,MAAM,MAAM,aAAa,GAAG,OAAO,aAAa,CAAC,KAAK,CAAC;AAGvD,eAAO,MAAM,OAAO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;;;;;;;;;;EAQ7B,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
@@ -1,48 +1,56 @@
1
- import { type } from "arktype";
1
+ import { z } from "zod";
2
2
  import { Priority } from "./task.js";
3
3
  // Project status
4
- export const ProjectStatus = type("'active' | 'on_hold' | 'completed' | 'archived'");
4
+ export const ProjectStatus = z.enum([
5
+ "active",
6
+ "on_hold",
7
+ "completed",
8
+ "archived",
9
+ ]);
5
10
  // Context definition
6
- export const Context = type({
7
- name: "string",
8
- "color?": "string", // hex color
9
- "description?": "string",
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 = type({
13
- id: "string",
14
- name: "string",
15
- "description?": "string",
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
- "defaultPriority?": Priority,
19
- "contexts?": Context.array(),
23
+ defaultPriority: Priority.optional(),
24
+ contexts: z.array(Context).optional(),
20
25
  // Metadata
21
- createdAt: "string",
22
- updatedAt: "string",
23
- "targetDate?": "string",
26
+ createdAt: z.string(),
27
+ updatedAt: z.string(),
28
+ targetDate: z.string().optional(),
29
+ sortOrder: z.number().optional(), // User-defined display order (auto-assigned if not specified)
24
30
  // Computed stats
25
- "completionPercentage?": "number",
26
- "criticalPathLength?": "number", // Total minutes on critical path
27
- "blockedTaskCount?": "number",
28
- "totalTasks?": "number",
29
- "completedTasks?": "number",
31
+ completionPercentage: z.number().optional(),
32
+ criticalPathLength: z.number().optional(), // Total minutes on critical path
33
+ blockedTaskCount: z.number().optional(),
34
+ totalTasks: z.number().optional(),
35
+ completedTasks: z.number().optional(),
30
36
  });
31
37
  // Project creation input
32
- export const ProjectCreateInput = type({
33
- name: "string",
34
- "description?": "string",
35
- "defaultPriority?": Priority,
36
- "contexts?": Context.array(),
37
- "targetDate?": "string",
38
+ export const ProjectCreateInput = z.object({
39
+ name: z.string(),
40
+ description: z.string().optional(),
41
+ defaultPriority: Priority.optional(),
42
+ contexts: z.array(Context).optional(),
43
+ targetDate: z.string().optional(),
44
+ sortOrder: z.number().optional(), // Auto-assigned if not specified
38
45
  });
39
46
  // Project update input
40
- export const ProjectUpdateInput = type({
41
- "name?": "string",
42
- "description?": "string",
43
- "status?": ProjectStatus,
44
- "defaultPriority?": Priority,
45
- "contexts?": Context.array(),
46
- "targetDate?": "string",
47
+ export const ProjectUpdateInput = z.object({
48
+ name: z.string().optional(),
49
+ description: z.string().optional(),
50
+ status: ProjectStatus.optional(),
51
+ defaultPriority: Priority.optional(),
52
+ contexts: z.array(Context).optional(),
53
+ targetDate: z.string().optional(),
54
+ sortOrder: z.number().optional(),
47
55
  });
48
56
  //# sourceMappingURL=project.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"project.js","sourceRoot":"","sources":["../../src/schemas/project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,iBAAiB;AACjB,MAAM,CAAC,MAAM,aAAa,GAAG,IAAI,CAC/B,iDAAiD,CAClD,CAAC;AAGF,qBAAqB;AACrB,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC;IAC1B,IAAI,EAAE,QAAQ;IACd,QAAQ,EAAE,QAAQ,EAAE,YAAY;IAChC,cAAc,EAAE,QAAQ;CACzB,CAAC,CAAC;AAGH,iBAAiB;AACjB,MAAM,CAAC,MAAM,OAAO,GAAG,IAAI,CAAC;IAC1B,EAAE,EAAE,QAAQ;IACZ,IAAI,EAAE,QAAQ;IACd,cAAc,EAAE,QAAQ;IACxB,MAAM,EAAE,aAAa;IAErB,yBAAyB;IACzB,kBAAkB,EAAE,QAAQ;IAC5B,WAAW,EAAE,OAAO,CAAC,K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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;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,iCAAiC;CACpE,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;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACjC,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: import("arktype/internal/methods/string.ts").StringType<"concise" | "standard" | "detailed", {}>;
12
- export type ResponseFormat = typeof ResponseFormat.infer;
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
  /**
@@ -76,4 +77,77 @@ export interface BottleneckSummary {
76
77
  title: string;
77
78
  blockedCount: number;
78
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
+ }
79
153
  //# sourceMappingURL=response-format.d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rC,UAAU,EAAE,0BAA0B,CAAC;IACvC,eAAe,EAAE,wBAAwB,CAAC;IAC1C,QAAQ,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"}
@@ -1,4 +1,4 @@
1
- import { type } from "arktype";
1
+ import { z } from "zod";
2
2
  /**
3
3
  * Response Format Schema
4
4
  *
@@ -10,8 +10,9 @@ import { type } from "arktype";
10
10
  * - detailed: Full object, human-readable format
11
11
  */
12
12
  // Response format options
13
- export const ResponseFormat = type("'concise' | 'standard' | 'detailed'");
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;
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,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B;;;;;;;;;GASG;AAEH,0BAA0B;AAC1B,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,CAAC,qCAAqC,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"}