@a5c-ai/tasks-adapter 5.1.1-staging.00ceebd28cf2

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 (202) hide show
  1. package/README.md +125 -0
  2. package/dist/auth/forge-interface.d.ts +67 -0
  3. package/dist/auth/forge-interface.d.ts.map +1 -0
  4. package/dist/auth/forge-interface.js +69 -0
  5. package/dist/auth/github-app.d.ts +64 -0
  6. package/dist/auth/github-app.d.ts.map +1 -0
  7. package/dist/auth/github-app.js +141 -0
  8. package/dist/auth/github-oauth.d.ts +27 -0
  9. package/dist/auth/github-oauth.d.ts.map +1 -0
  10. package/dist/auth/github-oauth.js +89 -0
  11. package/dist/auth/index.d.ts +8 -0
  12. package/dist/auth/index.d.ts.map +1 -0
  13. package/dist/auth/index.js +14 -0
  14. package/dist/auth/jwt.d.ts +24 -0
  15. package/dist/auth/jwt.d.ts.map +1 -0
  16. package/dist/auth/jwt.js +43 -0
  17. package/dist/auth/middleware.d.ts +22 -0
  18. package/dist/auth/middleware.d.ts.map +1 -0
  19. package/dist/auth/middleware.js +36 -0
  20. package/dist/auth/ssh-keys.d.ts +21 -0
  21. package/dist/auth/ssh-keys.d.ts.map +1 -0
  22. package/dist/auth/ssh-keys.js +59 -0
  23. package/dist/auth/types.d.ts +165 -0
  24. package/dist/auth/types.d.ts.map +1 -0
  25. package/dist/auth/types.js +53 -0
  26. package/dist/backend.d.ts +248 -0
  27. package/dist/backend.d.ts.map +1 -0
  28. package/dist/backend.js +40 -0
  29. package/dist/backends/adapters.d.ts +99 -0
  30. package/dist/backends/adapters.d.ts.map +1 -0
  31. package/dist/backends/adapters.js +308 -0
  32. package/dist/backends/external-tracker.d.ts +133 -0
  33. package/dist/backends/external-tracker.d.ts.map +1 -0
  34. package/dist/backends/external-tracker.js +731 -0
  35. package/dist/backends/git-native.d.ts +69 -0
  36. package/dist/backends/git-native.d.ts.map +1 -0
  37. package/dist/backends/git-native.js +797 -0
  38. package/dist/backends/github-issues.d.ts +78 -0
  39. package/dist/backends/github-issues.d.ts.map +1 -0
  40. package/dist/backends/github-issues.js +806 -0
  41. package/dist/backends/index.d.ts +52 -0
  42. package/dist/backends/index.d.ts.map +1 -0
  43. package/dist/backends/index.js +151 -0
  44. package/dist/backends/server.d.ts +42 -0
  45. package/dist/backends/server.d.ts.map +1 -0
  46. package/dist/backends/server.js +305 -0
  47. package/dist/cli/auth-store.d.ts +49 -0
  48. package/dist/cli/auth-store.d.ts.map +1 -0
  49. package/dist/cli/auth-store.js +150 -0
  50. package/dist/cli/client-config.d.ts +10 -0
  51. package/dist/cli/client-config.d.ts.map +1 -0
  52. package/dist/cli/client-config.js +87 -0
  53. package/dist/cli/commands/ask.d.ts +3 -0
  54. package/dist/cli/commands/ask.d.ts.map +1 -0
  55. package/dist/cli/commands/ask.js +171 -0
  56. package/dist/cli/commands/auth.d.ts +3 -0
  57. package/dist/cli/commands/auth.d.ts.map +1 -0
  58. package/dist/cli/commands/auth.js +510 -0
  59. package/dist/cli/commands/breakpoints.d.ts +3 -0
  60. package/dist/cli/commands/breakpoints.d.ts.map +1 -0
  61. package/dist/cli/commands/breakpoints.js +311 -0
  62. package/dist/cli/commands/responder-loop.d.ts +3 -0
  63. package/dist/cli/commands/responder-loop.d.ts.map +1 -0
  64. package/dist/cli/commands/responder-loop.js +78 -0
  65. package/dist/cli/commands/responders.d.ts +3 -0
  66. package/dist/cli/commands/responders.d.ts.map +1 -0
  67. package/dist/cli/commands/responders.js +157 -0
  68. package/dist/cli/commands/rules.d.ts +3 -0
  69. package/dist/cli/commands/rules.d.ts.map +1 -0
  70. package/dist/cli/commands/rules.js +105 -0
  71. package/dist/cli/commands/server.d.ts +3 -0
  72. package/dist/cli/commands/server.d.ts.map +1 -0
  73. package/dist/cli/commands/server.js +34 -0
  74. package/dist/cli/commands/tasks.d.ts +3 -0
  75. package/dist/cli/commands/tasks.d.ts.map +1 -0
  76. package/dist/cli/commands/tasks.js +281 -0
  77. package/dist/cli/commands/templates.d.ts +3 -0
  78. package/dist/cli/commands/templates.d.ts.map +1 -0
  79. package/dist/cli/commands/templates.js +100 -0
  80. package/dist/cli/index.d.ts +4 -0
  81. package/dist/cli/index.d.ts.map +1 -0
  82. package/dist/cli/index.js +9 -0
  83. package/dist/cli/output.d.ts +26 -0
  84. package/dist/cli/output.d.ts.map +1 -0
  85. package/dist/cli/output.js +143 -0
  86. package/dist/cli/program.d.ts +6 -0
  87. package/dist/cli/program.d.ts.map +1 -0
  88. package/dist/cli/program.js +38 -0
  89. package/dist/cli/tasks-adapter.d.ts +3 -0
  90. package/dist/cli/tasks-adapter.d.ts.map +1 -0
  91. package/dist/cli/tasks-adapter.js +4 -0
  92. package/dist/client/answer-poller.d.ts +52 -0
  93. package/dist/client/answer-poller.d.ts.map +1 -0
  94. package/dist/client/answer-poller.js +200 -0
  95. package/dist/client/auth-client.d.ts +200 -0
  96. package/dist/client/auth-client.d.ts.map +1 -0
  97. package/dist/client/auth-client.js +309 -0
  98. package/dist/client/breakpoint-router.d.ts +45 -0
  99. package/dist/client/breakpoint-router.d.ts.map +1 -0
  100. package/dist/client/breakpoint-router.js +45 -0
  101. package/dist/client/index.d.ts +17 -0
  102. package/dist/client/index.d.ts.map +1 -0
  103. package/dist/client/index.js +16 -0
  104. package/dist/client/profile-validator.d.ts +34 -0
  105. package/dist/client/profile-validator.d.ts.map +1 -0
  106. package/dist/client/profile-validator.js +89 -0
  107. package/dist/client/responder-client.d.ts +39 -0
  108. package/dist/client/responder-client.d.ts.map +1 -0
  109. package/dist/client/responder-client.js +72 -0
  110. package/dist/client/responder-matcher.d.ts +49 -0
  111. package/dist/client/responder-matcher.d.ts.map +1 -0
  112. package/dist/client/responder-matcher.js +226 -0
  113. package/dist/client/server-client.d.ts +124 -0
  114. package/dist/client/server-client.d.ts.map +1 -0
  115. package/dist/client/server-client.js +266 -0
  116. package/dist/client/timeout-manager.d.ts +47 -0
  117. package/dist/client/timeout-manager.d.ts.map +1 -0
  118. package/dist/client/timeout-manager.js +77 -0
  119. package/dist/config.d.ts +20 -0
  120. package/dist/config.d.ts.map +1 -0
  121. package/dist/config.js +93 -0
  122. package/dist/harness/index.d.ts +4 -0
  123. package/dist/harness/index.d.ts.map +1 -0
  124. package/dist/harness/index.js +2 -0
  125. package/dist/harness/interaction-provider.d.ts +71 -0
  126. package/dist/harness/interaction-provider.d.ts.map +1 -0
  127. package/dist/harness/interaction-provider.js +124 -0
  128. package/dist/harness/routing-rules.d.ts +7 -0
  129. package/dist/harness/routing-rules.d.ts.map +1 -0
  130. package/dist/harness/routing-rules.js +37 -0
  131. package/dist/index.d.ts +29 -0
  132. package/dist/index.d.ts.map +1 -0
  133. package/dist/index.js +33 -0
  134. package/dist/mcp/backend-resolver.d.ts +43 -0
  135. package/dist/mcp/backend-resolver.d.ts.map +1 -0
  136. package/dist/mcp/backend-resolver.js +111 -0
  137. package/dist/mcp/http-transport.d.ts +37 -0
  138. package/dist/mcp/http-transport.d.ts.map +1 -0
  139. package/dist/mcp/http-transport.js +103 -0
  140. package/dist/mcp/index.d.ts +16 -0
  141. package/dist/mcp/index.d.ts.map +1 -0
  142. package/dist/mcp/index.js +12 -0
  143. package/dist/mcp/server.d.ts +20 -0
  144. package/dist/mcp/server.d.ts.map +1 -0
  145. package/dist/mcp/server.js +259 -0
  146. package/dist/mcp/tools/answer-breakpoint.d.ts +32 -0
  147. package/dist/mcp/tools/answer-breakpoint.d.ts.map +1 -0
  148. package/dist/mcp/tools/answer-breakpoint.js +45 -0
  149. package/dist/mcp/tools/ask-breakpoint.d.ts +58 -0
  150. package/dist/mcp/tools/ask-breakpoint.d.ts.map +1 -0
  151. package/dist/mcp/tools/ask-breakpoint.js +78 -0
  152. package/dist/mcp/tools/check-status.d.ts +16 -0
  153. package/dist/mcp/tools/check-status.d.ts.map +1 -0
  154. package/dist/mcp/tools/check-status.js +18 -0
  155. package/dist/mcp/tools/claim-breakpoint.d.ts +18 -0
  156. package/dist/mcp/tools/claim-breakpoint.d.ts.map +1 -0
  157. package/dist/mcp/tools/claim-breakpoint.js +28 -0
  158. package/dist/mcp/tools/list-breakpoints.d.ts +16 -0
  159. package/dist/mcp/tools/list-breakpoints.d.ts.map +1 -0
  160. package/dist/mcp/tools/list-breakpoints.js +14 -0
  161. package/dist/mcp/tools/list-responders.d.ts +18 -0
  162. package/dist/mcp/tools/list-responders.d.ts.map +1 -0
  163. package/dist/mcp/tools/list-responders.js +37 -0
  164. package/dist/mcp/tools/native-tasks.d.ts +270 -0
  165. package/dist/mcp/tools/native-tasks.d.ts.map +1 -0
  166. package/dist/mcp/tools/native-tasks.js +481 -0
  167. package/dist/mcp/tools/poll-breakpoints.d.ts +18 -0
  168. package/dist/mcp/tools/poll-breakpoints.d.ts.map +1 -0
  169. package/dist/mcp/tools/poll-breakpoints.js +36 -0
  170. package/dist/mcp/tools/verify-answer.d.ts +16 -0
  171. package/dist/mcp/tools/verify-answer.d.ts.map +1 -0
  172. package/dist/mcp/tools/verify-answer.js +38 -0
  173. package/dist/proven/index.d.ts +5 -0
  174. package/dist/proven/index.d.ts.map +1 -0
  175. package/dist/proven/index.js +3 -0
  176. package/dist/proven/keys.d.ts +33 -0
  177. package/dist/proven/keys.d.ts.map +1 -0
  178. package/dist/proven/keys.js +117 -0
  179. package/dist/proven/sign.d.ts +16 -0
  180. package/dist/proven/sign.d.ts.map +1 -0
  181. package/dist/proven/sign.js +60 -0
  182. package/dist/proven/types.d.ts +26 -0
  183. package/dist/proven/types.d.ts.map +1 -0
  184. package/dist/proven/types.js +5 -0
  185. package/dist/proven/verify.d.ts +6 -0
  186. package/dist/proven/verify.d.ts.map +1 -0
  187. package/dist/proven/verify.js +58 -0
  188. package/dist/responders/types.d.ts +38 -0
  189. package/dist/responders/types.d.ts.map +1 -0
  190. package/dist/responders/types.js +1 -0
  191. package/dist/router.d.ts +51 -0
  192. package/dist/router.d.ts.map +1 -0
  193. package/dist/router.js +200 -0
  194. package/dist/types.d.ts +7711 -0
  195. package/dist/types.d.ts.map +1 -0
  196. package/dist/types.js +479 -0
  197. package/package.json +96 -0
  198. package/responder/README.md +42 -0
  199. package/responder/backend-responder.json +9 -0
  200. package/responder/devops-responder.json +9 -0
  201. package/responder/frontend-responder.json +9 -0
  202. package/responder/schema.json +89 -0
