@devpad/mcp 2.3.5 → 2.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +362 -15
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -12265,7 +12265,7 @@ var coerce = {
|
|
|
12265
12265
|
date: (arg) => ZodDate.create({ ...arg, coerce: true })
|
|
12266
12266
|
};
|
|
12267
12267
|
var NEVER = INVALID;
|
|
12268
|
-
// ../api/dist/chunk-
|
|
12268
|
+
// ../api/dist/chunk-HWPYBI52.js
|
|
12269
12269
|
var timestamps = () => ({
|
|
12270
12270
|
created_at: text("created_at").notNull().default(sql`(CURRENT_TIMESTAMP)`),
|
|
12271
12271
|
updated_at: text("updated_at").notNull().default(sql`(CURRENT_TIMESTAMP)`)
|
|
@@ -12357,7 +12357,8 @@ var ACTIONS = [
|
|
|
12357
12357
|
"DELETE_MILESTONE",
|
|
12358
12358
|
"CREATE_CHECKLIST",
|
|
12359
12359
|
"UPDATE_CHECKLIST",
|
|
12360
|
-
"DELETE_CHECKLIST"
|
|
12360
|
+
"DELETE_CHECKLIST",
|
|
12361
|
+
"ADVANCE_STAGE"
|
|
12361
12362
|
];
|
|
12362
12363
|
var action = sqliteTable("action", {
|
|
12363
12364
|
...owned_entity("action"),
|
|
@@ -12408,10 +12409,11 @@ var goal = sqliteTable("goal", {
|
|
|
12408
12409
|
target_time: text("target_time"),
|
|
12409
12410
|
finished_at: text("finished_at")
|
|
12410
12411
|
});
|
|
12411
|
-
var TASK_KINDS = ["task", "phase", "approval"];
|
|
12412
|
+
var TASK_KINDS = ["task", "phase", "approval", "milestone", "goal"];
|
|
12412
12413
|
var COMPLETION_POLICIES = ["manual", "auto_children"];
|
|
12413
12414
|
var COMPLETED_VIA_VALUES = ["user", "api", "policy"];
|
|
12414
12415
|
var TASK_LINK_KINDS = ["blocks", "relates_to", "references", "discovered_from", "tracks_metric"];
|
|
12416
|
+
var SDLC_STAGES = ["ideate", "plan", "build", "review", "deploy", "live"];
|
|
12415
12417
|
var task = sqliteTable("task", {
|
|
12416
12418
|
...owned_entity("task"),
|
|
12417
12419
|
title: text("title").notNull(),
|
|
@@ -12432,7 +12434,8 @@ var task = sqliteTable("task", {
|
|
|
12432
12434
|
completion_policy: text("completion_policy", { enum: COMPLETION_POLICIES }).notNull().default("manual"),
|
|
12433
12435
|
completed_via: text("completed_via", { enum: COMPLETED_VIA_VALUES }),
|
|
12434
12436
|
claimed_by: text("claimed_by"),
|
|
12435
|
-
claimed_at: text("claimed_at")
|
|
12437
|
+
claimed_at: text("claimed_at"),
|
|
12438
|
+
stage: text("stage", { enum: SDLC_STAGES })
|
|
12436
12439
|
}, (table) => [index("task_parent_id_idx").on(table.parent_id)]);
|
|
12437
12440
|
var task_link = sqliteTable("task_link", {
|
|
12438
12441
|
...entity("link"),
|
|
@@ -12469,7 +12472,13 @@ var TASK_EVENT_KINDS = [
|
|
|
12469
12472
|
"edge.removed",
|
|
12470
12473
|
"node.children_all_done",
|
|
12471
12474
|
"policy.fired",
|
|
12472
|
-
"node.completion_stale"
|
|
12475
|
+
"node.completion_stale",
|
|
12476
|
+
"doc.pushed",
|
|
12477
|
+
"thread.opened",
|
|
12478
|
+
"thread.resolved",
|
|
12479
|
+
"signoff.requested",
|
|
12480
|
+
"signoff.decided",
|
|
12481
|
+
"stage.advanced"
|
|
12473
12482
|
];
|
|
12474
12483
|
var TASK_EVENT_ACTORS = ["user", "api", "policy", "github"];
|
|
12475
12484
|
var TASK_EVENT_DISPATCH_STATUSES = ["pending", "dispatched"];
|
|
@@ -12514,6 +12523,48 @@ var github_webhook_event = sqliteTable("github_webhook_event", {
|
|
|
12514
12523
|
event_type: text("event_type").notNull(),
|
|
12515
12524
|
processed_at: text("processed_at").notNull().default(sql`(CURRENT_TIMESTAMP)`)
|
|
12516
12525
|
}, (table) => [index("github_webhook_event_delivery_guid_idx").on(table.delivery_guid)]);
|
|
12526
|
+
var DOCUMENT_KINDS = ["plan", "design", "interface"];
|
|
12527
|
+
var DOCUMENT_STATUSES = ["draft", "in_review", "approved"];
|
|
12528
|
+
var document = sqliteTable("document", {
|
|
12529
|
+
...entity("doc"),
|
|
12530
|
+
project_id: text("project_id").notNull().references(() => project.id),
|
|
12531
|
+
task_id: text("task_id").references(() => task.id),
|
|
12532
|
+
kind: text("kind", { enum: DOCUMENT_KINDS }).notNull(),
|
|
12533
|
+
title: text("title").notNull(),
|
|
12534
|
+
head_version: text("head_version"),
|
|
12535
|
+
status: text("status", { enum: DOCUMENT_STATUSES }).notNull().default("draft")
|
|
12536
|
+
}, (table) => [index("document_project_id_idx").on(table.project_id), index("document_task_id_idx").on(table.task_id)]);
|
|
12537
|
+
var THREAD_STATUSES = ["open", "addressed", "resolved", "orphaned"];
|
|
12538
|
+
var annotation_thread = sqliteTable("annotation_thread", {
|
|
12539
|
+
...id("thread"),
|
|
12540
|
+
document_id: text("document_id").notNull().references(() => document.id),
|
|
12541
|
+
thread_id: text("thread_id").notNull(),
|
|
12542
|
+
status: text("status", { enum: THREAD_STATUSES }).notNull().default("open"),
|
|
12543
|
+
blocking: int("blocking", { mode: "boolean" }).notNull().default(false),
|
|
12544
|
+
...timestamps()
|
|
12545
|
+
}, (table) => [
|
|
12546
|
+
unique("annotation_thread_unique").on(table.document_id, table.thread_id),
|
|
12547
|
+
index("annotation_thread_document_id_idx").on(table.document_id),
|
|
12548
|
+
index("annotation_thread_status_idx").on(table.status)
|
|
12549
|
+
]);
|
|
12550
|
+
var SIGNOFF_SUBJECT_KINDS = ["doc_version", "stage", "pipeline_gate"];
|
|
12551
|
+
var SIGNOFF_CHECKPOINTS = ["plan", "types", "design"];
|
|
12552
|
+
var SIGNOFF_DECISIONS = ["approved", "changes_requested", "auto"];
|
|
12553
|
+
var signoff = sqliteTable("signoff", {
|
|
12554
|
+
...entity("signoff"),
|
|
12555
|
+
subject_kind: text("subject_kind", { enum: SIGNOFF_SUBJECT_KINDS }).notNull(),
|
|
12556
|
+
subject_id: text("subject_id").notNull(),
|
|
12557
|
+
checkpoint: text("checkpoint", { enum: SIGNOFF_CHECKPOINTS }).notNull(),
|
|
12558
|
+
task_id: text("task_id").references(() => task.id),
|
|
12559
|
+
decision: text("decision", { enum: SIGNOFF_DECISIONS }),
|
|
12560
|
+
decided_by: text("decided_by").references(() => user.id),
|
|
12561
|
+
decided_at: text("decided_at"),
|
|
12562
|
+
reason: text("reason"),
|
|
12563
|
+
content_hash: text("content_hash")
|
|
12564
|
+
}, (table) => [
|
|
12565
|
+
index("signoff_subject_idx").on(table.subject_kind, table.subject_id),
|
|
12566
|
+
index("signoff_task_id_idx").on(table.task_id)
|
|
12567
|
+
]);
|
|
12517
12568
|
var checklist = sqliteTable("checklist", {
|
|
12518
12569
|
...entity("checklist"),
|
|
12519
12570
|
task_id: text("task_id").notNull().references(() => task.id),
|
|
@@ -12755,6 +12806,18 @@ var pipeline_analysis_template_relations = relations(pipeline_analysis_template,
|
|
|
12755
12806
|
var pipeline_oidc_trust_relations = relations(pipeline_oidc_trust, ({ one }) => ({
|
|
12756
12807
|
owner: one(user, { fields: [pipeline_oidc_trust.owner_id], references: [user.id] })
|
|
12757
12808
|
}));
|
|
12809
|
+
var document_relations = relations(document, ({ one, many }) => ({
|
|
12810
|
+
project: one(project, { fields: [document.project_id], references: [project.id] }),
|
|
12811
|
+
task: one(task, { fields: [document.task_id], references: [task.id] }),
|
|
12812
|
+
threads: many(annotation_thread)
|
|
12813
|
+
}));
|
|
12814
|
+
var annotation_thread_relations = relations(annotation_thread, ({ one }) => ({
|
|
12815
|
+
document: one(document, { fields: [annotation_thread.document_id], references: [document.id] })
|
|
12816
|
+
}));
|
|
12817
|
+
var signoff_relations = relations(signoff, ({ one }) => ({
|
|
12818
|
+
task: one(task, { fields: [signoff.task_id], references: [task.id] }),
|
|
12819
|
+
decided_by_user: one(user, { fields: [signoff.decided_by], references: [user.id] })
|
|
12820
|
+
}));
|
|
12758
12821
|
var upsert_project = exports_external.object({
|
|
12759
12822
|
id: exports_external.string().optional().nullable(),
|
|
12760
12823
|
project_id: exports_external.string(),
|
|
@@ -13055,6 +13118,10 @@ var upsert_task_link = exports_external.object({
|
|
|
13055
13118
|
ref: external_ref.nullable().optional(),
|
|
13056
13119
|
note: exports_external.string().nullable().optional()
|
|
13057
13120
|
});
|
|
13121
|
+
var scan_diff_proposal = exports_external.object({
|
|
13122
|
+
parent_id: exports_external.string().nullable(),
|
|
13123
|
+
proposing_task_id: exports_external.string().nullable()
|
|
13124
|
+
});
|
|
13058
13125
|
var apply_op = exports_external.discriminatedUnion("op", [
|
|
13059
13126
|
exports_external.object({
|
|
13060
13127
|
op: exports_external.literal("create"),
|
|
@@ -13086,8 +13153,107 @@ var task_event_payload = exports_external.discriminatedUnion("kind", [
|
|
|
13086
13153
|
exports_external.object({ kind: exports_external.literal("edge.removed"), link_kind: task_link_kind, dst_id: exports_external.string().nullable() }),
|
|
13087
13154
|
exports_external.object({ kind: exports_external.literal("node.children_all_done") }),
|
|
13088
13155
|
exports_external.object({ kind: exports_external.literal("policy.fired"), policy: exports_external.enum(COMPLETION_POLICIES) }),
|
|
13089
|
-
exports_external.object({ kind: exports_external.literal("node.completion_stale"), child_id: exports_external.string() })
|
|
13156
|
+
exports_external.object({ kind: exports_external.literal("node.completion_stale"), child_id: exports_external.string() }),
|
|
13157
|
+
exports_external.object({ kind: exports_external.literal("doc.pushed"), document_id: exports_external.string(), version: exports_external.string() }),
|
|
13158
|
+
exports_external.object({ kind: exports_external.literal("thread.opened"), document_id: exports_external.string(), thread_id: exports_external.string() }),
|
|
13159
|
+
exports_external.object({ kind: exports_external.literal("thread.resolved"), document_id: exports_external.string(), thread_id: exports_external.string() }),
|
|
13160
|
+
exports_external.object({
|
|
13161
|
+
kind: exports_external.literal("signoff.requested"),
|
|
13162
|
+
subject_kind: exports_external.enum(SIGNOFF_SUBJECT_KINDS),
|
|
13163
|
+
subject_id: exports_external.string(),
|
|
13164
|
+
checkpoint: exports_external.enum(SIGNOFF_CHECKPOINTS)
|
|
13165
|
+
}),
|
|
13166
|
+
exports_external.object({
|
|
13167
|
+
kind: exports_external.literal("signoff.decided"),
|
|
13168
|
+
subject_kind: exports_external.enum(SIGNOFF_SUBJECT_KINDS),
|
|
13169
|
+
subject_id: exports_external.string(),
|
|
13170
|
+
checkpoint: exports_external.enum(SIGNOFF_CHECKPOINTS),
|
|
13171
|
+
decision: exports_external.enum(SIGNOFF_DECISIONS)
|
|
13172
|
+
}),
|
|
13173
|
+
exports_external.object({
|
|
13174
|
+
kind: exports_external.literal("stage.advanced"),
|
|
13175
|
+
from: exports_external.enum(SDLC_STAGES).nullable(),
|
|
13176
|
+
to: exports_external.enum(SDLC_STAGES),
|
|
13177
|
+
override: exports_external.boolean()
|
|
13178
|
+
})
|
|
13090
13179
|
]);
|
|
13180
|
+
var document_kind = exports_external.enum(DOCUMENT_KINDS);
|
|
13181
|
+
var push_doc_request = exports_external.object({
|
|
13182
|
+
document_id: exports_external.string().optional(),
|
|
13183
|
+
project_id: exports_external.string(),
|
|
13184
|
+
task_id: exports_external.string().nullable().optional(),
|
|
13185
|
+
kind: document_kind,
|
|
13186
|
+
title: exports_external.string().min(1),
|
|
13187
|
+
html: exports_external.string()
|
|
13188
|
+
});
|
|
13189
|
+
var thread_anchor = exports_external.object({
|
|
13190
|
+
quote: exports_external.string().min(1),
|
|
13191
|
+
prefix: exports_external.string(),
|
|
13192
|
+
suffix: exports_external.string(),
|
|
13193
|
+
start: exports_external.number().int().nonnegative(),
|
|
13194
|
+
end: exports_external.number().int().nonnegative()
|
|
13195
|
+
});
|
|
13196
|
+
var thread_entry = exports_external.object({
|
|
13197
|
+
author: exports_external.string().min(1),
|
|
13198
|
+
channel: exports_external.enum(["user", "api"]),
|
|
13199
|
+
body: exports_external.string().min(1),
|
|
13200
|
+
at: exports_external.string()
|
|
13201
|
+
});
|
|
13202
|
+
var thread_status = exports_external.enum(THREAD_STATUSES);
|
|
13203
|
+
var thread_marker = exports_external.object({
|
|
13204
|
+
id: exports_external.string().min(1),
|
|
13205
|
+
anchor: thread_anchor,
|
|
13206
|
+
status: thread_status,
|
|
13207
|
+
blocking: exports_external.boolean(),
|
|
13208
|
+
entries: exports_external.array(thread_entry).min(1)
|
|
13209
|
+
});
|
|
13210
|
+
var create_thread_request = exports_external.object({
|
|
13211
|
+
quote: exports_external.string().min(1),
|
|
13212
|
+
prefix: exports_external.string(),
|
|
13213
|
+
suffix: exports_external.string(),
|
|
13214
|
+
start: exports_external.number().int().nonnegative(),
|
|
13215
|
+
end: exports_external.number().int().nonnegative(),
|
|
13216
|
+
body: exports_external.string().min(1),
|
|
13217
|
+
blocking: exports_external.boolean().optional().default(false)
|
|
13218
|
+
});
|
|
13219
|
+
var reply_thread_request = exports_external.object({ body: exports_external.string().min(1) });
|
|
13220
|
+
var toggle_blocking_request = exports_external.object({ blocking: exports_external.boolean() });
|
|
13221
|
+
var signoff_subject_kind = exports_external.enum(SIGNOFF_SUBJECT_KINDS);
|
|
13222
|
+
var signoff_checkpoint = exports_external.enum(SIGNOFF_CHECKPOINTS);
|
|
13223
|
+
var request_checkpoint_request = exports_external.object({
|
|
13224
|
+
project_id: exports_external.string(),
|
|
13225
|
+
subject_kind: signoff_subject_kind,
|
|
13226
|
+
subject_id: exports_external.string(),
|
|
13227
|
+
checkpoint: signoff_checkpoint,
|
|
13228
|
+
blocks: exports_external.array(exports_external.string()).default([])
|
|
13229
|
+
});
|
|
13230
|
+
var decide_checkpoint_request = exports_external.object({
|
|
13231
|
+
decision: exports_external.union([exports_external.literal("approved"), exports_external.literal("changes_requested")]),
|
|
13232
|
+
reason: exports_external.string().optional()
|
|
13233
|
+
});
|
|
13234
|
+
var sdlc_stage = exports_external.enum(SDLC_STAGES);
|
|
13235
|
+
var advance_stage_request = exports_external.object({
|
|
13236
|
+
to: sdlc_stage,
|
|
13237
|
+
override: exports_external.boolean().optional().default(false),
|
|
13238
|
+
reason: exports_external.string().optional()
|
|
13239
|
+
});
|
|
13240
|
+
var push_interface_report_request = exports_external.object({
|
|
13241
|
+
document_id: exports_external.string().optional(),
|
|
13242
|
+
project_id: exports_external.string(),
|
|
13243
|
+
task_id: exports_external.string().nullable().optional(),
|
|
13244
|
+
title: exports_external.string().min(1),
|
|
13245
|
+
normalized: exports_external.string()
|
|
13246
|
+
});
|
|
13247
|
+
var REVIEW_ITEM_KINDS = ["signoff", "annotation", "pipeline_gate", "scan_diff"];
|
|
13248
|
+
var review_item = exports_external.object({
|
|
13249
|
+
kind: exports_external.enum(REVIEW_ITEM_KINDS),
|
|
13250
|
+
subject_id: exports_external.string(),
|
|
13251
|
+
title: exports_external.string(),
|
|
13252
|
+
project_id: exports_external.string().nullable(),
|
|
13253
|
+
created_at: exports_external.string(),
|
|
13254
|
+
path: exports_external.string()
|
|
13255
|
+
});
|
|
13256
|
+
var reviews_pending_response = exports_external.object({ items: exports_external.array(review_item) });
|
|
13091
13257
|
var hook_selector = exports_external.object({
|
|
13092
13258
|
subject_kind: exports_external.enum(TASK_KINDS).optional(),
|
|
13093
13259
|
tag: exports_external.string().optional(),
|
|
@@ -13628,12 +13794,8 @@ function handleHttpResponse(response) {
|
|
|
13628
13794
|
throw new AuthenticationError("Invalid or expired API key");
|
|
13629
13795
|
case HTTP_STATUS.NOT_FOUND:
|
|
13630
13796
|
throw new ApiError("Resource not found", { statusCode: HTTP_STATUS.NOT_FOUND });
|
|
13631
|
-
case HTTP_STATUS.BAD_REQUEST:
|
|
13632
|
-
break;
|
|
13633
13797
|
default:
|
|
13634
|
-
|
|
13635
|
-
throw new ApiError(`Request failed: ${response.statusText}`, { statusCode: response.status });
|
|
13636
|
-
}
|
|
13798
|
+
break;
|
|
13637
13799
|
}
|
|
13638
13800
|
}
|
|
13639
13801
|
async function handleResponseError(response) {
|
|
@@ -13644,11 +13806,13 @@ async function handleResponseError(response) {
|
|
|
13644
13806
|
const raw = JSON.parse(errorText);
|
|
13645
13807
|
parsedError = raw;
|
|
13646
13808
|
} catch {}
|
|
13647
|
-
|
|
13648
|
-
|
|
13809
|
+
const structuredError = typeof parsedError?.error === "object" ? parsedError.error : undefined;
|
|
13810
|
+
if (response.status === HTTP_STATUS.BAD_REQUEST && structuredError?.name === "ZodError") {
|
|
13811
|
+
const zodErrorDetails = structuredError.issues ? JSON.stringify(structuredError) : errorMessage;
|
|
13649
13812
|
throw new ValidationError(zodErrorDetails);
|
|
13650
13813
|
}
|
|
13651
|
-
|
|
13814
|
+
const message = typeof parsedError?.error === "string" ? parsedError.error : errorMessage;
|
|
13815
|
+
throw new ApiError(message, { statusCode: response.status });
|
|
13652
13816
|
}
|
|
13653
13817
|
function handleNetworkError(error) {
|
|
13654
13818
|
const message = error instanceof Error ? error.message : "Unknown network error";
|
|
@@ -14119,6 +14283,7 @@ var ApiClient2 = class {
|
|
|
14119
14283
|
near: (id2) => wrap(() => this.clients.tasks.get(`/tasks/${id2}/near`)),
|
|
14120
14284
|
claim: (id2, data) => wrap(() => this.clients.tasks.post(`/tasks/${id2}/claim`, { body: data })),
|
|
14121
14285
|
done: (id2, data) => wrap(() => this.clients.tasks.post(`/tasks/${id2}/done`, { body: data })),
|
|
14286
|
+
advanceStage: (id2, data) => wrap(() => this.clients.tasks.post(`/tasks/${id2}/stage`, { body: data })),
|
|
14122
14287
|
link: (data) => wrap(() => this.clients.tasks.post("/tasks/link", { body: data })),
|
|
14123
14288
|
unlink: (link_id) => wrap(() => this.clients.tasks.delete(`/tasks/link/${link_id}`)),
|
|
14124
14289
|
apply: (data) => wrap(() => this.clients.tasks.post("/tasks/apply", { body: data }))
|
|
@@ -14126,6 +14291,44 @@ var ApiClient2 = class {
|
|
|
14126
14291
|
this.tags = {
|
|
14127
14292
|
list: () => wrap(() => this.clients.tags.get("/tags"))
|
|
14128
14293
|
};
|
|
14294
|
+
this.docs = {
|
|
14295
|
+
list: (filters) => wrap(() => {
|
|
14296
|
+
const query = { project_id: filters.project_id };
|
|
14297
|
+
if (filters.task_id)
|
|
14298
|
+
query.task_id = filters.task_id;
|
|
14299
|
+
return this.clients.docs.get("/docs", { query });
|
|
14300
|
+
}),
|
|
14301
|
+
push: (data) => wrap(() => this.clients.docs.post("/docs", { body: data })),
|
|
14302
|
+
pull: (id2, version2) => wrap(() => this.clients.docs.get(`/docs/${id2}`, version2 ? { query: { version: version2 } } : {})),
|
|
14303
|
+
versions: (id2) => wrap(() => this.clients.docs.get(`/docs/${id2}/versions`)),
|
|
14304
|
+
createThread: (document_id, data) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads`, { body: data })),
|
|
14305
|
+
replyThread: (document_id, thread_id, body) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads/${thread_id}/reply`, { body: { body } })),
|
|
14306
|
+
resolveThread: (document_id, thread_id) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads/${thread_id}/resolve`, {})),
|
|
14307
|
+
toggleBlocking: (document_id, thread_id, blocking) => wrap(() => this.clients.docs.post(`/docs/${document_id}/threads/${thread_id}/blocking`, { body: { blocking } })),
|
|
14308
|
+
unresolved: (filters) => wrap(() => {
|
|
14309
|
+
const query = {};
|
|
14310
|
+
if (filters.project_id)
|
|
14311
|
+
query.project_id = filters.project_id;
|
|
14312
|
+
if (filters.document_id)
|
|
14313
|
+
query.document_id = filters.document_id;
|
|
14314
|
+
return this.clients.docs.get("/docs/annotations/unresolved", { query });
|
|
14315
|
+
}),
|
|
14316
|
+
pushInterfaceReport: (data) => wrap(() => this.clients.docs.post("/docs/interface", { body: data })),
|
|
14317
|
+
interfaceStatus: (filters) => wrap(() => {
|
|
14318
|
+
const query = { project_id: filters.project_id, title: filters.title };
|
|
14319
|
+
if (filters.task_id)
|
|
14320
|
+
query.task_id = filters.task_id;
|
|
14321
|
+
return this.clients.docs.get("/docs/interface/status", { query });
|
|
14322
|
+
})
|
|
14323
|
+
};
|
|
14324
|
+
this.signoffs = {
|
|
14325
|
+
request: (data) => wrap(() => this.clients.signoffs.post("/signoffs", { body: data })),
|
|
14326
|
+
find: (id2) => wrap(() => this.clients.signoffs.get(`/signoffs/${id2}`)),
|
|
14327
|
+
decide: (id2, data) => wrap(() => this.clients.signoffs.post(`/signoffs/${id2}/decide`, { body: data }))
|
|
14328
|
+
};
|
|
14329
|
+
this.reviews = {
|
|
14330
|
+
pending: () => wrap(() => this.clients.reviews.get("/reviews/pending"))
|
|
14331
|
+
};
|
|
14129
14332
|
this.github = {
|
|
14130
14333
|
repos: () => wrap(() => this.clients.github.get("/repos")),
|
|
14131
14334
|
branches: (owner, repo) => wrap(() => this.clients.github.get(`/repos/${owner}/${repo}/branches`))
|
|
@@ -14270,6 +14473,9 @@ var ApiClient2 = class {
|
|
|
14270
14473
|
return this.clients.projects.get("/activity/ai", Object.keys(query).length ? { query } : {});
|
|
14271
14474
|
})
|
|
14272
14475
|
};
|
|
14476
|
+
this.admin = {
|
|
14477
|
+
verifyFold: () => wrap(() => this.clients.admin.get("/admin/verify-fold"))
|
|
14478
|
+
};
|
|
14273
14479
|
this.user = {
|
|
14274
14480
|
me: () => wrap(() => this.clients.auth.get("/user/me")),
|
|
14275
14481
|
history: () => wrap(() => this.clients.auth.get("/user/history")),
|
|
@@ -14491,7 +14697,11 @@ var ApiClient2 = class {
|
|
|
14491
14697
|
media: new ApiClient({ ...clientOptions, category: "media" }),
|
|
14492
14698
|
pulse: new ApiClient({ ...clientOptions, base_url: `${base_url}/pulse`, category: "pulse" }),
|
|
14493
14699
|
pipelines: new ApiClient({ ...clientOptions, category: "pipelines" }),
|
|
14494
|
-
hooks: new ApiClient({ ...clientOptions, category: "hooks" })
|
|
14700
|
+
hooks: new ApiClient({ ...clientOptions, category: "hooks" }),
|
|
14701
|
+
docs: new ApiClient({ ...clientOptions, category: "docs" }),
|
|
14702
|
+
signoffs: new ApiClient({ ...clientOptions, category: "signoffs" }),
|
|
14703
|
+
reviews: new ApiClient({ ...clientOptions, category: "reviews" }),
|
|
14704
|
+
admin: new ApiClient({ ...clientOptions, category: "admin" })
|
|
14495
14705
|
};
|
|
14496
14706
|
}
|
|
14497
14707
|
history() {
|
|
@@ -14755,6 +14965,12 @@ var tools = {
|
|
|
14755
14965
|
inputSchema: github_branches,
|
|
14756
14966
|
execute: async (client, input) => unwrap2(await client.github.branches(input.owner, input.repo))
|
|
14757
14967
|
}),
|
|
14968
|
+
devpad_admin_verify_fold: define_tool({
|
|
14969
|
+
name: "devpad_admin_verify_fold",
|
|
14970
|
+
description: "Compare the frozen milestone/goal tables against their task-row projections (the v2.4 fold) for the authenticated account and report any divergence",
|
|
14971
|
+
inputSchema: exports_external.object({}),
|
|
14972
|
+
execute: async (client) => unwrap2(await client.admin.verifyFold())
|
|
14973
|
+
}),
|
|
14758
14974
|
devpad_projects_delete: define_tool({
|
|
14759
14975
|
name: "devpad_projects_delete",
|
|
14760
14976
|
description: "Delete a project",
|
|
@@ -14899,6 +15115,15 @@ var tools = {
|
|
|
14899
15115
|
}),
|
|
14900
15116
|
execute: async (client, input) => unwrap2(await client.tasks.unlink(input.id))
|
|
14901
15117
|
}),
|
|
15118
|
+
devpad_tasks_advance_stage: define_tool({
|
|
15119
|
+
name: "devpad_tasks_advance_stage",
|
|
15120
|
+
description: "Advance a task's SDLC stage (ideate|plan|build|review|deploy|live). Gated hops (plan->build needs an approved plan checkpoint; review->deploy needs approved types + design when a design doc exists) 409 naming what's missing unless override:true, which always succeeds but is audited.",
|
|
15121
|
+
inputSchema: advance_stage_request.extend({ id: exports_external.string().describe("Task ID") }),
|
|
15122
|
+
execute: async (client, input) => {
|
|
15123
|
+
const { id: id2, ...rest } = input;
|
|
15124
|
+
return unwrap2(await client.tasks.advanceStage(id2, rest));
|
|
15125
|
+
}
|
|
15126
|
+
}),
|
|
14902
15127
|
devpad_tasks_apply: define_tool({
|
|
14903
15128
|
name: "devpad_tasks_apply",
|
|
14904
15129
|
description: "Batch apply create/update/reparent/link/unlink/claim/complete ops atomically, with $0/$1… temp handles for subtree creation. Replaying the same idempotency_key returns the prior response verbatim.",
|
|
@@ -15448,6 +15673,128 @@ var tools = {
|
|
|
15448
15673
|
owner_id: exports_external.string().describe("Owner ID (must match the policy's owner)")
|
|
15449
15674
|
}),
|
|
15450
15675
|
execute: async (client, input) => unwrap2(await client.pipelines.oidc_trust.delete(input.id, { owner_id: input.owner_id }))
|
|
15676
|
+
}),
|
|
15677
|
+
devpad_docs_list: define_tool({
|
|
15678
|
+
name: "devpad_docs_list",
|
|
15679
|
+
description: "List documents for a project (optionally filtered to one task)",
|
|
15680
|
+
inputSchema: exports_external.object({
|
|
15681
|
+
project_id: exports_external.string().describe("Project ID"),
|
|
15682
|
+
task_id: exports_external.string().optional().describe("Filter to documents attached to this task")
|
|
15683
|
+
}),
|
|
15684
|
+
execute: async (client, input) => unwrap2(await client.docs.list(input))
|
|
15685
|
+
}),
|
|
15686
|
+
devpad_docs_push: define_tool({
|
|
15687
|
+
name: "devpad_docs_push",
|
|
15688
|
+
description: "Push HTML content as a new document (omit document_id) or a new version on an existing one. HTML is sanitized server-side before storage — script/iframe/object/embed/form, event handlers, and javascript:/data: URLs never survive.",
|
|
15689
|
+
inputSchema: push_doc_request,
|
|
15690
|
+
execute: async (client, input) => unwrap2(await client.docs.push(input))
|
|
15691
|
+
}),
|
|
15692
|
+
devpad_docs_pull: define_tool({
|
|
15693
|
+
name: "devpad_docs_pull",
|
|
15694
|
+
description: "Pull a document's content at a specific version (default: head)",
|
|
15695
|
+
inputSchema: exports_external.object({
|
|
15696
|
+
id: exports_external.string().describe("Document ID"),
|
|
15697
|
+
version: exports_external.string().optional().describe("Corpus version — defaults to head")
|
|
15698
|
+
}),
|
|
15699
|
+
execute: async (client, input) => unwrap2(await client.docs.pull(input.id, input.version))
|
|
15700
|
+
}),
|
|
15701
|
+
devpad_docs_versions: define_tool({
|
|
15702
|
+
name: "devpad_docs_versions",
|
|
15703
|
+
description: "Full version history for a document, newest first (the lineage walk)",
|
|
15704
|
+
inputSchema: exports_external.object({
|
|
15705
|
+
id: exports_external.string().describe("Document ID")
|
|
15706
|
+
}),
|
|
15707
|
+
execute: async (client, input) => unwrap2(await client.docs.versions(input.id))
|
|
15708
|
+
}),
|
|
15709
|
+
devpad_annotations_create: define_tool({
|
|
15710
|
+
name: "devpad_annotations_create",
|
|
15711
|
+
description: "Open a new annotation thread on a document, anchored to an exact quote (with prefix/suffix context + char offsets for re-anchoring across edits)",
|
|
15712
|
+
inputSchema: create_thread_request.extend({ document_id: exports_external.string().describe("Document ID") }),
|
|
15713
|
+
execute: async (client, input) => {
|
|
15714
|
+
const { document_id, ...rest } = input;
|
|
15715
|
+
return unwrap2(await client.docs.createThread(document_id, rest));
|
|
15716
|
+
}
|
|
15717
|
+
}),
|
|
15718
|
+
devpad_annotations_reply: define_tool({
|
|
15719
|
+
name: "devpad_annotations_reply",
|
|
15720
|
+
description: "Reply to an existing annotation thread",
|
|
15721
|
+
inputSchema: exports_external.object({
|
|
15722
|
+
document_id: exports_external.string().describe("Document ID"),
|
|
15723
|
+
thread_id: exports_external.string().describe("Thread ID (from the marker JSON, not the document ID)"),
|
|
15724
|
+
body: exports_external.string().min(1).describe("Reply text")
|
|
15725
|
+
}),
|
|
15726
|
+
execute: async (client, input) => unwrap2(await client.docs.replyThread(input.document_id, input.thread_id, input.body))
|
|
15727
|
+
}),
|
|
15728
|
+
devpad_annotations_resolve: define_tool({
|
|
15729
|
+
name: "devpad_annotations_resolve",
|
|
15730
|
+
description: "Mark an annotation thread resolved",
|
|
15731
|
+
inputSchema: exports_external.object({
|
|
15732
|
+
document_id: exports_external.string().describe("Document ID"),
|
|
15733
|
+
thread_id: exports_external.string().describe("Thread ID")
|
|
15734
|
+
}),
|
|
15735
|
+
execute: async (client, input) => unwrap2(await client.docs.resolveThread(input.document_id, input.thread_id))
|
|
15736
|
+
}),
|
|
15737
|
+
devpad_annotations_toggle_blocking: define_tool({
|
|
15738
|
+
name: "devpad_annotations_toggle_blocking",
|
|
15739
|
+
description: "Toggle whether an annotation thread blocks approval",
|
|
15740
|
+
inputSchema: exports_external.object({
|
|
15741
|
+
document_id: exports_external.string().describe("Document ID"),
|
|
15742
|
+
thread_id: exports_external.string().describe("Thread ID"),
|
|
15743
|
+
blocking: exports_external.boolean()
|
|
15744
|
+
}),
|
|
15745
|
+
execute: async (client, input) => unwrap2(await client.docs.toggleBlocking(input.document_id, input.thread_id, input.blocking))
|
|
15746
|
+
}),
|
|
15747
|
+
devpad_interface_push: define_tool({
|
|
15748
|
+
name: "devpad_interface_push",
|
|
15749
|
+
description: "Push already-normalized declaration text as a new interface-doc version. The server independently recomputes additive-vs-breaking against its own stored previous content and auto-approves additive diffs against an approved base.",
|
|
15750
|
+
inputSchema: push_interface_report_request,
|
|
15751
|
+
execute: async (client, input) => unwrap2(await client.docs.pushInterfaceReport(input))
|
|
15752
|
+
}),
|
|
15753
|
+
devpad_interface_status: define_tool({
|
|
15754
|
+
name: "devpad_interface_status",
|
|
15755
|
+
description: "Get the approved/auto content_hash for an interface doc, for a client-side hash comparison (the `check` verb)",
|
|
15756
|
+
inputSchema: exports_external.object({
|
|
15757
|
+
project_id: exports_external.string().describe("Project ID"),
|
|
15758
|
+
task_id: exports_external.string().optional().describe("Task ID"),
|
|
15759
|
+
title: exports_external.string().describe("The interface document's title (package name)")
|
|
15760
|
+
}),
|
|
15761
|
+
execute: async (client, input) => unwrap2(await client.docs.interfaceStatus(input))
|
|
15762
|
+
}),
|
|
15763
|
+
devpad_reviews_pending: define_tool({
|
|
15764
|
+
name: "devpad_reviews_pending",
|
|
15765
|
+
description: "The human's queue — one typed aggregate across pending signoff checkpoints, open blocking annotation threads, pending pipeline manual gates, and pending scanner diffs, scoped to the authenticated user",
|
|
15766
|
+
inputSchema: exports_external.object({}),
|
|
15767
|
+
execute: async (client) => unwrap2(await client.reviews.pending())
|
|
15768
|
+
}),
|
|
15769
|
+
devpad_annotations_unresolved: define_tool({
|
|
15770
|
+
name: "devpad_annotations_unresolved",
|
|
15771
|
+
description: "List pending annotation threads (anything not resolved) for a project or a specific document",
|
|
15772
|
+
inputSchema: exports_external.object({
|
|
15773
|
+
project_id: exports_external.string().optional().describe("Project ID"),
|
|
15774
|
+
document_id: exports_external.string().optional().describe("Document ID")
|
|
15775
|
+
}),
|
|
15776
|
+
execute: async (client, input) => unwrap2(await client.docs.unresolved(input))
|
|
15777
|
+
}),
|
|
15778
|
+
devpad_signoffs_request: define_tool({
|
|
15779
|
+
name: "devpad_signoffs_request",
|
|
15780
|
+
description: "Request a human signoff checkpoint — creates a pending approval node that blocks the named downstream tasks until decided",
|
|
15781
|
+
inputSchema: request_checkpoint_request,
|
|
15782
|
+
execute: async (client, input) => unwrap2(await client.signoffs.request(input))
|
|
15783
|
+
}),
|
|
15784
|
+
devpad_signoffs_get: define_tool({
|
|
15785
|
+
name: "devpad_signoffs_get",
|
|
15786
|
+
description: "Get a signoff checkpoint's current state",
|
|
15787
|
+
inputSchema: exports_external.object({ id: exports_external.string().describe("Signoff ID") }),
|
|
15788
|
+
execute: async (client, input) => unwrap2(await client.signoffs.find(input.id))
|
|
15789
|
+
}),
|
|
15790
|
+
devpad_signoffs_decide: define_tool({
|
|
15791
|
+
name: "devpad_signoffs_decide",
|
|
15792
|
+
description: "Decide a signoff checkpoint (approved | changes_requested). Human-only — an api-channel key gets 403. Approving a doc_version subject is vetoed by any open blocking annotation thread.",
|
|
15793
|
+
inputSchema: decide_checkpoint_request.extend({ id: exports_external.string().describe("Signoff ID") }),
|
|
15794
|
+
execute: async (client, input) => {
|
|
15795
|
+
const { id: id2, ...rest } = input;
|
|
15796
|
+
return unwrap2(await client.signoffs.decide(id2, rest));
|
|
15797
|
+
}
|
|
15451
15798
|
})
|
|
15452
15799
|
};
|
|
15453
15800
|
var toolNames = Object.keys(tools);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devpad/mcp",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.7",
|
|
4
4
|
"description": "MCP server for devpad - exposes devpad API functionality via Model Context Protocol",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai-tools",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"zod-to-json-schema": "^3.24.6"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@devpad/api": "^2.3.
|
|
53
|
+
"@devpad/api": "^2.3.7",
|
|
54
54
|
"@types/node": "^24.3.0",
|
|
55
55
|
"typescript": "^5.0.0"
|
|
56
56
|
},
|