@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.
Files changed (167) hide show
  1. package/package.json +1 -6
  2. package/dist/algorithms/critical-path.d.ts +0 -46
  3. package/dist/algorithms/critical-path.d.ts.map +0 -1
  4. package/dist/algorithms/critical-path.js +0 -320
  5. package/dist/algorithms/critical-path.js.map +0 -1
  6. package/dist/algorithms/critical-path.test.d.ts +0 -2
  7. package/dist/algorithms/critical-path.test.d.ts.map +0 -1
  8. package/dist/algorithms/critical-path.test.js +0 -194
  9. package/dist/algorithms/critical-path.test.js.map +0 -1
  10. package/dist/algorithms/dependency-integrity.d.ts +0 -81
  11. package/dist/algorithms/dependency-integrity.d.ts.map +0 -1
  12. package/dist/algorithms/dependency-integrity.js +0 -207
  13. package/dist/algorithms/dependency-integrity.js.map +0 -1
  14. package/dist/algorithms/dependency-integrity.test.d.ts +0 -2
  15. package/dist/algorithms/dependency-integrity.test.d.ts.map +0 -1
  16. package/dist/algorithms/dependency-integrity.test.js +0 -309
  17. package/dist/algorithms/dependency-integrity.test.js.map +0 -1
  18. package/dist/algorithms/index.d.ts +0 -5
  19. package/dist/algorithms/index.d.ts.map +0 -1
  20. package/dist/algorithms/index.js +0 -5
  21. package/dist/algorithms/index.js.map +0 -1
  22. package/dist/algorithms/tech-analysis.d.ts +0 -106
  23. package/dist/algorithms/tech-analysis.d.ts.map +0 -1
  24. package/dist/algorithms/tech-analysis.js +0 -344
  25. package/dist/algorithms/tech-analysis.js.map +0 -1
  26. package/dist/algorithms/tech-analysis.test.d.ts +0 -2
  27. package/dist/algorithms/tech-analysis.test.d.ts.map +0 -1
  28. package/dist/algorithms/tech-analysis.test.js +0 -338
  29. package/dist/algorithms/tech-analysis.test.js.map +0 -1
  30. package/dist/algorithms/topological-sort.d.ts +0 -41
  31. package/dist/algorithms/topological-sort.d.ts.map +0 -1
  32. package/dist/algorithms/topological-sort.js +0 -165
  33. package/dist/algorithms/topological-sort.js.map +0 -1
  34. package/dist/algorithms/topological-sort.test.d.ts +0 -2
  35. package/dist/algorithms/topological-sort.test.d.ts.map +0 -1
  36. package/dist/algorithms/topological-sort.test.js +0 -162
  37. package/dist/algorithms/topological-sort.test.js.map +0 -1
  38. package/dist/index.d.ts +0 -4
  39. package/dist/index.d.ts.map +0 -1
  40. package/dist/index.js +0 -7
  41. package/dist/index.js.map +0 -1
  42. package/dist/schemas/inbox.d.ts +0 -55
  43. package/dist/schemas/inbox.d.ts.map +0 -1
  44. package/dist/schemas/inbox.js +0 -25
  45. package/dist/schemas/inbox.js.map +0 -1
  46. package/dist/schemas/index.d.ts +0 -7
  47. package/dist/schemas/index.d.ts.map +0 -1
  48. package/dist/schemas/index.js +0 -17
  49. package/dist/schemas/index.js.map +0 -1
  50. package/dist/schemas/project.d.ts +0 -177
  51. package/dist/schemas/project.d.ts.map +0 -1
  52. package/dist/schemas/project.js +0 -56
  53. package/dist/schemas/project.js.map +0 -1
  54. package/dist/schemas/response-format.d.ts +0 -148
  55. package/dist/schemas/response-format.d.ts.map +0 -1
  56. package/dist/schemas/response-format.js +0 -18
  57. package/dist/schemas/response-format.js.map +0 -1
  58. package/dist/schemas/response-schema.d.ts +0 -307
  59. package/dist/schemas/response-schema.d.ts.map +0 -1
  60. package/dist/schemas/response-schema.js +0 -75
  61. package/dist/schemas/response-schema.js.map +0 -1
  62. package/dist/schemas/response-schema.test.d.ts +0 -2
  63. package/dist/schemas/response-schema.test.d.ts.map +0 -1
  64. package/dist/schemas/response-schema.test.js +0 -256
  65. package/dist/schemas/response-schema.test.js.map +0 -1
  66. package/dist/schemas/state.d.ts +0 -17
  67. package/dist/schemas/state.d.ts.map +0 -1
  68. package/dist/schemas/state.js +0 -17
  69. package/dist/schemas/state.js.map +0 -1
  70. package/dist/schemas/task.d.ts +0 -881
  71. package/dist/schemas/task.d.ts.map +0 -1
  72. package/dist/schemas/task.js +0 -189
  73. package/dist/schemas/task.js.map +0 -1
  74. package/dist/schemas/view.d.ts +0 -143
  75. package/dist/schemas/view.d.ts.map +0 -1
  76. package/dist/schemas/view.js +0 -48
  77. package/dist/schemas/view.js.map +0 -1
  78. package/dist/utils/dashboard-renderer.d.ts +0 -93
  79. package/dist/utils/dashboard-renderer.d.ts.map +0 -1
  80. package/dist/utils/dashboard-renderer.js +0 -424
  81. package/dist/utils/dashboard-renderer.js.map +0 -1
  82. package/dist/utils/dashboard-renderer.test.d.ts +0 -2
  83. package/dist/utils/dashboard-renderer.test.d.ts.map +0 -1
  84. package/dist/utils/dashboard-renderer.test.js +0 -774
  85. package/dist/utils/dashboard-renderer.test.js.map +0 -1
  86. package/dist/utils/date.d.ts +0 -94
  87. package/dist/utils/date.d.ts.map +0 -1
  88. package/dist/utils/date.js +0 -323
  89. package/dist/utils/date.js.map +0 -1
  90. package/dist/utils/date.test.d.ts +0 -2
  91. package/dist/utils/date.test.d.ts.map +0 -1
  92. package/dist/utils/date.test.js +0 -276
  93. package/dist/utils/date.test.js.map +0 -1
  94. package/dist/utils/hierarchy.d.ts +0 -102
  95. package/dist/utils/hierarchy.d.ts.map +0 -1
  96. package/dist/utils/hierarchy.js +0 -236
  97. package/dist/utils/hierarchy.js.map +0 -1
  98. package/dist/utils/hierarchy.test.d.ts +0 -2
  99. package/dist/utils/hierarchy.test.d.ts.map +0 -1
  100. package/dist/utils/hierarchy.test.js +0 -436
  101. package/dist/utils/hierarchy.test.js.map +0 -1
  102. package/dist/utils/id.d.ts +0 -60
  103. package/dist/utils/id.d.ts.map +0 -1
  104. package/dist/utils/id.js +0 -118
  105. package/dist/utils/id.js.map +0 -1
  106. package/dist/utils/id.test.d.ts +0 -2
  107. package/dist/utils/id.test.d.ts.map +0 -1
  108. package/dist/utils/id.test.js +0 -193
  109. package/dist/utils/id.test.js.map +0 -1
  110. package/dist/utils/index.d.ts +0 -12
  111. package/dist/utils/index.d.ts.map +0 -1
  112. package/dist/utils/index.js +0 -34
  113. package/dist/utils/index.js.map +0 -1
  114. package/dist/utils/natural-language.d.ts +0 -57
  115. package/dist/utils/natural-language.d.ts.map +0 -1
  116. package/dist/utils/natural-language.js +0 -211
  117. package/dist/utils/natural-language.js.map +0 -1
  118. package/dist/utils/natural-language.test.d.ts +0 -2
  119. package/dist/utils/natural-language.test.d.ts.map +0 -1
  120. package/dist/utils/natural-language.test.js +0 -197
  121. package/dist/utils/natural-language.test.js.map +0 -1
  122. package/dist/utils/priority-queue.d.ts +0 -17
  123. package/dist/utils/priority-queue.d.ts.map +0 -1
  124. package/dist/utils/priority-queue.js +0 -62
  125. package/dist/utils/priority-queue.js.map +0 -1
  126. package/dist/utils/priority-queue.test.d.ts +0 -2
  127. package/dist/utils/priority-queue.test.d.ts.map +0 -1
  128. package/dist/utils/priority-queue.test.js +0 -82
  129. package/dist/utils/priority-queue.test.js.map +0 -1
  130. package/dist/utils/projection.d.ts +0 -65
  131. package/dist/utils/projection.d.ts.map +0 -1
  132. package/dist/utils/projection.js +0 -180
  133. package/dist/utils/projection.js.map +0 -1
  134. package/dist/utils/projection.test.d.ts +0 -2
  135. package/dist/utils/projection.test.d.ts.map +0 -1
  136. package/dist/utils/projection.test.js +0 -336
  137. package/dist/utils/projection.test.js.map +0 -1
  138. package/dist/utils/terminal-ui.d.ts +0 -208
  139. package/dist/utils/terminal-ui.d.ts.map +0 -1
  140. package/dist/utils/terminal-ui.js +0 -611
  141. package/dist/utils/terminal-ui.js.map +0 -1
  142. package/dist/utils/terminal-ui.test.d.ts +0 -2
  143. package/dist/utils/terminal-ui.test.d.ts.map +0 -1
  144. package/dist/utils/terminal-ui.test.js +0 -683
  145. package/dist/utils/terminal-ui.test.js.map +0 -1
  146. package/dist/utils/workspace.d.ts +0 -100
  147. package/dist/utils/workspace.d.ts.map +0 -1
  148. package/dist/utils/workspace.js +0 -173
  149. package/dist/utils/workspace.js.map +0 -1
  150. package/dist/utils/workspace.test.d.ts +0 -2
  151. package/dist/utils/workspace.test.d.ts.map +0 -1
  152. package/dist/utils/workspace.test.js +0 -97
  153. package/dist/utils/workspace.test.js.map +0 -1
  154. package/src/algorithms/critical-path.test.ts +0 -241
  155. package/src/algorithms/dependency-integrity.test.ts +0 -348
  156. package/src/algorithms/tech-analysis.test.ts +0 -413
  157. package/src/algorithms/topological-sort.test.ts +0 -190
  158. package/src/schemas/response-schema.test.ts +0 -314
  159. package/src/utils/dashboard-renderer.test.ts +0 -983
  160. package/src/utils/date.test.ts +0 -329
  161. package/src/utils/hierarchy.test.ts +0 -505
  162. package/src/utils/id.test.ts +0 -235
  163. package/src/utils/natural-language.test.ts +0 -242
  164. package/src/utils/priority-queue.test.ts +0 -103
  165. package/src/utils/projection.test.ts +0 -425
  166. package/src/utils/terminal-ui.test.ts +0 -831
  167. package/src/utils/workspace.test.ts +0 -125
