@agllama/mcp 0.7.3 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api-client.d.ts +67 -6
- package/dist/api-client.d.ts.map +1 -1
- package/dist/api-client.js +79 -9
- package/dist/api-client.js.map +1 -1
- package/dist/index.js +0 -0
- package/dist/lib/__tests__/resolve-org-project.test.d.ts +2 -0
- package/dist/lib/__tests__/resolve-org-project.test.d.ts.map +1 -0
- package/dist/lib/__tests__/resolve-org-project.test.js +114 -0
- package/dist/lib/__tests__/resolve-org-project.test.js.map +1 -0
- package/dist/lib/resolve-org-project.d.ts +28 -0
- package/dist/lib/resolve-org-project.d.ts.map +1 -0
- package/dist/lib/resolve-org-project.js +16 -0
- package/dist/lib/resolve-org-project.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +16 -116
- package/dist/server.js.map +1 -1
- package/dist/tools/__tests__/help.test.d.ts +2 -0
- package/dist/tools/__tests__/help.test.d.ts.map +1 -0
- package/dist/tools/__tests__/help.test.js +25 -0
- package/dist/tools/__tests__/help.test.js.map +1 -0
- package/dist/tools/__tests__/issuePlanLinks.test.d.ts +2 -0
- package/dist/tools/__tests__/issuePlanLinks.test.d.ts.map +1 -0
- package/dist/tools/__tests__/issuePlanLinks.test.js +294 -0
- package/dist/tools/__tests__/issuePlanLinks.test.js.map +1 -0
- package/dist/tools/__tests__/plans.test.d.ts +2 -0
- package/dist/tools/__tests__/plans.test.d.ts.map +1 -0
- package/dist/tools/__tests__/plans.test.js +359 -0
- package/dist/tools/__tests__/plans.test.js.map +1 -0
- package/dist/tools/__tests__/projectErrors.test.d.ts +2 -0
- package/dist/tools/__tests__/projectErrors.test.d.ts.map +1 -0
- package/dist/tools/__tests__/projectErrors.test.js +97 -0
- package/dist/tools/__tests__/projectErrors.test.js.map +1 -0
- package/dist/tools/__tests__/search.test.d.ts +2 -0
- package/dist/tools/__tests__/search.test.d.ts.map +1 -0
- package/dist/tools/__tests__/search.test.js +63 -0
- package/dist/tools/__tests__/search.test.js.map +1 -0
- package/dist/tools/__tests__/specs.test.d.ts +2 -0
- package/dist/tools/__tests__/specs.test.d.ts.map +1 -0
- package/dist/tools/__tests__/specs.test.js +262 -0
- package/dist/tools/__tests__/specs.test.js.map +1 -0
- package/dist/tools/attachments.d.ts.map +1 -1
- package/dist/tools/attachments.js +9 -17
- package/dist/tools/attachments.js.map +1 -1
- package/dist/tools/codeDocs.d.ts +6 -6
- package/dist/tools/codeDocs.d.ts.map +1 -1
- package/dist/tools/codeDocs.js +9 -21
- package/dist/tools/codeDocs.js.map +1 -1
- package/dist/tools/comments.d.ts.map +1 -1
- package/dist/tools/comments.js +2 -14
- package/dist/tools/comments.js.map +1 -1
- package/dist/tools/help.d.ts.map +1 -1
- package/dist/tools/help.js +31 -20
- package/dist/tools/help.js.map +1 -1
- package/dist/tools/index.d.ts +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/issuePlanLinks.d.ts +18 -8
- package/dist/tools/issuePlanLinks.d.ts.map +1 -1
- package/dist/tools/issuePlanLinks.js +182 -67
- package/dist/tools/issuePlanLinks.js.map +1 -1
- package/dist/tools/issues.d.ts +15 -19
- package/dist/tools/issues.d.ts.map +1 -1
- package/dist/tools/issues.js +21 -7
- package/dist/tools/issues.js.map +1 -1
- package/dist/tools/labels.d.ts +2 -2
- package/dist/tools/notificationRules.d.ts +2 -2
- package/dist/tools/organizations.d.ts +2 -2
- package/dist/tools/plans.d.ts +37 -13
- package/dist/tools/plans.d.ts.map +1 -1
- package/dist/tools/plans.js +92 -29
- package/dist/tools/plans.js.map +1 -1
- package/dist/tools/projectErrors.d.ts +1 -1
- package/dist/tools/projectErrors.d.ts.map +1 -1
- package/dist/tools/projectErrors.js +14 -15
- package/dist/tools/projectErrors.js.map +1 -1
- package/dist/tools/prompts.d.ts +4 -4
- package/dist/tools/prompts.d.ts.map +1 -1
- package/dist/tools/prompts.js +4 -5
- package/dist/tools/prompts.js.map +1 -1
- package/dist/tools/roadmap.d.ts +12 -12
- package/dist/tools/roadmap.d.ts.map +1 -1
- package/dist/tools/roadmap.js +3 -15
- package/dist/tools/roadmap.js.map +1 -1
- package/dist/tools/search.d.ts +6 -3
- package/dist/tools/search.d.ts.map +1 -1
- package/dist/tools/search.js +15 -3
- package/dist/tools/search.js.map +1 -1
- package/dist/tools/skills.d.ts +8 -8
- package/dist/tools/specs.d.ts +30 -0
- package/dist/tools/specs.d.ts.map +1 -0
- package/dist/tools/specs.js +127 -0
- package/dist/tools/specs.js.map +1 -0
- package/dist/types.d.ts +93 -5
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +14 -2
- package/dist/types.js.map +1 -1
- package/dist/utils/__tests__/zod-json-schema.test.d.ts +2 -0
- package/dist/utils/__tests__/zod-json-schema.test.d.ts.map +1 -0
- package/dist/utils/__tests__/zod-json-schema.test.js +97 -0
- package/dist/utils/__tests__/zod-json-schema.test.js.map +1 -0
- package/dist/utils/zod-json-schema.d.ts +29 -0
- package/dist/utils/zod-json-schema.d.ts.map +1 -0
- package/dist/utils/zod-json-schema.js +128 -0
- package/dist/utils/zod-json-schema.js.map +1 -0
- package/package.json +1 -1
- package/dist/tools/decomposition.d.ts +0 -236
- package/dist/tools/decomposition.d.ts.map +0 -1
- package/dist/tools/decomposition.js +0 -285
- package/dist/tools/decomposition.js.map +0 -1
- package/dist/tools/documents.d.ts +0 -99
- package/dist/tools/documents.d.ts.map +0 -1
- package/dist/tools/documents.js +0 -254
- package/dist/tools/documents.js.map +0 -1
- package/dist/tools/epicSignOff.d.ts +0 -25
- package/dist/tools/epicSignOff.d.ts.map +0 -1
- package/dist/tools/epicSignOff.js +0 -89
- package/dist/tools/epicSignOff.js.map +0 -1
- package/dist/tools/integrations.d.ts +0 -38
- package/dist/tools/integrations.d.ts.map +0 -1
- package/dist/tools/integrations.js +0 -153
- package/dist/tools/integrations.js.map +0 -1
- package/dist/tools/planComments.d.ts.map +0 -1
- package/dist/tools/planComments.js.map +0 -1
- package/dist/tools/status.d.ts.map +0 -1
- package/dist/tools/status.js.map +0 -1
- package/dist/tools/workflows.d.ts +0 -169
- package/dist/tools/workflows.d.ts.map +0 -1
- package/dist/tools/workflows.js +0 -436
- package/dist/tools/workflows.js.map +0 -1
|
@@ -1,105 +1,220 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { getApiClient, LlamaApiError } from '../api-client.js';
|
|
3
|
-
import {
|
|
3
|
+
import { resolveOrgProject } from '../lib/resolve-org-project.js';
|
|
4
4
|
// ============================================
|
|
5
5
|
// Manage Issue-Plan Link (link/unlink consolidated)
|
|
6
6
|
// ============================================
|
|
7
7
|
export const manageIssuePlanLinkToolName = 'llama_manage_plan_link';
|
|
8
|
-
export const
|
|
8
|
+
export const ISSUE_KEY_REQUIRED = 'issueKey is required for link and unlink actions';
|
|
9
|
+
export const manageIssuePlanLinkToolDescription = 'Link or unlink an issue from a plan, link a business spec to a technical plan, or link a business spec to a project. Issue↔plan types: IMPLEMENTS, REFERENCES. Spec↔plan type: IMPLEMENTS only.';
|
|
9
10
|
export const manageIssuePlanLinkToolSchema = z.object({
|
|
10
|
-
action: z
|
|
11
|
-
|
|
12
|
-
.
|
|
13
|
-
|
|
14
|
-
.describe('Org slug (session default)'),
|
|
11
|
+
action: z
|
|
12
|
+
.enum(['link', 'unlink', 'planToPlan', 'unlinkPlanToPlan', 'specToProject', 'unlinkSpecProject'])
|
|
13
|
+
.describe('Action: "link", "unlink", "planToPlan", "unlinkPlanToPlan", "specToProject", or "unlinkSpecProject"'),
|
|
14
|
+
orgSlug: z.string().optional().describe('Org slug (session default)'),
|
|
15
15
|
projectKey: z
|
|
16
16
|
.string()
|
|
17
17
|
.optional()
|
|
18
|
-
.describe('Project key (session default)'),
|
|
19
|
-
|
|
20
|
-
|
|
18
|
+
.describe('Project key (session default for link/unlink; required explicitly for unlinkSpecProject — no session default, since it is destructive; single-project form of specToProject)'),
|
|
19
|
+
projectKeys: z
|
|
20
|
+
.array(z.string().min(1))
|
|
21
|
+
.max(50)
|
|
22
|
+
.optional()
|
|
23
|
+
.describe('Project keys to bulk-link to a spec (specToProject; max 50)'),
|
|
24
|
+
issueKey: z.string().optional().describe('Issue key (required for link/unlink)'),
|
|
21
25
|
planId: z.string().optional().describe('Plan ID to link to (required for link)'),
|
|
22
26
|
linkType: z
|
|
23
27
|
.enum(['IMPLEMENTS', 'REFERENCES'])
|
|
24
28
|
.optional()
|
|
25
29
|
.default('IMPLEMENTS')
|
|
26
|
-
.describe('Type of link
|
|
27
|
-
|
|
28
|
-
|
|
30
|
+
.describe('Type of link. REFERENCES is issue↔plan only; planToPlan is IMPLEMENTS only'),
|
|
31
|
+
linkId: z
|
|
32
|
+
.string()
|
|
33
|
+
.optional()
|
|
34
|
+
.describe('Link ID to delete (required for unlink / unlinkPlanToPlan)'),
|
|
35
|
+
specId: z
|
|
36
|
+
.string()
|
|
37
|
+
.optional()
|
|
38
|
+
.describe('Business spec ID (required for planToPlan / unlinkPlanToPlan / specToProject / unlinkSpecProject)'),
|
|
39
|
+
technicalPlanId: z.string().optional().describe('Technical plan ID (required for planToPlan)'),
|
|
29
40
|
});
|
|
41
|
+
function formatLinkError(error, action) {
|
|
42
|
+
if (error instanceof LlamaApiError) {
|
|
43
|
+
return JSON.stringify({
|
|
44
|
+
success: false,
|
|
45
|
+
error: `Failed to ${action} issue-plan link: ${error.message}`,
|
|
46
|
+
statusCode: error.statusCode,
|
|
47
|
+
...(error.errorCode !== undefined ? { errorCode: error.errorCode } : {}),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
return JSON.stringify({
|
|
51
|
+
success: false,
|
|
52
|
+
error: error instanceof Error ? error.message : 'Unknown error',
|
|
53
|
+
});
|
|
54
|
+
}
|
|
30
55
|
export async function executeManageIssuePlanLink(input) {
|
|
31
56
|
try {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
const projectKey = input.projectKey ?? session?.projectKey;
|
|
35
|
-
if (!orgSlug) {
|
|
36
|
-
return JSON.stringify({
|
|
37
|
-
success: false,
|
|
38
|
-
error: orgSlugRequiredMessage(),
|
|
39
|
-
});
|
|
57
|
+
if (input.action === 'planToPlan' || input.action === 'unlinkPlanToPlan') {
|
|
58
|
+
return await executePlanToPlanAction(input);
|
|
40
59
|
}
|
|
41
|
-
if (
|
|
42
|
-
return
|
|
43
|
-
success: false,
|
|
44
|
-
error: 'projectKey is required. Either provide it or set session context with llama_set_context first.',
|
|
45
|
-
});
|
|
60
|
+
if (input.action === 'specToProject' || input.action === 'unlinkSpecProject') {
|
|
61
|
+
return await executeSpecProjectAction(input);
|
|
46
62
|
}
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
63
|
+
return await executeIssuePlanAction(input);
|
|
64
|
+
}
|
|
65
|
+
catch (error) {
|
|
66
|
+
return formatLinkError(error, input.action);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
async function executePlanToPlanAction(input) {
|
|
70
|
+
const context = await resolveOrgProject(input, { requireProject: false });
|
|
71
|
+
if ('error' in context) {
|
|
72
|
+
return JSON.stringify({ success: false, error: context.error });
|
|
73
|
+
}
|
|
74
|
+
const client = getApiClient();
|
|
75
|
+
try {
|
|
76
|
+
await client.recordToolCall('llama_manage_plan_link', {
|
|
77
|
+
orgSlug: context.orgSlug,
|
|
78
|
+
action: input.action,
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
catch {
|
|
82
|
+
// Ignore recording errors
|
|
83
|
+
}
|
|
84
|
+
if (input.action === 'planToPlan') {
|
|
85
|
+
if (!input.specId) {
|
|
86
|
+
return JSON.stringify({ success: false, error: 'specId is required for planToPlan action' });
|
|
54
87
|
}
|
|
55
|
-
if (input.
|
|
56
|
-
if (!input.planId) {
|
|
57
|
-
return JSON.stringify({
|
|
58
|
-
success: false,
|
|
59
|
-
error: 'planId is required for link action',
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
const link = await client.createIssuePlanLink(orgSlug, projectKey, input.issueKey, {
|
|
63
|
-
planId: input.planId,
|
|
64
|
-
linkType: input.linkType ?? 'IMPLEMENTS',
|
|
65
|
-
});
|
|
88
|
+
if (!input.technicalPlanId) {
|
|
66
89
|
return JSON.stringify({
|
|
67
|
-
success:
|
|
68
|
-
|
|
69
|
-
link: {
|
|
70
|
-
id: link.id,
|
|
71
|
-
linkType: link.linkType,
|
|
72
|
-
plan: link.plan,
|
|
73
|
-
},
|
|
90
|
+
success: false,
|
|
91
|
+
error: 'technicalPlanId is required for planToPlan action',
|
|
74
92
|
});
|
|
75
93
|
}
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
94
|
+
const link = await client.createPlanPlanLink(context.orgSlug, input.specId, {
|
|
95
|
+
technicalPlanId: input.technicalPlanId,
|
|
96
|
+
});
|
|
97
|
+
return JSON.stringify({
|
|
98
|
+
success: true,
|
|
99
|
+
message: `Linked spec ${input.specId} to technical plan ${input.technicalPlanId}`,
|
|
100
|
+
link: {
|
|
101
|
+
id: link.id,
|
|
102
|
+
linkType: link.linkType,
|
|
103
|
+
technicalPlan: link.technicalPlan,
|
|
104
|
+
},
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
if (!input.specId) {
|
|
108
|
+
return JSON.stringify({ success: false, error: 'specId is required for unlinkPlanToPlan action' });
|
|
109
|
+
}
|
|
110
|
+
if (!input.linkId) {
|
|
111
|
+
return JSON.stringify({ success: false, error: 'linkId is required for unlinkPlanToPlan action' });
|
|
112
|
+
}
|
|
113
|
+
await client.deletePlanPlanLink(context.orgSlug, input.specId, input.linkId);
|
|
114
|
+
return JSON.stringify({
|
|
115
|
+
success: true,
|
|
116
|
+
message: `Deleted plan-plan link ${input.linkId} from spec ${input.specId}`,
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
async function executeSpecProjectAction(input) {
|
|
120
|
+
const context = await resolveOrgProject(input, { requireProject: false });
|
|
121
|
+
if ('error' in context) {
|
|
122
|
+
return JSON.stringify({ success: false, error: context.error });
|
|
123
|
+
}
|
|
124
|
+
const client = getApiClient();
|
|
125
|
+
try {
|
|
126
|
+
await client.recordToolCall('llama_manage_plan_link', {
|
|
127
|
+
orgSlug: context.orgSlug,
|
|
128
|
+
action: input.action,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
// Ignore recording errors
|
|
133
|
+
}
|
|
134
|
+
if (input.action === 'specToProject') {
|
|
135
|
+
if (!input.specId) {
|
|
136
|
+
return JSON.stringify({ success: false, error: 'specId is required for specToProject action' });
|
|
137
|
+
}
|
|
138
|
+
if (!input.projectKey && (!input.projectKeys || input.projectKeys.length === 0)) {
|
|
85
139
|
return JSON.stringify({
|
|
86
|
-
success:
|
|
87
|
-
|
|
140
|
+
success: false,
|
|
141
|
+
error: 'projectKey or projectKeys is required for specToProject action',
|
|
88
142
|
});
|
|
89
143
|
}
|
|
144
|
+
const isBulk = Boolean(input.projectKeys && input.projectKeys.length > 0);
|
|
145
|
+
const links = await client.createSpecProjectLinks(context.orgSlug, input.specId, {
|
|
146
|
+
...(isBulk ? { projectKeys: input.projectKeys } : { projectKey: input.projectKey }),
|
|
147
|
+
});
|
|
148
|
+
return JSON.stringify({
|
|
149
|
+
success: true,
|
|
150
|
+
message: isBulk
|
|
151
|
+
? `Linked spec ${input.specId} to project(s); links is the spec's full access-filtered project-link list, not just the ones created by this call`
|
|
152
|
+
: `Linked spec ${input.specId} to project ${input.projectKey}`,
|
|
153
|
+
links,
|
|
154
|
+
});
|
|
90
155
|
}
|
|
91
|
-
|
|
92
|
-
|
|
156
|
+
if (!input.specId) {
|
|
157
|
+
return JSON.stringify({ success: false, error: 'specId is required for unlinkSpecProject action' });
|
|
158
|
+
}
|
|
159
|
+
if (!input.projectKey) {
|
|
160
|
+
return JSON.stringify({ success: false, error: 'projectKey is required for unlinkSpecProject action' });
|
|
161
|
+
}
|
|
162
|
+
await client.deleteSpecProjectLink(context.orgSlug, input.specId, input.projectKey);
|
|
163
|
+
return JSON.stringify({
|
|
164
|
+
success: true,
|
|
165
|
+
message: `Unlinked spec ${input.specId} from project ${input.projectKey}`,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
async function executeIssuePlanAction(input) {
|
|
169
|
+
const context = await resolveOrgProject(input, { requireProject: true });
|
|
170
|
+
if ('error' in context) {
|
|
171
|
+
return JSON.stringify({ success: false, error: context.error });
|
|
172
|
+
}
|
|
173
|
+
if (!input.issueKey) {
|
|
174
|
+
return JSON.stringify({ success: false, error: ISSUE_KEY_REQUIRED });
|
|
175
|
+
}
|
|
176
|
+
const client = getApiClient();
|
|
177
|
+
try {
|
|
178
|
+
await client.recordToolCall('llama_manage_plan_link', {
|
|
179
|
+
orgSlug: context.orgSlug,
|
|
180
|
+
projectKey: context.projectKey,
|
|
181
|
+
action: input.action,
|
|
182
|
+
});
|
|
183
|
+
}
|
|
184
|
+
catch {
|
|
185
|
+
// Ignore recording errors
|
|
186
|
+
}
|
|
187
|
+
if (input.action === 'link') {
|
|
188
|
+
if (!input.planId) {
|
|
93
189
|
return JSON.stringify({
|
|
94
190
|
success: false,
|
|
95
|
-
error:
|
|
96
|
-
statusCode: error.statusCode,
|
|
191
|
+
error: 'planId is required for link action',
|
|
97
192
|
});
|
|
98
193
|
}
|
|
194
|
+
const link = await client.createIssuePlanLink(context.orgSlug, context.projectKey, input.issueKey, {
|
|
195
|
+
planId: input.planId,
|
|
196
|
+
linkType: input.linkType ?? 'IMPLEMENTS',
|
|
197
|
+
});
|
|
198
|
+
return JSON.stringify({
|
|
199
|
+
success: true,
|
|
200
|
+
message: `Linked issue ${input.issueKey} to plan (${input.linkType ?? 'IMPLEMENTS'})`,
|
|
201
|
+
link: {
|
|
202
|
+
id: link.id,
|
|
203
|
+
linkType: link.linkType,
|
|
204
|
+
plan: link.plan,
|
|
205
|
+
},
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
if (!input.linkId) {
|
|
99
209
|
return JSON.stringify({
|
|
100
210
|
success: false,
|
|
101
|
-
error:
|
|
211
|
+
error: 'linkId is required for unlink action',
|
|
102
212
|
});
|
|
103
213
|
}
|
|
214
|
+
await client.deleteIssuePlanLink(context.orgSlug, context.projectKey, input.issueKey, input.linkId);
|
|
215
|
+
return JSON.stringify({
|
|
216
|
+
success: true,
|
|
217
|
+
message: `Deleted plan link from ${input.issueKey}`,
|
|
218
|
+
});
|
|
104
219
|
}
|
|
105
220
|
//# sourceMappingURL=issuePlanLinks.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issuePlanLinks.js","sourceRoot":"","sources":["../../src/tools/issuePlanLinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"issuePlanLinks.js","sourceRoot":"","sources":["../../src/tools/issuePlanLinks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,+CAA+C;AAC/C,oDAAoD;AACpD,+CAA+C;AAE/C,MAAM,CAAC,MAAM,2BAA2B,GAAG,wBAAwB,CAAC;AAEpE,MAAM,CAAC,MAAM,kBAAkB,GAAG,kDAAkD,CAAC;AAErF,MAAM,CAAC,MAAM,kCAAkC,GAC7C,iMAAiM,CAAC;AAEpM,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,MAAM,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 +33,7 @@ export declare const createIssueToolSchema: z.ZodObject<{
|
|
|
33
33
|
effortPoints: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, unknown>>;
|
|
34
34
|
labels: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
|
|
35
35
|
board: z.ZodOptional<z.ZodEnum<["BUSINESS", "TECHNICAL"]>>;
|
|
36
|
+
implementsPlanId: z.ZodOptional<z.ZodString>;
|
|
36
37
|
}, "strip", z.ZodTypeAny, {
|
|
37
38
|
type: "EPIC" | "STORY" | "TASK" | "BUG" | "SUBTASK" | "TECHNICAL_TASK";
|
|
38
39
|
summary: string;
|
|
@@ -41,13 +42,14 @@ export declare const createIssueToolSchema: z.ZodObject<{
|
|
|
41
42
|
sprintId?: string | undefined;
|
|
42
43
|
labels?: string[] | undefined;
|
|
43
44
|
parentKey?: string | undefined;
|
|
45
|
+
description?: string | undefined;
|
|
44
46
|
orgSlug?: string | undefined;
|
|
45
47
|
projectKey?: string | undefined;
|
|
46
|
-
description?: string | undefined;
|
|
47
48
|
epicKey?: string | undefined;
|
|
48
49
|
estimate?: number | undefined;
|
|
49
50
|
effortPoints?: number | undefined;
|
|
50
51
|
board?: "BUSINESS" | "TECHNICAL" | undefined;
|
|
52
|
+
implementsPlanId?: string | undefined;
|
|
51
53
|
}, {
|
|
52
54
|
type: "EPIC" | "STORY" | "TASK" | "BUG" | "SUBTASK" | "TECHNICAL_TASK";
|
|
53
55
|
summary: string;
|
|
@@ -56,13 +58,14 @@ export declare const createIssueToolSchema: z.ZodObject<{
|
|
|
56
58
|
sprintId?: string | undefined;
|
|
57
59
|
labels?: unknown;
|
|
58
60
|
parentKey?: string | undefined;
|
|
61
|
+
description?: string | undefined;
|
|
59
62
|
orgSlug?: string | undefined;
|
|
60
63
|
projectKey?: string | undefined;
|
|
61
|
-
description?: string | undefined;
|
|
62
64
|
epicKey?: string | undefined;
|
|
63
65
|
estimate?: unknown;
|
|
64
66
|
effortPoints?: unknown;
|
|
65
67
|
board?: "BUSINESS" | "TECHNICAL" | undefined;
|
|
68
|
+
implementsPlanId?: string | undefined;
|
|
66
69
|
}>;
|
|
67
70
|
export type CreateIssueToolInput = z.infer<typeof createIssueToolSchema>;
|
|
68
71
|
export declare function executeCreateIssue(input: CreateIssueToolInput): Promise<string>;
|
|
@@ -93,9 +96,9 @@ export declare const updateIssueToolSchema: z.ZodObject<{
|
|
|
93
96
|
labels?: string[] | undefined;
|
|
94
97
|
parentKey?: string | null | undefined;
|
|
95
98
|
summary?: string | undefined;
|
|
99
|
+
description?: string | undefined;
|
|
96
100
|
orgSlug?: string | undefined;
|
|
97
101
|
projectKey?: string | undefined;
|
|
98
|
-
description?: string | undefined;
|
|
99
102
|
epicKey?: string | null | undefined;
|
|
100
103
|
estimate?: number | null | undefined;
|
|
101
104
|
statusId?: string | undefined;
|
|
@@ -109,9 +112,9 @@ export declare const updateIssueToolSchema: z.ZodObject<{
|
|
|
109
112
|
labels?: unknown;
|
|
110
113
|
parentKey?: string | null | undefined;
|
|
111
114
|
summary?: string | undefined;
|
|
115
|
+
description?: string | undefined;
|
|
112
116
|
orgSlug?: string | undefined;
|
|
113
117
|
projectKey?: string | undefined;
|
|
114
|
-
description?: string | undefined;
|
|
115
118
|
epicKey?: string | null | undefined;
|
|
116
119
|
estimate?: unknown;
|
|
117
120
|
statusId?: string | undefined;
|
|
@@ -219,7 +222,7 @@ export declare const batchCreateIssuesToolSchema: z.ZodObject<{
|
|
|
219
222
|
export type BatchCreateIssuesToolInput = z.infer<typeof batchCreateIssuesToolSchema>;
|
|
220
223
|
export declare function executeBatchCreateIssues(input: BatchCreateIssuesToolInput): Promise<string>;
|
|
221
224
|
export declare const batchUpdateIssuesToolName = "llama_batch_update_issues";
|
|
222
|
-
export declare const batchUpdateIssuesToolDescription = "Update multiple issues with different changes (max 50).";
|
|
225
|
+
export declare const batchUpdateIssuesToolDescription = "Update multiple issues with different changes (max 50).\n\nOnly include the fields you are actually changing. Omitting a field leaves it untouched \u2014 never pass a field with a null or empty value to mean \"no change\", that is how descriptions get wiped.\n\nDestructive edits are rejected by the server: description cannot be cleared here, and epicKey only ever links or unlinks an EPIC parent. To clear a description or change a subtask's parent story, use llama_update_issue on the single issue.";
|
|
223
226
|
export declare const batchUpdateIssuesToolSchema: z.ZodObject<{
|
|
224
227
|
orgSlug: z.ZodOptional<z.ZodString>;
|
|
225
228
|
projectKey: z.ZodOptional<z.ZodString>;
|
|
@@ -227,34 +230,31 @@ export declare const batchUpdateIssuesToolSchema: z.ZodObject<{
|
|
|
227
230
|
issueKey: z.ZodString;
|
|
228
231
|
fields: z.ZodObject<{
|
|
229
232
|
summary: z.ZodOptional<z.ZodString>;
|
|
230
|
-
description: z.
|
|
233
|
+
description: z.ZodOptional<z.ZodString>;
|
|
231
234
|
priority: z.ZodOptional<z.ZodEnum<["CRITICAL", "HIGH", "MEDIUM", "LOW", "TRIVIAL"]>>;
|
|
232
235
|
assigneeId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
233
236
|
sprintId: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
234
237
|
estimate: z.ZodOptional<z.ZodEffects<z.ZodNullable<z.ZodNumber>, number | null, unknown>>;
|
|
235
238
|
labels: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
|
|
236
239
|
epicKey: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
237
|
-
statusId: z.ZodOptional<z.ZodString>;
|
|
238
240
|
}, "strip", z.ZodTypeAny, {
|
|
239
241
|
priority?: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "TRIVIAL" | undefined;
|
|
240
242
|
assigneeId?: string | null | undefined;
|
|
241
243
|
sprintId?: string | null | undefined;
|
|
242
244
|
labels?: string[] | undefined;
|
|
243
245
|
summary?: string | undefined;
|
|
244
|
-
description?: string |
|
|
246
|
+
description?: string | undefined;
|
|
245
247
|
epicKey?: string | null | undefined;
|
|
246
248
|
estimate?: number | null | undefined;
|
|
247
|
-
statusId?: string | undefined;
|
|
248
249
|
}, {
|
|
249
250
|
priority?: "CRITICAL" | "HIGH" | "MEDIUM" | "LOW" | "TRIVIAL" | undefined;
|
|
250
251
|
assigneeId?: string | null | undefined;
|
|
251
252
|
sprintId?: string | null | undefined;
|
|
252
253
|
labels?: unknown;
|
|
253
254
|
summary?: string | undefined;
|
|
254
|
-
description?: string |
|
|
255
|
+
description?: string | undefined;
|
|
255
256
|
epicKey?: string | null | undefined;
|
|
256
257
|
estimate?: unknown;
|
|
257
|
-
statusId?: string | undefined;
|
|
258
258
|
}>;
|
|
259
259
|
}, "strip", z.ZodTypeAny, {
|
|
260
260
|
issueKey: string;
|
|
@@ -264,10 +264,9 @@ export declare const batchUpdateIssuesToolSchema: z.ZodObject<{
|
|
|
264
264
|
sprintId?: string | null | undefined;
|
|
265
265
|
labels?: string[] | undefined;
|
|
266
266
|
summary?: string | undefined;
|
|
267
|
-
description?: string |
|
|
267
|
+
description?: string | undefined;
|
|
268
268
|
epicKey?: string | null | undefined;
|
|
269
269
|
estimate?: number | null | undefined;
|
|
270
|
-
statusId?: string | undefined;
|
|
271
270
|
};
|
|
272
271
|
}, {
|
|
273
272
|
issueKey: string;
|
|
@@ -277,10 +276,9 @@ export declare const batchUpdateIssuesToolSchema: z.ZodObject<{
|
|
|
277
276
|
sprintId?: string | null | undefined;
|
|
278
277
|
labels?: unknown;
|
|
279
278
|
summary?: string | undefined;
|
|
280
|
-
description?: string |
|
|
279
|
+
description?: string | undefined;
|
|
281
280
|
epicKey?: string | null | undefined;
|
|
282
281
|
estimate?: unknown;
|
|
283
|
-
statusId?: string | undefined;
|
|
284
282
|
};
|
|
285
283
|
}>, "many">;
|
|
286
284
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -292,10 +290,9 @@ export declare const batchUpdateIssuesToolSchema: z.ZodObject<{
|
|
|
292
290
|
sprintId?: string | null | undefined;
|
|
293
291
|
labels?: string[] | undefined;
|
|
294
292
|
summary?: string | undefined;
|
|
295
|
-
description?: string |
|
|
293
|
+
description?: string | undefined;
|
|
296
294
|
epicKey?: string | null | undefined;
|
|
297
295
|
estimate?: number | null | undefined;
|
|
298
|
-
statusId?: string | undefined;
|
|
299
296
|
};
|
|
300
297
|
}[];
|
|
301
298
|
orgSlug?: string | undefined;
|
|
@@ -309,10 +306,9 @@ export declare const batchUpdateIssuesToolSchema: z.ZodObject<{
|
|
|
309
306
|
sprintId?: string | null | undefined;
|
|
310
307
|
labels?: unknown;
|
|
311
308
|
summary?: string | undefined;
|
|
312
|
-
description?: string |
|
|
309
|
+
description?: string | undefined;
|
|
313
310
|
epicKey?: string | null | undefined;
|
|
314
311
|
estimate?: unknown;
|
|
315
|
-
statusId?: string | undefined;
|
|
316
312
|
};
|
|
317
313
|
}[];
|
|
318
314
|
orgSlug?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../src/tools/issues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,gBAAgB,oBAAoB,CAAC;AAElD,eAAO,MAAM,uBAAuB,mDAAiD,CAAC;AAEtF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;EAU7B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAEnE,wBAAsB,eAAe,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,CAqF/E;AAMD,eAAO,MAAM,mBAAmB,uBAAuB,CAAC;AAExD,eAAO,MAAM,0BAA0B,6EAA6E,CAAC;AAErH,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../src/tools/issues.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,eAAO,MAAM,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kB,CACtC,KAAK,EAAE,oBAAoB,GAC1B,OAAO,CAAC,MAAM,CAAC,CAiEjB;AAMD,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,gCAAgC,gJAAgJ,CAAC;AAE9L,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgEtC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAErF,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,0BAA0B,GAChC,OAAO,CAAC,MAAM,CAAC,CAwFjB;AAMD,eAAO,MAAM,yBAAyB,8BAA8B,CAAC;AAErE,eAAO,MAAM,gCAAgC,0fAImM,CAAC;AAEjP,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiEtC,CAAC;AAEH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAErF,wBAAsB,wBAAwB,CAC5C,KAAK,EAAE,0BAA0B,GAChC,OAAO,CAAC,MAAM,CAAC,CA2EjB"}
|
package/dist/tools/issues.js
CHANGED
|
@@ -154,6 +154,10 @@ export const createIssueToolSchema = z.object({
|
|
|
154
154
|
.enum(['BUSINESS', 'TECHNICAL'])
|
|
155
155
|
.optional()
|
|
156
156
|
.describe('Board target for BUG (BUSINESS/TECHNICAL) when technicalSprints enabled.'),
|
|
157
|
+
implementsPlanId: z
|
|
158
|
+
.string()
|
|
159
|
+
.optional()
|
|
160
|
+
.describe('Technical plan ID to IMPLEMENTS-link this issue to on create (stories from a plan).'),
|
|
157
161
|
});
|
|
158
162
|
export async function executeCreateIssue(input) {
|
|
159
163
|
try {
|
|
@@ -224,6 +228,7 @@ export async function executeCreateIssue(input) {
|
|
|
224
228
|
labels: input.labels,
|
|
225
229
|
effortPoints: input.effortPoints,
|
|
226
230
|
board: input.board,
|
|
231
|
+
implementsPlanId: input.implementsPlanId,
|
|
227
232
|
});
|
|
228
233
|
return JSON.stringify({
|
|
229
234
|
success: true,
|
|
@@ -678,7 +683,11 @@ export async function executeBatchCreateIssues(input) {
|
|
|
678
683
|
// Batch Update Issues
|
|
679
684
|
// ============================================
|
|
680
685
|
export const batchUpdateIssuesToolName = 'llama_batch_update_issues';
|
|
681
|
-
export const batchUpdateIssuesToolDescription = `Update multiple issues with different changes (max 50)
|
|
686
|
+
export const batchUpdateIssuesToolDescription = `Update multiple issues with different changes (max 50).
|
|
687
|
+
|
|
688
|
+
Only include the fields you are actually changing. Omitting a field leaves it untouched — never pass a field with a null or empty value to mean "no change", that is how descriptions get wiped.
|
|
689
|
+
|
|
690
|
+
Destructive edits are rejected by the server: description cannot be cleared here, and epicKey only ever links or unlinks an EPIC parent. To clear a description or change a subtask's parent story, use llama_update_issue on the single issue.`;
|
|
682
691
|
export const batchUpdateIssuesToolSchema = z.object({
|
|
683
692
|
orgSlug: z
|
|
684
693
|
.string()
|
|
@@ -692,8 +701,12 @@ export const batchUpdateIssuesToolSchema = z.object({
|
|
|
692
701
|
.array(z.object({
|
|
693
702
|
issueKey: z.string().describe('Issue key to update'),
|
|
694
703
|
fields: z.object({
|
|
695
|
-
summary: z.string().optional().describe('New summary'),
|
|
696
|
-
description: z
|
|
704
|
+
summary: z.string().min(1).optional().describe('New summary. Omit to leave unchanged'),
|
|
705
|
+
description: z
|
|
706
|
+
.string()
|
|
707
|
+
.min(1)
|
|
708
|
+
.optional()
|
|
709
|
+
.describe('New description. Omit to leave unchanged — cannot be cleared here, use llama_update_issue for that'),
|
|
697
710
|
priority: z
|
|
698
711
|
.enum(['CRITICAL', 'HIGH', 'MEDIUM', 'LOW', 'TRIVIAL'])
|
|
699
712
|
.optional()
|
|
@@ -726,8 +739,11 @@ export const batchUpdateIssuesToolSchema = z.object({
|
|
|
726
739
|
}, z.array(z.string()))
|
|
727
740
|
.optional()
|
|
728
741
|
.describe('Replace all labels'),
|
|
729
|
-
epicKey: z
|
|
730
|
-
|
|
742
|
+
epicKey: z
|
|
743
|
+
.string()
|
|
744
|
+
.optional()
|
|
745
|
+
.nullable()
|
|
746
|
+
.describe('EPIC key to link to, or null to unlink an EPIC. Only affects EPIC parents — rejected on a subtask or technical task, whose parent is a story'),
|
|
731
747
|
}),
|
|
732
748
|
}))
|
|
733
749
|
.min(1)
|
|
@@ -771,8 +787,6 @@ export async function executeBatchUpdateIssues(input) {
|
|
|
771
787
|
fields.description = u.fields.description;
|
|
772
788
|
if (u.fields.priority !== undefined)
|
|
773
789
|
fields.priority = u.fields.priority;
|
|
774
|
-
if (u.fields.statusId !== undefined)
|
|
775
|
-
fields.statusId = u.fields.statusId;
|
|
776
790
|
if (u.fields.assigneeId !== undefined)
|
|
777
791
|
fields.assigneeId = u.fields.assigneeId;
|
|
778
792
|
if (u.fields.sprintId !== undefined)
|