@@ -0,0 +1,37 @@
1
+ import { z } from "zod";
2
+ // ── Tool Description ────────────────────────────────────────────────────
3
+ export const listRespondersDescription = "List available responders and their areas of expertise. " +
4
+ "Use this tool to discover which responders are available before routing breakpoints. " +
5
+ "You can filter by domain or specific expertise areas.";
6
+ // ── Tool Param Schema ───────────────────────────────────────────────────
7
+ export const listRespondersParams = {
8
+ domain: z
9
+ .string()
10
+ .optional()
11
+ .describe("Filter responders by domain (e.g. 'typescript', 'security'). Case-insensitive."),
12
+ tags: z
13
+ .array(z.string())
14
+ .optional()
15
+ .describe("Filter responders by expertise tags or keywords."),
16
+ backend: z.string().optional(),
17
+ breakpointsDir: z.string().optional(),
18
+ };
19
+ // ── Handler ─────────────────────────────────────────────────────────────
20
+ export async function handleListResponders(params, backend) {
21
+ if (!backend.listResponders) {
22
+ return [];
23
+ }
24
+ let responders = await backend.listResponders();
25
+ // Apply domain filter
26
+ if (params.domain) {
27
+ const domainLower = params.domain.toLowerCase();
28
+ responders = responders.filter((r) => r.domains.some((d) => d.toLowerCase().includes(domainLower)));
29
+ }
30
+ // Apply tags filter
31
+ if (params.tags && params.tags.length > 0) {
32
+ const keywords = new Set(params.tags.map((k) => k.toLowerCase()));
33
+ responders = responders.filter((r) => r.tags.some((t) => keywords.has(t.toLowerCase())) ||
34
+ r.domains.some((d) => keywords.has(d.toLowerCase())));
35
+ }
36
+ return responders;
37
+ }
@@ -0,0 +1,270 @@
1
+ import { z } from "zod";
2
+ import type { BreakpointBackend } from "../../backend.js";
3
+ import type { Breakpoint, BreakpointRouting, BreakpointStatus, TaskPriority } from "../../types.js";
4
+ export declare const createTodoDescription = "Create a todo routed through tasks-adapter. The todo is stored as a task-like breakpoint so existing responder backends, routing, and audit trails remain the source of truth.";
5
+ export declare const createTodoParams: {
6
+ backend: z.ZodOptional<z.ZodString>;
7
+ breakpointsDir: z.ZodOptional<z.ZodString>;
8
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
9
+ domain: z.ZodOptional<z.ZodString>;
10
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
11
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
12
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
13
+ sourceUrl: z.ZodOptional<z.ZodString>;
14
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
15
+ projectId: z.ZodOptional<z.ZodString>;
16
+ repoId: z.ZodOptional<z.ZodString>;
17
+ responderId: z.ZodOptional<z.ZodString>;
18
+ responderType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
19
+ adapter: z.ZodOptional<z.ZodString>;
20
+ model: z.ZodOptional<z.ZodString>;
21
+ provider: z.ZodOptional<z.ZodString>;
22
+ trackerBackend: z.ZodOptional<z.ZodString>;
23
+ fallbackType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
24
+ title: z.ZodString;
25
+ description: z.ZodOptional<z.ZodString>;
26
+ };
27
+ export declare const createTaskDescription = "Create a task routed through tasks-adapter. This is an alias-friendly task surface backed by the same breakpoint storage as assign_task.";
28
+ export declare const createTaskParams: {
29
+ backend: z.ZodOptional<z.ZodString>;
30
+ breakpointsDir: z.ZodOptional<z.ZodString>;
31
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
32
+ domain: z.ZodOptional<z.ZodString>;
33
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
34
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
35
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
36
+ sourceUrl: z.ZodOptional<z.ZodString>;
37
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
38
+ projectId: z.ZodOptional<z.ZodString>;
39
+ repoId: z.ZodOptional<z.ZodString>;
40
+ responderId: z.ZodOptional<z.ZodString>;
41
+ responderType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
42
+ adapter: z.ZodOptional<z.ZodString>;
43
+ model: z.ZodOptional<z.ZodString>;
44
+ provider: z.ZodOptional<z.ZodString>;
45
+ trackerBackend: z.ZodOptional<z.ZodString>;
46
+ fallbackType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
47
+ title: z.ZodString;
48
+ instructions: z.ZodOptional<z.ZodString>;
49
+ };
50
+ export declare const assignTaskDescription = "Assign a task through tasks-adapter responder routing. Use this instead of direct agent delegation when the work should be visible to the task router.";
51
+ export declare const assignTaskParams: {
52
+ backend: z.ZodOptional<z.ZodString>;
53
+ breakpointsDir: z.ZodOptional<z.ZodString>;
54
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
55
+ domain: z.ZodOptional<z.ZodString>;
56
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
57
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
58
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
59
+ sourceUrl: z.ZodOptional<z.ZodString>;
60
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
61
+ projectId: z.ZodOptional<z.ZodString>;
62
+ repoId: z.ZodOptional<z.ZodString>;
63
+ responderId: z.ZodOptional<z.ZodString>;
64
+ responderType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
65
+ adapter: z.ZodOptional<z.ZodString>;
66
+ model: z.ZodOptional<z.ZodString>;
67
+ provider: z.ZodOptional<z.ZodString>;
68
+ trackerBackend: z.ZodOptional<z.ZodString>;
69
+ fallbackType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
70
+ taskId: z.ZodOptional<z.ZodString>;
71
+ title: z.ZodString;
72
+ instructions: z.ZodOptional<z.ZodString>;
73
+ assignee: z.ZodOptional<z.ZodString>;
74
+ };
75
+ export declare const searchTasksDescription = "Search task-like breakpoints currently visible to tasks-adapter. This is read-only and uses the configured BreakpointBackend.";
76
+ export declare const searchTasksParams: {
77
+ query: z.ZodOptional<z.ZodString>;
78
+ status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled", "assigned", "in-progress", "blocked", "escalated"]>, z.ZodArray<z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled", "assigned", "in-progress", "blocked", "escalated"]>, "many">]>>;
79
+ priority: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "medium", "high", "critical"]>, z.ZodArray<z.ZodEnum<["low", "medium", "high", "critical"]>, "many">]>>;
80
+ assigneeId: z.ZodOptional<z.ZodString>;
81
+ responderId: z.ZodOptional<z.ZodString>;
82
+ domain: z.ZodOptional<z.ZodString>;
83
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
84
+ sortBy: z.ZodOptional<z.ZodEnum<["createdAt", "updatedAt", "priority", "status"]>>;
85
+ sortDirection: z.ZodOptional<z.ZodEnum<["asc", "desc"]>>;
86
+ offset: z.ZodOptional<z.ZodNumber>;
87
+ limit: z.ZodOptional<z.ZodNumber>;
88
+ backend: z.ZodOptional<z.ZodString>;
89
+ breakpointsDir: z.ZodOptional<z.ZodString>;
90
+ };
91
+ export declare const addCommentDescription = "Add a discussion comment to a task-like breakpoint through the configured BreakpointBackend.";
92
+ export declare const addCommentParams: {
93
+ taskId: z.ZodString;
94
+ authorId: z.ZodString;
95
+ authorName: z.ZodOptional<z.ZodString>;
96
+ text: z.ZodString;
97
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
98
+ backend: z.ZodOptional<z.ZodString>;
99
+ breakpointsDir: z.ZodOptional<z.ZodString>;
100
+ };
101
+ export declare const addCommentToBreakpointDescription = "Add a discussion comment to a breakpoint through the configured BreakpointBackend.";
102
+ export declare const addCommentToBreakpointParams: {
103
+ breakpointId: z.ZodString;
104
+ authorId: z.ZodString;
105
+ authorName: z.ZodOptional<z.ZodString>;
106
+ text: z.ZodString;
107
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
108
+ backend: z.ZodOptional<z.ZodString>;
109
+ breakpointsDir: z.ZodOptional<z.ZodString>;
110
+ };
111
+ export declare const bulkUpdateTasksDescription = "Apply a backend-agnostic bulk operation to task-like breakpoints with per-item success and failure details.";
112
+ export declare const bulkUpdateTasksParams: {
113
+ ids: z.ZodArray<z.ZodString, "many">;
114
+ action: z.ZodEnum<["approve", "close", "cancel", "reassign", "transition"]>;
115
+ actorId: z.ZodOptional<z.ZodString>;
116
+ assigneeId: z.ZodOptional<z.ZodString>;
117
+ assigneeName: z.ZodOptional<z.ZodString>;
118
+ status: z.ZodOptional<z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled", "assigned", "in-progress", "blocked", "escalated"]>>;
119
+ message: z.ZodOptional<z.ZodString>;
120
+ backend: z.ZodOptional<z.ZodString>;
121
+ breakpointsDir: z.ZodOptional<z.ZodString>;
122
+ };
123
+ export declare const taskStatsDescription = "Compute deterministic task metrics grouped by status and priority.";
124
+ export declare const taskStatsParams: {
125
+ status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled", "assigned", "in-progress", "blocked", "escalated"]>, z.ZodArray<z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled", "assigned", "in-progress", "blocked", "escalated"]>, "many">]>>;
126
+ priority: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "medium", "high", "critical"]>, z.ZodArray<z.ZodEnum<["low", "medium", "high", "critical"]>, "many">]>>;
127
+ assigneeId: z.ZodOptional<z.ZodString>;
128
+ responderId: z.ZodOptional<z.ZodString>;
129
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
130
+ domain: z.ZodOptional<z.ZodString>;
131
+ backend: z.ZodOptional<z.ZodString>;
132
+ breakpointsDir: z.ZodOptional<z.ZodString>;
133
+ };
134
+ export declare const exportTasksDescription = "Export matching task-like breakpoints with credential-bearing notification targets redacted.";
135
+ export declare const exportTasksParams: {
136
+ status: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled", "assigned", "in-progress", "blocked", "escalated"]>, z.ZodArray<z.ZodEnum<["pending", "routed", "claimed", "answered", "completed", "expired", "cancelled", "assigned", "in-progress", "blocked", "escalated"]>, "many">]>>;
137
+ priority: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["low", "medium", "high", "critical"]>, z.ZodArray<z.ZodEnum<["low", "medium", "high", "critical"]>, "many">]>>;
138
+ assigneeId: z.ZodOptional<z.ZodString>;
139
+ responderId: z.ZodOptional<z.ZodString>;
140
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
141
+ domain: z.ZodOptional<z.ZodString>;
142
+ backend: z.ZodOptional<z.ZodString>;
143
+ breakpointsDir: z.ZodOptional<z.ZodString>;
144
+ };
145
+ export declare const escalateDescription = "Escalate an existing task or create a high-urgency intervention through tasks-adapter routing.";
146
+ export declare const escalateParams: {
147
+ backend: z.ZodOptional<z.ZodString>;
148
+ breakpointsDir: z.ZodOptional<z.ZodString>;
149
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
150
+ domain: z.ZodOptional<z.ZodString>;
151
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
152
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
153
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
154
+ sourceUrl: z.ZodOptional<z.ZodString>;
155
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
156
+ projectId: z.ZodOptional<z.ZodString>;
157
+ repoId: z.ZodOptional<z.ZodString>;
158
+ responderId: z.ZodOptional<z.ZodString>;
159
+ responderType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
160
+ adapter: z.ZodOptional<z.ZodString>;
161
+ model: z.ZodOptional<z.ZodString>;
162
+ provider: z.ZodOptional<z.ZodString>;
163
+ trackerBackend: z.ZodOptional<z.ZodString>;
164
+ fallbackType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
165
+ taskId: z.ZodOptional<z.ZodString>;
166
+ title: z.ZodOptional<z.ZodString>;
167
+ reason: z.ZodString;
168
+ targetResponderId: z.ZodOptional<z.ZodString>;
169
+ };
170
+ export declare const cancelBreakpointDescription = "Cancel a pending breakpoint through the configured BreakpointBackend.";
171
+ export declare const cancelBreakpointParams: {
172
+ breakpointId: z.ZodString;
173
+ backend: z.ZodOptional<z.ZodString>;
174
+ breakpointsDir: z.ZodOptional<z.ZodString>;
175
+ };
176
+ export declare const escalateBreakpointDescription = "Escalate an existing breakpoint through tasks-adapter routing and lifecycle state.";
177
+ export declare const escalateBreakpointParams: {
178
+ backend: z.ZodOptional<z.ZodString>;
179
+ breakpointsDir: z.ZodOptional<z.ZodString>;
180
+ tags: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
181
+ domain: z.ZodOptional<z.ZodString>;
182
+ urgency: z.ZodOptional<z.ZodEnum<["low", "medium", "high"]>>;
183
+ priority: z.ZodOptional<z.ZodEnum<["low", "medium", "high", "critical"]>>;
184
+ dependsOn: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
185
+ sourceUrl: z.ZodOptional<z.ZodString>;
186
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
187
+ projectId: z.ZodOptional<z.ZodString>;
188
+ repoId: z.ZodOptional<z.ZodString>;
189
+ responderId: z.ZodOptional<z.ZodString>;
190
+ responderType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
191
+ adapter: z.ZodOptional<z.ZodString>;
192
+ model: z.ZodOptional<z.ZodString>;
193
+ provider: z.ZodOptional<z.ZodString>;
194
+ trackerBackend: z.ZodOptional<z.ZodString>;
195
+ fallbackType: z.ZodOptional<z.ZodEnum<["human", "agent", "tracker", "internal", "auto"]>>;
196
+ breakpointId: z.ZodString;
197
+ reason: z.ZodString;
198
+ targetResponderId: z.ZodOptional<z.ZodString>;
199
+ };
200
+ export interface NativeTaskResult {
201
+ tool: "create_todo" | "create_task" | "assign_task" | "escalate" | "escalate_breakpoint";
202
+ taskId: string;
203
+ breakpoint: Breakpoint;
204
+ routing: BreakpointRouting;
205
+ metadata: Record<string, unknown>;
206
+ }
207
+ export interface SearchTasksResult {
208
+ tool: "search_tasks";
209
+ count: number;
210
+ tasks: Breakpoint[];
211
+ }
212
+ export declare function handleCreateTodo(params: z.infer<z.ZodObject<typeof createTodoParams>>, backend: BreakpointBackend): Promise<NativeTaskResult>;
213
+ export declare function handleAssignTask(params: z.infer<z.ZodObject<typeof assignTaskParams>>, backend: BreakpointBackend): Promise<NativeTaskResult>;
214
+ export declare function handleCreateTask(params: z.infer<z.ZodObject<typeof createTaskParams>>, backend: BreakpointBackend): Promise<NativeTaskResult>;
215
+ export declare function handleSearchTasks(params: z.infer<z.ZodObject<typeof searchTasksParams>>, backend: BreakpointBackend): Promise<SearchTasksResult>;
216
+ export declare function handleEscalate(params: z.infer<z.ZodObject<typeof escalateParams>>, backend: BreakpointBackend): Promise<NativeTaskResult>;
217
+ export declare function handleCancelBreakpoint(params: z.infer<z.ZodObject<typeof cancelBreakpointParams>>, backend: BreakpointBackend): Promise<{
218
+ tool: string;
219
+ breakpointId: string;
220
+ cancelled: boolean;
221
+ }>;
222
+ export declare function handleEscalateBreakpoint(params: z.infer<z.ZodObject<typeof escalateBreakpointParams>>, backend: BreakpointBackend): Promise<NativeTaskResult>;
223
+ export declare function handleAddComment(params: z.infer<z.ZodObject<typeof addCommentParams>>, backend: BreakpointBackend): Promise<{
224
+ tool: string;
225
+ taskId: string;
226
+ comment: z.objectOutputType<{
227
+ id: z.ZodString;
228
+ authorId: z.ZodString;
229
+ authorName: z.ZodOptional<z.ZodString>;
230
+ text: z.ZodString;
231
+ createdAt: z.ZodString;
232
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
233
+ }, z.ZodUnknown, "strip">;
234
+ }>;
235
+ export declare function handleAddCommentToBreakpoint(params: z.infer<z.ZodObject<typeof addCommentToBreakpointParams>>, backend: BreakpointBackend): Promise<{
236
+ tool: string;
237
+ breakpointId: string;
238
+ taskId: string;
239
+ comment: z.objectOutputType<{
240
+ id: z.ZodString;
241
+ authorId: z.ZodString;
242
+ authorName: z.ZodOptional<z.ZodString>;
243
+ text: z.ZodString;
244
+ createdAt: z.ZodString;
245
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
246
+ }, z.ZodUnknown, "strip">;
247
+ }>;
248
+ export declare function handleBulkUpdateTasks(params: z.infer<z.ZodObject<typeof bulkUpdateTasksParams>>, backend: BreakpointBackend): Promise<{
249
+ total: number;
250
+ succeeded: number;
251
+ failed: number;
252
+ items: import("../../backend.js").BulkUpdateBreakpointItemResult[];
253
+ tool: string;
254
+ }>;
255
+ export declare function handleTaskStats(params: z.infer<z.ZodObject<typeof taskStatsParams>>, backend: BreakpointBackend): Promise<{
256
+ total: number;
257
+ byStatus: Partial<Record<BreakpointStatus, number>>;
258
+ byPriority: Partial<Record<TaskPriority, number>>;
259
+ responseTimeAverageMs?: number;
260
+ completionTimeAverageMs?: number;
261
+ tool: string;
262
+ }>;
263
+ export declare function handleExportTasks(params: z.infer<z.ZodObject<typeof exportTasksParams>>, backend: BreakpointBackend): Promise<{
264
+ schemaVersion: 1;
265
+ exportedAt: string;
266
+ total: number;
267
+ items: Breakpoint[];
268
+ tool: string;
269
+ }>;
270
+ //# sourceMappingURL=native-tasks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-tasks.d.ts","sourceRoot":"","sources":["../../../src/mcp/tools/native-tasks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,KAAK,EACV,UAAU,EAEV,iBAAiB,EACjB,gBAAgB,EAGhB,YAAY,EAEb,MAAM,gBAAgB,CAAC;AAkCxB,eAAO,MAAM,qBAAqB,mLACgJ,CAAC;AAEnL,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAO5B,CAAC;AAEF,eAAO,MAAM,qBAAqB,6IAC0G,CAAC;AAE7I,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAO5B,CAAC;AAEF,eAAO,MAAM,qBAAqB,2JACwH,CAAC;AAE3J,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;CAS5B,CAAC;AAEF,eAAO,MAAM,sBAAsB,kIAC8F,CAAC;AAElI,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;CAc7B,CAAC;AAEF,eAAO,MAAM,qBAAqB,iGAC8D,CAAC;AAEjG,eAAO,MAAM,gBAAgB;;;;;;;;CAQ5B,CAAC;AAEF,eAAO,MAAM,iCAAiC,uFACwC,CAAC;AAEvF,eAAO,MAAM,4BAA4B;;;;;;;;CAQxC,CAAC;AAEF,eAAO,MAAM,0BAA0B,gHACwE,CAAC;AAEhH,eAAO,MAAM,qBAAqB;;;;;;;;;;CAUjC,CAAC;AAEF,eAAO,MAAM,oBAAoB,uEACqC,CAAC;AAEvE,eAAO,MAAM,eAAe;;;;;;;;;CAS3B,CAAC;AAEF,eAAO,MAAM,sBAAsB,iGAC6D,CAAC;AAEjG,eAAO,MAAM,iBAAiB;;;;;;;;;CAS7B,CAA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