@@ -1,162 +0,0 @@
1
- import { describe, test, expect } from "bun:test";
2
- import { priorityToNumber, topologicalSort, wouldCreateCycle, findDependents, findDependencies, } from "./topological-sort.js";
3
- // Helper to create mock tasks
4
- function createTask(id, priority = "medium", deps = []) {
5
- return {
6
- id,
7
- title: `Task ${id}`,
8
- status: "pending",
9
- priority: priority,
10
- workspace: "test-workspace",
11
- createdAt: new Date().toISOString(),
12
- updatedAt: new Date().toISOString(),
13
- dependencies: deps.map((depId) => ({ taskId: depId, type: "blocked_by" })),
14
- };
15
- }
16
- describe("priorityToNumber", () => {
17
- test("converts critical to 4", () => {
18
- expect(priorityToNumber("critical")).toBe(4);
19
- });
20
- test("converts high to 3", () => {
21
- expect(priorityToNumber("high")).toBe(3);
22
- });
23
- test("converts medium to 2", () => {
24
- expect(priorityToNumber("medium")).toBe(2);
25
- });
26
- test("converts low to 1", () => {
27
- expect(priorityToNumber("low")).toBe(1);
28
- });
29
- test("defaults to 2 for unknown priority", () => {
30
- expect(priorityToNumber("unknown")).toBe(2);
31
- });
32
- });
33
- describe("topologicalSort", () => {
34
- test("returns empty array for empty input", () => {
35
- const result = topologicalSort([]);
36
- expect(result).toEqual([]);
37
- });
38
- test("returns single task unchanged", () => {
39
- const tasks = [createTask("A")];
40
- const result = topologicalSort(tasks);
41
- expect(result.length).toBe(1);
42
- expect(result[0].id).toBe("A");
43
- });
44
- test("sorts by dependency order", () => {
45
- // B depends on A, so A should come first
46
- const tasks = [createTask("B", "high", ["A"]), createTask("A", "low")];
47
- const result = topologicalSort(tasks);
48
- expect(result[0].id).toBe("A");
49
- expect(result[1].id).toBe("B");
50
- });
51
- test("respects priority when no dependencies", () => {
52
- const tasks = [
53
- createTask("A", "low"),
54
- createTask("B", "critical"),
55
- createTask("C", "high"),
56
- ];
57
- const result = topologicalSort(tasks);
58
- expect(result[0].id).toBe("B"); // critical first
59
- expect(result[1].id).toBe("C"); // then high
60
- expect(result[2].id).toBe("A"); // then low
61
- });
62
- test("handles chain of dependencies", () => {
63
- // C -> B -> A (C depends on B, B depends on A)
64
- const tasks = [
65
- createTask("C", "critical", ["B"]),
66
- createTask("B", "high", ["A"]),
67
- createTask("A", "low"),
68
- ];
69
- const result = topologicalSort(tasks);
70
- expect(result.map((t) => t.id)).toEqual(["A", "B", "C"]);
71
- });
72
- test("throws on circular dependency", () => {
73
- // A -> B -> A
74
- const tasks = [createTask("A", "medium", ["B"]), createTask("B", "medium", ["A"])];
75
- expect(() => topologicalSort(tasks)).toThrow(/Circular dependency/);
76
- });
77
- test("handles diamond dependency", () => {
78
- // D depends on B and C, both depend on A
79
- const tasks = [
80
- createTask("D", "medium", ["B", "C"]),
81
- createTask("B", "high", ["A"]),
82
- createTask("C", "low", ["A"]),
83
- createTask("A", "medium"),
84
- ];
85
- const result = topologicalSort(tasks);
86
- // A must come first, D must come last
87
- expect(result[0].id).toBe("A");
88
- expect(result[3].id).toBe("D");
89
- });
90
- });
91
- describe("wouldCreateCycle", () => {
92
- test("returns false for valid dependency", () => {
93
- const tasks = [createTask("A"), createTask("B")];
94
- // Adding B blocked_by A should not create cycle
95
- expect(wouldCreateCycle(tasks, "B", "A")).toBe(false);
96
- });
97
- test("returns true for direct cycle", () => {
98
- const tasks = [createTask("A", "medium", ["B"]), createTask("B")];
99
- // B is already blocking A, so A blocking B would create cycle
100
- expect(wouldCreateCycle(tasks, "B", "A")).toBe(true);
101
- });
102
- test("returns true for indirect cycle", () => {
103
- const tasks = [
104
- createTask("A", "medium", ["B"]),
105
- createTask("B", "medium", ["C"]),
106
- createTask("C"),
107
- ];
108
- // A <- B <- C, adding C <- A would create cycle
109
- expect(wouldCreateCycle(tasks, "C", "A")).toBe(true);
110
- });
111
- });
112
- describe("findDependents", () => {
113
- test("returns empty for task with no dependents", () => {
114
- const tasks = [createTask("A"), createTask("B")];
115
- const result = findDependents(tasks, "A");
116
- expect(result).toEqual([]);
117
- });
118
- test("finds direct dependents", () => {
119
- const tasks = [
120
- createTask("A"),
121
- createTask("B", "medium", ["A"]),
122
- createTask("C", "medium", ["A"]),
123
- ];
124
- const result = findDependents(tasks, "A");
125
- expect(result.map((t) => t.id).sort()).toEqual(["B", "C"]);
126
- });
127
- test("finds transitive dependents", () => {
128
- const tasks = [
129
- createTask("A"),
130
- createTask("B", "medium", ["A"]),
131
- createTask("C", "medium", ["B"]),
132
- ];
133
- const result = findDependents(tasks, "A");
134
- expect(result.map((t) => t.id).sort()).toEqual(["B", "C"]);
135
- });
136
- });
137
- describe("findDependencies", () => {
138
- test("returns empty for task with no dependencies", () => {
139
- const tasks = [createTask("A"), createTask("B")];
140
- const result = findDependencies(tasks, "A");
141
- expect(result).toEqual([]);
142
- });
143
- test("finds direct dependencies", () => {
144
- const tasks = [
145
- createTask("A"),
146
- createTask("B"),
147
- createTask("C", "medium", ["A", "B"]),
148
- ];
149
- const result = findDependencies(tasks, "C");
150
- expect(result.map((t) => t.id).sort()).toEqual(["A", "B"]);
151
- });
152
- test("finds transitive dependencies", () => {
153
- const tasks = [
154
- createTask("A"),
155
- createTask("B", "medium", ["A"]),
156
- createTask("C", "medium", ["B"]),
157
- ];
158
- const result = findDependencies(tasks, "C");
159
- expect(result.map((t) => t.id).sort()).toEqual(["A", "B"]);
160
- });
161
- });
162
- //# sourceMappingURL=topological-sort.test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"topological-sort.test.js","sourceRoot":"","sources":["../../src/algorithms/topological-sort.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,gBAAgB,EAChB,cAAc,EACd,gBAAgB,GACjB,MAAM,uBAAuB,CAAC;AAG/B,8BAA8B;AAC9B,SAAS,UAAU,CAAC,EAAU,EAAE,WAAmB,QAAQ,EAAE,OAAiB,EAAE;IAC9E,OAAO;QACL,EAAE;QACF,KAAK,EAAE,QAAQ,EAAE,EAAE;QACnB,MAAM,EAAE,SAAS;QACjB,QAAQ,EAAE,QAA4B;QACtC,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QACnC,YAAY,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,YAAqB,EAAE,CAAC,CAAC;KACpF,CAAC;AACJ,CAAC;AAED,QAAQ,CAAC,kBAAkB,EAAE,GAAG,EAAE;IAChC,IAAI,CAAC,wBAAwB,EAAE,GAAG,EAAE;QAClC,MAAM,CAAC,gBAAgB,CAAC,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,oBAAoB,EAAE,GAAG,EAAE;QAC9B,MAAM,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC3C,CAAC,CAAC,CAAC;IAEH,IAAI,CAAC,sBAAsB,EAAE,GAAG,EAAE;QAChC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,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC;IAC7D,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/dist/index.d.ts DELETED
@@ -1,4 +0,0 @@
1
- export * from "./schemas/index.js";
2
- export * from "./algorithms/index.js";
3
- export * from "./utils/index.js";
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,oBAAoB,CAAC;AAGnC,cAAc,uBAAuB,CAAC;AAGtC,cAAc,kBAAkB,CAAC"}
package/dist/index.js DELETED
@@ -1,7 +0,0 @@
1
- // Schemas
2
- export * from "./schemas/index.js";
3
- // Algorithms
4
- export * from "./algorithms/index.js";
5
- // Utilities
6
- export * from "./utils/index.js";
7
- //# sourceMappingURL=index.js.map
package/dist/index.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,UAAU;AACV,cAAc,oBAAoB,CAAC;AAEnC,aAAa;AACb,cAAc,uBAAuB,CAAC;AAEtC,YAAY;AACZ,cAAc,kBAAkB,CAAC"}
@@ -1,55 +0,0 @@
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, {
13
- status: "pending" | "promoted" | "discarded";
14
- id: string;
15
- content: string;
16
- capturedAt: string;
17
- tags?: string[] | undefined;
18
- source?: string | undefined;
19
- promotedToTaskId?: string | undefined;
20
- }, {
21
- status: "pending" | "promoted" | "discarded";
22
- id: string;
23
- content: string;
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>;
55
- //# sourceMappingURL=inbox.d.ts.map
@@ -1 +0,0 @@
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 +0,0 @@
1
- import { z } from "zod";
2
- // Inbox item status
3
- export const InboxStatus = z.enum(["pending", "promoted", "discarded"]);
4
- // Inbox item schema - lightweight idea/memo capture
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
- status: InboxStatus,
13
- });
14
- // Inbox item creation input (minimal)
15
- export const InboxCreateInput = z.object({
16
- content: z.string(),
17
- source: z.string().optional(),
18
- tags: z.array(z.string()).optional(),
19
- });
20
- // Inbox item update input
21
- export const InboxUpdateInput = z.object({
22
- content: z.string().optional(),
23
- tags: z.array(z.string()).optional(),
24
- });
25
- //# sourceMappingURL=inbox.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"inbox.js","sourceRoot":"","sources":["../../src/schemas/inbox.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,oBAAoB;AACpB,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,UAAU,EAAE,WAAW,CAAC,CAAC,CAAC;AAGxE,oDAAoD;AACpD,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,wBAAwB;IAC7C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,gBAAgB;IACxC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,oCAAoC;IACnE,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE,EAAE,+BAA+B;IACrE,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,EAAE,sBAAsB;IAC/D,MAAM,EAAE,WAAW;CACpB,CAAC,CAAC;AAGH,sCAAsC;AACtC,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC;AAGH,0BAA0B;AAC1B,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACrC,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- export { Priority, TaskStatus, DependencyType, Dependency, TimeEstimate, Recurrence, ComplexityFactor, ComplexityAnalysis, TechArea, RiskLevel, TechStackAnalysis, Task, TaskCreateInput, TaskUpdateInput, } from "./task.js";
2
- export { SmartViewFilter, SortField, SortOrder, SmartView, BuiltInView, } from "./view.js";
3
- export { InboxStatus, InboxItem, InboxCreateInput, InboxUpdateInput, } from "./inbox.js";
4
- export { ResponseFormat, DEFAULT_LIMIT, MAX_LIMIT, type PaginatedResponse, type TaskSummary, type TaskPreview, type WorkspaceSummary, type WorkspacePreview, 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";
5
- export { ResponseType, ResponsePriority, ResponseOption, QuestionResponse, SuggestionResponse, ConfirmationResponse, AgentResponse, GenerateResponseInput, } from "./response-schema.js";
6
- export { State, DEFAULT_STATE } from "./state.js";
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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,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,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,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,aAAa,EACb,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAG9B,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -1,17 +0,0 @@
1
- // Task schemas
2
- export { Priority, TaskStatus, DependencyType, Dependency, TimeEstimate, Recurrence,
3
- // Analysis schemas
4
- ComplexityFactor, ComplexityAnalysis, TechArea, RiskLevel, TechStackAnalysis,
5
- // Core schemas
6
- Task, TaskCreateInput, TaskUpdateInput, } from "./task.js";
7
- // View schemas
8
- export { SmartViewFilter, SortField, SortOrder, SmartView, BuiltInView, } from "./view.js";
9
- // Inbox schemas
10
- export { InboxStatus, InboxItem, InboxCreateInput, InboxUpdateInput, } from "./inbox.js";
11
- // Response format schemas (token optimization)
12
- export { ResponseFormat, DEFAULT_LIMIT, MAX_LIMIT, } from "./response-format.js";
13
- // Response schema (agent interaction)
14
- export { ResponseType, ResponsePriority, ResponseOption, QuestionResponse, SuggestionResponse, ConfirmationResponse, AgentResponse, GenerateResponseInput, } from "./response-schema.js";
15
- // State schema (git branch, active tag)
16
- export { State, DEFAULT_STATE } from "./state.js";
17
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,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,EACpB,aAAa,EACb,qBAAqB,GACtB,MAAM,sBAAsB,CAAC;AAE9B,wCAAwC;AACxC,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
@@ -1,177 +0,0 @@
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, {
9
- name: string;
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
- 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
- id: string;
48
- status: "completed" | "active" | "on_hold" | "archived";
49
- createdAt: string;
50
- updatedAt: string;
51
- name: string;
52
- description?: string | undefined;
53
- contexts?: {
54
- name: string;
55
- description?: string | undefined;
56
- color?: string | undefined;
57
- }[] | undefined;
58
- sortOrder?: number | undefined;
59
- defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
60
- targetDate?: string | undefined;
61
- completionPercentage?: number | undefined;
62
- criticalPathLength?: number | undefined;
63
- blockedTaskCount?: number | undefined;
64
- totalTasks?: number | undefined;
65
- completedTasks?: number | undefined;
66
- }, {
67
- id: string;
68
- status: "completed" | "active" | "on_hold" | "archived";
69
- createdAt: string;
70
- updatedAt: string;
71
- name: string;
72
- description?: string | undefined;
73
- contexts?: {
74
- name: string;
75
- description?: string | undefined;
76
- color?: string | undefined;
77
- }[] | undefined;
78
- sortOrder?: number | undefined;
79
- defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
80
- targetDate?: string | 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
- description?: string | undefined;
99
- color?: string | undefined;
100
- }, {
101
- name: string;
102
- description?: string | undefined;
103
- color?: 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
- contexts?: {
111
- name: string;
112
- description?: string | undefined;
113
- color?: string | undefined;
114
- }[] | undefined;
115
- sortOrder?: number | undefined;
116
- defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
117
- targetDate?: string | undefined;
118
- }, {
119
- name: string;
120
- description?: string | undefined;
121
- contexts?: {
122
- name: string;
123
- description?: string | undefined;
124
- color?: string | undefined;
125
- }[] | undefined;
126
- sortOrder?: number | undefined;
127
- defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
128
- targetDate?: string | 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
- description?: string | undefined;
143
- color?: string | undefined;
144
- }, {
145
- name: string;
146
- description?: string | undefined;
147
- color?: string | undefined;
148
- }>, "many">>;
149
- targetDate: z.ZodOptional<z.ZodString>;
150
- sortOrder: z.ZodOptional<z.ZodNumber>;
151
- }, "strip", z.ZodTypeAny, {
152
- description?: string | undefined;
153
- status?: "completed" | "active" | "on_hold" | "archived" | undefined;
154
- contexts?: {
155
- name: string;
156
- description?: string | undefined;
157
- color?: string | undefined;
158
- }[] | undefined;
159
- sortOrder?: number | undefined;
160
- name?: string | undefined;
161
- defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
162
- targetDate?: string | undefined;
163
- }, {
164
- description?: string | undefined;
165
- status?: "completed" | "active" | "on_hold" | "archived" | undefined;
166
- contexts?: {
167
- name: string;
168
- description?: string | undefined;
169
- color?: string | undefined;
170
- }[] | undefined;
171
- sortOrder?: number | undefined;
172
- name?: string | undefined;
173
- defaultPriority?: "critical" | "high" | "medium" | "low" | undefined;
174
- targetDate?: string | undefined;
175
- }>;
176
- export type ProjectUpdateInput = z.infer<typeof ProjectUpdateInput>;
177
- //# sourceMappingURL=project.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,56 +0,0 @@
1
- import { z } from "zod";
2
- import { Priority } from "./task.js";
3
- // Project status
4
- export const ProjectStatus = z.enum([
5
- "active",
6
- "on_hold",
7
- "completed",
8
- "archived",
9
- ]);
10
- // Context definition
11
- export const Context = z.object({
12
- name: z.string(),
13
- color: z.string().optional(), // hex color
14
- description: z.string().optional(),
15
- });
16
- // Project schema
17
- export const Project = z.object({
18
- id: z.string(),
19
- name: z.string(),
20
- description: z.string().optional(),
21
- status: ProjectStatus,
22
- // Project-level settings
23
- defaultPriority: Priority.optional(),
24
- contexts: z.array(Context).optional(),
25
- // Metadata
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)
30
- // Computed stats
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(),
36
- });
37
- // Project creation input
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
45
- });
46
- // Project update input
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(),
55
- });
56
- //# sourceMappingURL=project.js.map
@@ -1 +0,0 @@
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;IAC9B,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,MAAM,EAAE,aAAa;IAErB,yBAAyB;IACzB,eAAe,EAAE,QAAQ,CAAC,QAAQ,EAAE;IACpC,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE;IAErC,WAAW;IACX,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EA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