@devpad/mcp 2.2.11 → 2.2.12
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 +488 -254
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -11921,7 +11921,7 @@ class PrimaryKey {
|
|
|
11921
11921
|
}
|
|
11922
11922
|
}
|
|
11923
11923
|
|
|
11924
|
-
// ../api/dist/chunk-
|
|
11924
|
+
// ../api/dist/chunk-DIX4XVUQ.js
|
|
11925
11925
|
var timestamps = () => ({
|
|
11926
11926
|
created_at: text("created_at").notNull().default(sql`(CURRENT_TIMESTAMP)`),
|
|
11927
11927
|
updated_at: text("updated_at").notNull().default(sql`(CURRENT_TIMESTAMP)`)
|
|
@@ -12106,16 +12106,12 @@ var tag = sqliteTable("tag", {
|
|
|
12106
12106
|
title: text("title").notNull(),
|
|
12107
12107
|
color: text("color"),
|
|
12108
12108
|
render: int("render", { mode: "boolean" }).notNull().default(true)
|
|
12109
|
-
}, (table) => (
|
|
12110
|
-
tag_unique: unique("tag_unique").on(table.owner_id, table.title)
|
|
12111
|
-
}));
|
|
12109
|
+
}, (table) => [unique("tag_unique").on(table.owner_id, table.title)]);
|
|
12112
12110
|
var task_tag = sqliteTable("task_tag", {
|
|
12113
12111
|
task_id: text("task_id").notNull().references(() => task.id),
|
|
12114
12112
|
tag_id: text("tag_id").notNull().references(() => tag.id),
|
|
12115
12113
|
...timestamps()
|
|
12116
|
-
}, (table) => ({
|
|
12117
|
-
task_tag_unique: primaryKey({ columns: [table.task_id, table.tag_id] })
|
|
12118
|
-
}));
|
|
12114
|
+
}, (table) => [primaryKey({ columns: [table.task_id, table.tag_id] })]);
|
|
12119
12115
|
var commit_detail = sqliteTable("commit_detail", {
|
|
12120
12116
|
sha: text("sha").primaryKey(),
|
|
12121
12117
|
message: text("message").notNull(),
|
|
@@ -12584,8 +12580,21 @@ var dashboard_response = exports_external.object({
|
|
|
12584
12580
|
// ../../node_modules/@f0rbit/corpus/dist/types.js
|
|
12585
12581
|
var ok = (value) => ({ ok: true, value });
|
|
12586
12582
|
var err = (error) => ({ ok: false, error });
|
|
12583
|
+
function define_store(id2, codec, opts) {
|
|
12584
|
+
if (typeof opts === "string") {
|
|
12585
|
+
return { id: id2, codec, description: opts };
|
|
12586
|
+
}
|
|
12587
|
+
return { id: id2, codec, description: opts?.description, data_key_fn: opts?.data_key_fn };
|
|
12588
|
+
}
|
|
12587
12589
|
|
|
12588
12590
|
// ../../node_modules/@f0rbit/corpus/dist/utils.js
|
|
12591
|
+
function json_codec(schema) {
|
|
12592
|
+
return {
|
|
12593
|
+
content_type: "application/json",
|
|
12594
|
+
encode: async (value) => new TextEncoder().encode(JSON.stringify(value)),
|
|
12595
|
+
decode: async (bytes) => schema.parse(JSON.parse(new TextDecoder().decode(bytes)))
|
|
12596
|
+
};
|
|
12597
|
+
}
|
|
12589
12598
|
function create_filter_pipeline(config) {
|
|
12590
12599
|
return (items, opts) => {
|
|
12591
12600
|
let filtered = items;
|
|
@@ -12771,6 +12780,193 @@ var VersionSetManifestSchema = exports_external.object({
|
|
|
12771
12780
|
grants_ref: exports_external.string().optional(),
|
|
12772
12781
|
template_ref: exports_external.string().optional()
|
|
12773
12782
|
});
|
|
12783
|
+
// ../api/dist/chunk-5L3AUVMM.js
|
|
12784
|
+
var PostContentSchema = exports_external.object({
|
|
12785
|
+
title: exports_external.string().min(1),
|
|
12786
|
+
content: exports_external.string(),
|
|
12787
|
+
description: exports_external.string().optional(),
|
|
12788
|
+
format: exports_external.enum(["md", "adoc"])
|
|
12789
|
+
});
|
|
12790
|
+
var postsStoreDefinition = define_store("posts", json_codec(PostContentSchema));
|
|
12791
|
+
var VersionInfoSchema = exports_external.object({
|
|
12792
|
+
hash: exports_external.string(),
|
|
12793
|
+
parent: exports_external.string().nullable(),
|
|
12794
|
+
created_at: exports_external.date()
|
|
12795
|
+
});
|
|
12796
|
+
var parsePostContent = PostContentSchema.parse.bind(PostContentSchema);
|
|
12797
|
+
var PostRowSchema = exports_external.object({
|
|
12798
|
+
id: exports_external.number(),
|
|
12799
|
+
uuid: exports_external.string(),
|
|
12800
|
+
author_id: exports_external.string(),
|
|
12801
|
+
slug: exports_external.string(),
|
|
12802
|
+
corpus_version: exports_external.string().nullable(),
|
|
12803
|
+
category: exports_external.string(),
|
|
12804
|
+
archived: exports_external.boolean(),
|
|
12805
|
+
publish_at: exports_external.coerce.date().nullable(),
|
|
12806
|
+
created_at: exports_external.coerce.date(),
|
|
12807
|
+
updated_at: exports_external.coerce.date()
|
|
12808
|
+
});
|
|
12809
|
+
var PostRowInsertSchema = exports_external.object({
|
|
12810
|
+
id: exports_external.number().optional(),
|
|
12811
|
+
uuid: exports_external.string(),
|
|
12812
|
+
author_id: exports_external.string(),
|
|
12813
|
+
slug: exports_external.string(),
|
|
12814
|
+
corpus_version: exports_external.string().nullable().optional(),
|
|
12815
|
+
category: exports_external.string().optional(),
|
|
12816
|
+
archived: exports_external.boolean().optional(),
|
|
12817
|
+
publish_at: exports_external.coerce.date().nullable().optional(),
|
|
12818
|
+
created_at: exports_external.coerce.date().optional(),
|
|
12819
|
+
updated_at: exports_external.coerce.date().optional()
|
|
12820
|
+
});
|
|
12821
|
+
var CategorySchema = exports_external.object({
|
|
12822
|
+
id: exports_external.number(),
|
|
12823
|
+
owner_id: exports_external.string(),
|
|
12824
|
+
name: exports_external.string(),
|
|
12825
|
+
parent: exports_external.string().nullable()
|
|
12826
|
+
});
|
|
12827
|
+
var CategoryInsertSchema = exports_external.object({
|
|
12828
|
+
id: exports_external.number().optional(),
|
|
12829
|
+
owner_id: exports_external.string(),
|
|
12830
|
+
name: exports_external.string(),
|
|
12831
|
+
parent: exports_external.string().nullable().optional()
|
|
12832
|
+
});
|
|
12833
|
+
var TagSchema = exports_external.object({
|
|
12834
|
+
post_id: exports_external.number(),
|
|
12835
|
+
tag: exports_external.string()
|
|
12836
|
+
});
|
|
12837
|
+
var TagInsertSchema = exports_external.object({
|
|
12838
|
+
post_id: exports_external.number(),
|
|
12839
|
+
tag: exports_external.string()
|
|
12840
|
+
});
|
|
12841
|
+
var AccessKeyRowSchema = exports_external.object({
|
|
12842
|
+
id: exports_external.number(),
|
|
12843
|
+
user_id: exports_external.string(),
|
|
12844
|
+
key_hash: exports_external.string(),
|
|
12845
|
+
name: exports_external.string(),
|
|
12846
|
+
note: exports_external.string().nullable(),
|
|
12847
|
+
enabled: exports_external.boolean(),
|
|
12848
|
+
created_at: exports_external.coerce.date()
|
|
12849
|
+
});
|
|
12850
|
+
var AccessKeySchema = AccessKeyRowSchema.omit({ key_hash: true });
|
|
12851
|
+
var AccessKeyInsertSchema = exports_external.object({
|
|
12852
|
+
id: exports_external.number().optional(),
|
|
12853
|
+
user_id: exports_external.string(),
|
|
12854
|
+
key_hash: exports_external.string(),
|
|
12855
|
+
name: exports_external.string(),
|
|
12856
|
+
note: exports_external.string().nullable().optional(),
|
|
12857
|
+
enabled: exports_external.boolean().optional(),
|
|
12858
|
+
created_at: exports_external.coerce.date().optional()
|
|
12859
|
+
});
|
|
12860
|
+
var IntegrationSchema = exports_external.object({
|
|
12861
|
+
id: exports_external.number(),
|
|
12862
|
+
user_id: exports_external.string(),
|
|
12863
|
+
source: exports_external.string(),
|
|
12864
|
+
location: exports_external.string(),
|
|
12865
|
+
data: exports_external.record(exports_external.unknown()).nullable(),
|
|
12866
|
+
last_fetch: exports_external.coerce.date().nullable(),
|
|
12867
|
+
status: exports_external.string().nullable(),
|
|
12868
|
+
created_at: exports_external.coerce.date()
|
|
12869
|
+
});
|
|
12870
|
+
var IntegrationInsertSchema = exports_external.object({
|
|
12871
|
+
id: exports_external.number().optional(),
|
|
12872
|
+
user_id: exports_external.string(),
|
|
12873
|
+
source: exports_external.string(),
|
|
12874
|
+
location: exports_external.string(),
|
|
12875
|
+
data: exports_external.record(exports_external.unknown()).nullable().optional(),
|
|
12876
|
+
last_fetch: exports_external.coerce.date().nullable().optional(),
|
|
12877
|
+
status: exports_external.string().nullable().optional(),
|
|
12878
|
+
created_at: exports_external.coerce.date().optional()
|
|
12879
|
+
});
|
|
12880
|
+
var FetchLinkSchema = exports_external.object({
|
|
12881
|
+
id: exports_external.number(),
|
|
12882
|
+
post_id: exports_external.number(),
|
|
12883
|
+
integration_id: exports_external.number(),
|
|
12884
|
+
identifier: exports_external.string()
|
|
12885
|
+
});
|
|
12886
|
+
var FetchLinkInsertSchema = exports_external.object({
|
|
12887
|
+
id: exports_external.number().optional(),
|
|
12888
|
+
post_id: exports_external.number(),
|
|
12889
|
+
integration_id: exports_external.number(),
|
|
12890
|
+
identifier: exports_external.string()
|
|
12891
|
+
});
|
|
12892
|
+
var PostSchema = exports_external.object({
|
|
12893
|
+
id: exports_external.number(),
|
|
12894
|
+
uuid: exports_external.string().uuid(),
|
|
12895
|
+
author_id: exports_external.string(),
|
|
12896
|
+
slug: exports_external.string(),
|
|
12897
|
+
title: exports_external.string(),
|
|
12898
|
+
content: exports_external.string(),
|
|
12899
|
+
description: exports_external.string().optional(),
|
|
12900
|
+
format: exports_external.enum(["md", "adoc"]),
|
|
12901
|
+
category: exports_external.string(),
|
|
12902
|
+
tags: exports_external.array(exports_external.string()),
|
|
12903
|
+
archived: exports_external.boolean(),
|
|
12904
|
+
publish_at: exports_external.coerce.date().nullable(),
|
|
12905
|
+
created_at: exports_external.coerce.date(),
|
|
12906
|
+
updated_at: exports_external.coerce.date(),
|
|
12907
|
+
project_ids: exports_external.array(exports_external.string()),
|
|
12908
|
+
corpus_version: exports_external.string().nullable()
|
|
12909
|
+
});
|
|
12910
|
+
var SlugPattern = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
12911
|
+
var PostCreateSchema = exports_external.object({
|
|
12912
|
+
slug: exports_external.string().regex(SlugPattern, "Slug must be lowercase alphanumeric with hyphens"),
|
|
12913
|
+
title: exports_external.string().min(1),
|
|
12914
|
+
content: exports_external.string(),
|
|
12915
|
+
description: exports_external.string().optional(),
|
|
12916
|
+
format: exports_external.enum(["md", "adoc"]).default("md"),
|
|
12917
|
+
category: exports_external.string().default("root"),
|
|
12918
|
+
tags: exports_external.array(exports_external.string()).default([]),
|
|
12919
|
+
publish_at: exports_external.coerce.date().nullable().optional(),
|
|
12920
|
+
project_ids: exports_external.array(exports_external.string()).optional()
|
|
12921
|
+
});
|
|
12922
|
+
var PostUpdateSchema = exports_external.object({
|
|
12923
|
+
slug: exports_external.string().regex(SlugPattern, "Slug must be lowercase alphanumeric with hyphens").optional(),
|
|
12924
|
+
title: exports_external.string().min(1).optional(),
|
|
12925
|
+
content: exports_external.string().optional(),
|
|
12926
|
+
description: exports_external.string().optional(),
|
|
12927
|
+
format: exports_external.enum(["md", "adoc"]).optional(),
|
|
12928
|
+
category: exports_external.string().optional(),
|
|
12929
|
+
tags: exports_external.array(exports_external.string()).optional(),
|
|
12930
|
+
archived: exports_external.boolean().optional(),
|
|
12931
|
+
publish_at: exports_external.coerce.date().nullable().optional(),
|
|
12932
|
+
project_ids: exports_external.array(exports_external.string()).optional()
|
|
12933
|
+
});
|
|
12934
|
+
var PostListParamsSchema = exports_external.object({
|
|
12935
|
+
category: exports_external.string().optional(),
|
|
12936
|
+
tag: exports_external.string().optional(),
|
|
12937
|
+
project: exports_external.string().optional(),
|
|
12938
|
+
status: exports_external.enum(["published", "scheduled", "draft", "all"]).default("all"),
|
|
12939
|
+
archived: exports_external.boolean().default(false),
|
|
12940
|
+
limit: exports_external.coerce.number().min(1).max(100).default(10),
|
|
12941
|
+
offset: exports_external.coerce.number().min(0).default(0),
|
|
12942
|
+
sort: exports_external.enum(["created", "updated", "published"]).default("updated")
|
|
12943
|
+
});
|
|
12944
|
+
var PostsResponseSchema = exports_external.object({
|
|
12945
|
+
posts: exports_external.array(PostSchema),
|
|
12946
|
+
total_posts: exports_external.number(),
|
|
12947
|
+
total_pages: exports_external.number(),
|
|
12948
|
+
per_page: exports_external.number(),
|
|
12949
|
+
current_page: exports_external.number()
|
|
12950
|
+
});
|
|
12951
|
+
var CategoryCreateSchema = exports_external.object({
|
|
12952
|
+
name: exports_external.string().min(1),
|
|
12953
|
+
parent: exports_external.string().default("root")
|
|
12954
|
+
});
|
|
12955
|
+
var AccessKeyCreateSchema = exports_external.object({
|
|
12956
|
+
name: exports_external.string().min(1),
|
|
12957
|
+
note: exports_external.string().optional()
|
|
12958
|
+
});
|
|
12959
|
+
var AccessKeyUpdateSchema = exports_external.object({
|
|
12960
|
+
name: exports_external.string().min(1).optional(),
|
|
12961
|
+
note: exports_external.string().optional(),
|
|
12962
|
+
enabled: exports_external.boolean().optional()
|
|
12963
|
+
});
|
|
12964
|
+
var IntegrationUpsertSchema = exports_external.object({
|
|
12965
|
+
source: exports_external.string().min(1),
|
|
12966
|
+
location: exports_external.string().min(1),
|
|
12967
|
+
data: exports_external.record(exports_external.unknown()).optional()
|
|
12968
|
+
});
|
|
12969
|
+
|
|
12774
12970
|
// ../api/dist/index.js
|
|
12775
12971
|
var ApiError = class _ApiError extends Error {
|
|
12776
12972
|
constructor(message, options = {}) {
|
|
@@ -12832,7 +13028,7 @@ async function handleResponseError(response) {
|
|
|
12832
13028
|
parsedError = JSON.parse(errorText);
|
|
12833
13029
|
} catch {}
|
|
12834
13030
|
if (response.status === HTTP_STATUS.BAD_REQUEST && parsedError?.error?.name === "ZodError") {
|
|
12835
|
-
const zodErrorDetails = parsedError.error
|
|
13031
|
+
const zodErrorDetails = parsedError.error.issues ? JSON.stringify(parsedError.error) : errorMessage;
|
|
12836
13032
|
throw new ValidationError(zodErrorDetails);
|
|
12837
13033
|
}
|
|
12838
13034
|
throw new ApiError(errorMessage, { statusCode: response.status });
|
|
@@ -12842,43 +13038,43 @@ function handleNetworkError(error) {
|
|
|
12842
13038
|
throw new NetworkError(message);
|
|
12843
13039
|
}
|
|
12844
13040
|
var ArrayBufferedQueue = class {
|
|
12845
|
-
constructor(
|
|
12846
|
-
this.
|
|
12847
|
-
this.
|
|
12848
|
-
this.
|
|
12849
|
-
this.
|
|
12850
|
-
this.
|
|
13041
|
+
constructor(capacity) {
|
|
13042
|
+
this.capacity = capacity;
|
|
13043
|
+
this.entries = [];
|
|
13044
|
+
this.head = 0;
|
|
13045
|
+
this.tail = 0;
|
|
13046
|
+
this.count = 0;
|
|
12851
13047
|
}
|
|
12852
13048
|
latest() {
|
|
12853
|
-
if (this.
|
|
13049
|
+
if (this.count === 0)
|
|
12854
13050
|
return null;
|
|
12855
|
-
return this.
|
|
13051
|
+
return this.entries[this.tail - 1] ?? null;
|
|
12856
13052
|
}
|
|
12857
13053
|
list() {
|
|
12858
|
-
if (this.
|
|
13054
|
+
if (this.count === 0)
|
|
12859
13055
|
return [];
|
|
12860
|
-
if (this.
|
|
12861
|
-
return this.
|
|
13056
|
+
if (this.head < this.tail) {
|
|
13057
|
+
return this.entries.slice(this.head, this.tail);
|
|
12862
13058
|
}
|
|
12863
|
-
return this.
|
|
13059
|
+
return this.entries.slice(this.head).concat(this.entries.slice(0, this.tail));
|
|
12864
13060
|
}
|
|
12865
13061
|
add(item) {
|
|
12866
|
-
if (this.
|
|
12867
|
-
this.
|
|
13062
|
+
if (this.count === this.capacity) {
|
|
13063
|
+
this.head = (this.head + 1) % this.capacity;
|
|
12868
13064
|
} else {
|
|
12869
|
-
this.
|
|
13065
|
+
this.count++;
|
|
12870
13066
|
}
|
|
12871
|
-
this.
|
|
12872
|
-
this.
|
|
13067
|
+
this.entries[this.tail] = item;
|
|
13068
|
+
this.tail = (this.tail + 1) % this.capacity;
|
|
12873
13069
|
}
|
|
12874
13070
|
size() {
|
|
12875
|
-
return this.
|
|
13071
|
+
return this.count;
|
|
12876
13072
|
}
|
|
12877
13073
|
clear() {
|
|
12878
|
-
this.
|
|
12879
|
-
this.
|
|
12880
|
-
this.
|
|
12881
|
-
this.
|
|
13074
|
+
this.entries = [];
|
|
13075
|
+
this.head = 0;
|
|
13076
|
+
this.tail = 0;
|
|
13077
|
+
this.count = 0;
|
|
12882
13078
|
}
|
|
12883
13079
|
};
|
|
12884
13080
|
var ApiClient = class {
|
|
@@ -12911,7 +13107,7 @@ var ApiClient = class {
|
|
|
12911
13107
|
return url.toString();
|
|
12912
13108
|
}
|
|
12913
13109
|
generateRequestId() {
|
|
12914
|
-
return `${Date.now()}-${Math.random().toString(36).substring(2, 11)}`;
|
|
13110
|
+
return `${String(Date.now())}-${Math.random().toString(36).substring(2, 11)}`;
|
|
12915
13111
|
}
|
|
12916
13112
|
async request(path, options = {}) {
|
|
12917
13113
|
const { method = "GET", headers = {}, body, query } = options;
|
|
@@ -12962,7 +13158,7 @@ var ApiClient = class {
|
|
|
12962
13158
|
if (this.debug) {
|
|
12963
13159
|
console.log(`[ERROR][${this.category}] ${method} ${path} [${requestId}] failed`, {
|
|
12964
13160
|
status: response.status,
|
|
12965
|
-
duration: `${duration}ms`,
|
|
13161
|
+
duration: `${String(duration)}ms`,
|
|
12966
13162
|
body,
|
|
12967
13163
|
query
|
|
12968
13164
|
});
|
|
@@ -12988,7 +13184,7 @@ var ApiClient = class {
|
|
|
12988
13184
|
} else {
|
|
12989
13185
|
try {
|
|
12990
13186
|
result = JSON.parse(text2);
|
|
12991
|
-
} catch
|
|
13187
|
+
} catch {
|
|
12992
13188
|
result = text2;
|
|
12993
13189
|
}
|
|
12994
13190
|
}
|
|
@@ -12996,7 +13192,7 @@ var ApiClient = class {
|
|
|
12996
13192
|
if (this.debug) {
|
|
12997
13193
|
console.log(`[INFO][${this.category}] ${method} ${path} [${requestId}] completed`, {
|
|
12998
13194
|
status: response.status,
|
|
12999
|
-
duration: `${duration}ms`
|
|
13195
|
+
duration: `${String(duration)}ms`
|
|
13000
13196
|
});
|
|
13001
13197
|
}
|
|
13002
13198
|
return result;
|
|
@@ -13005,7 +13201,7 @@ var ApiClient = class {
|
|
|
13005
13201
|
if (this.debug) {
|
|
13006
13202
|
console.log(`[ERROR][${this.category}] ${method} ${path} [${requestId}] failed`, {
|
|
13007
13203
|
url,
|
|
13008
|
-
duration: `${duration}ms`,
|
|
13204
|
+
duration: `${String(duration)}ms`,
|
|
13009
13205
|
error: error instanceof Error ? error.message : String(error),
|
|
13010
13206
|
body,
|
|
13011
13207
|
query
|
|
@@ -13058,11 +13254,23 @@ var ApiClient = class {
|
|
|
13058
13254
|
return headers;
|
|
13059
13255
|
}
|
|
13060
13256
|
};
|
|
13257
|
+
var string_field = (value, key) => {
|
|
13258
|
+
if (typeof value !== "object" || value === null || !(key in value))
|
|
13259
|
+
return;
|
|
13260
|
+
const field = value[key];
|
|
13261
|
+
return typeof field === "string" ? field : undefined;
|
|
13262
|
+
};
|
|
13263
|
+
var number_field = (value, key) => {
|
|
13264
|
+
if (typeof value !== "object" || value === null || !(key in value))
|
|
13265
|
+
return;
|
|
13266
|
+
const field = value[key];
|
|
13267
|
+
return typeof field === "number" ? field : undefined;
|
|
13268
|
+
};
|
|
13061
13269
|
function wrap(fn) {
|
|
13062
13270
|
return fn().then((data) => ok(data)).catch((error) => err({
|
|
13063
|
-
message: error.message
|
|
13064
|
-
code: error
|
|
13065
|
-
status_code: error
|
|
13271
|
+
message: error instanceof Error ? error.message : "Unknown error",
|
|
13272
|
+
code: string_field(error, "code"),
|
|
13273
|
+
status_code: number_field(error, "statusCode") ?? number_field(error, "status_code")
|
|
13066
13274
|
}));
|
|
13067
13275
|
}
|
|
13068
13276
|
var ApiClient2 = class {
|
|
@@ -13173,7 +13381,7 @@ var ApiClient2 = class {
|
|
|
13173
13381
|
find: (id2) => wrap(async () => {
|
|
13174
13382
|
try {
|
|
13175
13383
|
return await this.clients.milestones.get(`/milestones/${id2}`);
|
|
13176
|
-
} catch
|
|
13384
|
+
} catch {
|
|
13177
13385
|
return null;
|
|
13178
13386
|
}
|
|
13179
13387
|
}),
|
|
@@ -13423,7 +13631,9 @@ var ApiClient2 = class {
|
|
|
13423
13631
|
};
|
|
13424
13632
|
this.user = {
|
|
13425
13633
|
history: () => wrap(() => this.clients.auth.get("/user/history")),
|
|
13426
|
-
preferences: (data) => wrap(() => this.clients.auth.patch("/user/preferences", {
|
|
13634
|
+
preferences: (data) => wrap(() => this.clients.auth.patch("/user/preferences", {
|
|
13635
|
+
body: data
|
|
13636
|
+
}))
|
|
13427
13637
|
};
|
|
13428
13638
|
this.pulse = {
|
|
13429
13639
|
summary: (input) => wrap(() => this.clients.pulse.get("/summary/:project_id".replace(":project_id", input.project_id), {
|
|
@@ -13445,7 +13655,9 @@ var ApiClient2 = class {
|
|
|
13445
13655
|
query.limit = String(input.limit);
|
|
13446
13656
|
if (input.cursor)
|
|
13447
13657
|
query.cursor = input.cursor;
|
|
13448
|
-
return this.clients.pulse.get("/events/:project_id".replace(":project_id", input.project_id), {
|
|
13658
|
+
return this.clients.pulse.get("/events/:project_id".replace(":project_id", input.project_id), {
|
|
13659
|
+
query
|
|
13660
|
+
});
|
|
13449
13661
|
}),
|
|
13450
13662
|
errors: (input) => wrap(() => {
|
|
13451
13663
|
const query = {};
|
|
@@ -13457,7 +13669,9 @@ var ApiClient2 = class {
|
|
|
13457
13669
|
}
|
|
13458
13670
|
if (input.group_by_fingerprint)
|
|
13459
13671
|
query.group_by_fingerprint = "true";
|
|
13460
|
-
return this.clients.pulse.get("/errors/:project_id".replace(":project_id", input.project_id), {
|
|
13672
|
+
return this.clients.pulse.get("/errors/:project_id".replace(":project_id", input.project_id), {
|
|
13673
|
+
query
|
|
13674
|
+
});
|
|
13461
13675
|
}),
|
|
13462
13676
|
logs: (input) => wrap(() => {
|
|
13463
13677
|
const query = {};
|
|
@@ -13485,7 +13699,9 @@ var ApiClient2 = class {
|
|
|
13485
13699
|
query.route = input.route;
|
|
13486
13700
|
if (input.percentiles && input.percentiles.length > 0)
|
|
13487
13701
|
query.percentiles = input.percentiles.join(",");
|
|
13488
|
-
return this.clients.pulse.get("/latency/:project_id".replace(":project_id", input.project_id), {
|
|
13702
|
+
return this.clients.pulse.get("/latency/:project_id".replace(":project_id", input.project_id), {
|
|
13703
|
+
query
|
|
13704
|
+
});
|
|
13489
13705
|
}),
|
|
13490
13706
|
subs: {
|
|
13491
13707
|
list: (input) => wrap(() => this.clients.pulse.get("/admin/subs", { query: { project_id: input.project_id } })),
|
|
@@ -13597,13 +13813,13 @@ var ApiClient2 = class {
|
|
|
13597
13813
|
}
|
|
13598
13814
|
};
|
|
13599
13815
|
const base_url = options.base_url || "http://localhost:4321/api/v1";
|
|
13600
|
-
this.
|
|
13601
|
-
this.
|
|
13816
|
+
this.api_key_field = options.api_key ?? "";
|
|
13817
|
+
this.auth_mode_field = options.auth_mode ?? (options.api_key?.startsWith("jwt:") ? "session" : options.api_key ? "key" : "cookie");
|
|
13602
13818
|
const clientOptions = {
|
|
13603
13819
|
base_url,
|
|
13604
13820
|
api_key: options.api_key,
|
|
13605
13821
|
max_history_size: options.max_history_size,
|
|
13606
|
-
auth_mode: this.
|
|
13822
|
+
auth_mode: this.auth_mode_field,
|
|
13607
13823
|
credentials: options.credentials,
|
|
13608
13824
|
default_headers: options.default_headers,
|
|
13609
13825
|
custom_fetch: options.custom_fetch
|
|
@@ -13632,12 +13848,55 @@ var ApiClient2 = class {
|
|
|
13632
13848
|
return this.clients.projects.history();
|
|
13633
13849
|
}
|
|
13634
13850
|
getApiKey() {
|
|
13635
|
-
return this.
|
|
13851
|
+
return this.api_key_field;
|
|
13636
13852
|
}
|
|
13637
13853
|
getAuthMode() {
|
|
13638
|
-
return this.
|
|
13854
|
+
return this.auth_mode_field;
|
|
13639
13855
|
}
|
|
13640
13856
|
};
|
|
13857
|
+
var blog_posts = sqliteTable("blog_posts", {
|
|
13858
|
+
id: integer("id").primaryKey({ autoIncrement: true }),
|
|
13859
|
+
uuid: text("uuid").notNull().unique(),
|
|
13860
|
+
author_id: text("author_id").notNull(),
|
|
13861
|
+
slug: text("slug").notNull(),
|
|
13862
|
+
corpus_version: text("corpus_version"),
|
|
13863
|
+
category: text("category").notNull().default("root"),
|
|
13864
|
+
archived: integer("archived", { mode: "boolean" }).notNull().default(false),
|
|
13865
|
+
publish_at: integer("publish_at", { mode: "timestamp" }),
|
|
13866
|
+
created_at: integer("created_at", { mode: "timestamp" }).notNull().default(sql`(unixepoch())`),
|
|
13867
|
+
updated_at: integer("updated_at", { mode: "timestamp" }).notNull().default(sql`(unixepoch())`)
|
|
13868
|
+
}, (table) => [unique("posts_author_slug_unique").on(table.author_id, table.slug)]);
|
|
13869
|
+
var blog_categories = sqliteTable("blog_categories", {
|
|
13870
|
+
id: integer("id").primaryKey({ autoIncrement: true }),
|
|
13871
|
+
owner_id: text("owner_id").notNull(),
|
|
13872
|
+
name: text("name").notNull(),
|
|
13873
|
+
parent: text("parent").default("root")
|
|
13874
|
+
}, (table) => [unique("categories_owner_name_unique").on(table.owner_id, table.name)]);
|
|
13875
|
+
var blog_tags = sqliteTable("blog_tags", {
|
|
13876
|
+
post_id: integer("post_id").notNull().references(() => blog_posts.id, { onDelete: "cascade" }),
|
|
13877
|
+
tag: text("tag").notNull()
|
|
13878
|
+
}, (table) => [primaryKey({ columns: [table.post_id, table.tag] })]);
|
|
13879
|
+
var blog_integrations = sqliteTable("blog_integrations", {
|
|
13880
|
+
id: integer("id").primaryKey({ autoIncrement: true }),
|
|
13881
|
+
user_id: text("user_id").notNull(),
|
|
13882
|
+
source: text("source").notNull(),
|
|
13883
|
+
location: text("location").notNull(),
|
|
13884
|
+
data: text("data", { mode: "json" }).$type(),
|
|
13885
|
+
last_fetch: integer("last_fetch", { mode: "timestamp" }),
|
|
13886
|
+
status: text("status").default("pending"),
|
|
13887
|
+
created_at: integer("created_at", { mode: "timestamp" }).notNull().default(sql`(unixepoch())`)
|
|
13888
|
+
});
|
|
13889
|
+
var blog_fetch_links = sqliteTable("blog_fetch_links", {
|
|
13890
|
+
id: integer("id").primaryKey({ autoIncrement: true }),
|
|
13891
|
+
post_id: integer("post_id").notNull().references(() => blog_posts.id, { onDelete: "cascade" }),
|
|
13892
|
+
integration_id: integer("integration_id").notNull().references(() => blog_integrations.id, { onDelete: "cascade" }),
|
|
13893
|
+
identifier: text("identifier").notNull()
|
|
13894
|
+
}, (table) => [unique("fetch_links_integration_identifier_unique").on(table.integration_id, table.identifier)]);
|
|
13895
|
+
var blog_post_projects = sqliteTable("blog_post_projects", {
|
|
13896
|
+
post_id: integer("post_id").notNull().references(() => blog_posts.id, { onDelete: "cascade" }),
|
|
13897
|
+
project_id: text("project_id").notNull(),
|
|
13898
|
+
created_at: integer("created_at", { mode: "timestamp" }).notNull().default(sql`(unixepoch())`)
|
|
13899
|
+
}, (table) => [primaryKey({ columns: [table.post_id, table.project_id] })]);
|
|
13641
13900
|
function unwrap2(result) {
|
|
13642
13901
|
if (!result.ok)
|
|
13643
13902
|
throw new Error(result.error?.message ?? "Unknown error");
|
|
@@ -13672,26 +13931,33 @@ var github_branches = exports_external.object({
|
|
|
13672
13931
|
owner: exports_external.string().describe("Repository owner"),
|
|
13673
13932
|
repo: exports_external.string().describe("Repository name")
|
|
13674
13933
|
});
|
|
13934
|
+
var define_tool = (def) => def;
|
|
13675
13935
|
var tools = {
|
|
13676
|
-
devpad_projects_list: {
|
|
13936
|
+
devpad_projects_list: define_tool({
|
|
13677
13937
|
name: "devpad_projects_list",
|
|
13678
13938
|
description: "List all projects (or only public ones)",
|
|
13679
13939
|
inputSchema: project_filters,
|
|
13680
13940
|
execute: async (client, input) => unwrap2(await client.projects.list(input))
|
|
13681
|
-
},
|
|
13682
|
-
devpad_projects_get: {
|
|
13941
|
+
}),
|
|
13942
|
+
devpad_projects_get: define_tool({
|
|
13683
13943
|
name: "devpad_projects_get",
|
|
13684
13944
|
description: "Get project by ID or name",
|
|
13685
13945
|
inputSchema: project_by_id_or_name,
|
|
13686
|
-
execute: async (client, input) =>
|
|
13687
|
-
|
|
13688
|
-
|
|
13946
|
+
execute: async (client, input) => {
|
|
13947
|
+
if (input.id)
|
|
13948
|
+
return unwrap2(await client.projects.getById(input.id));
|
|
13949
|
+
if (!input.name)
|
|
13950
|
+
throw new Error("either id or name must be provided");
|
|
13951
|
+
return unwrap2(await client.projects.getByName(input.name));
|
|
13952
|
+
}
|
|
13953
|
+
}),
|
|
13954
|
+
devpad_projects_upsert: define_tool({
|
|
13689
13955
|
name: "devpad_projects_upsert",
|
|
13690
13956
|
description: "Create or update a project (set deleted=true to delete). Returns 409 if entity is protected by user - pass force=true to override.",
|
|
13691
13957
|
inputSchema: upsert_project,
|
|
13692
13958
|
execute: async (client, input) => unwrap2(await client.projects.upsert(input))
|
|
13693
|
-
},
|
|
13694
|
-
devpad_projects_config_save: {
|
|
13959
|
+
}),
|
|
13960
|
+
devpad_projects_config_save: define_tool({
|
|
13695
13961
|
name: "devpad_projects_config_save",
|
|
13696
13962
|
description: "Save project configuration",
|
|
13697
13963
|
inputSchema: save_config_request,
|
|
@@ -13699,26 +13965,26 @@ var tools = {
|
|
|
13699
13965
|
unwrap2(await client.projects.config.save(input));
|
|
13700
13966
|
return { success: true };
|
|
13701
13967
|
}
|
|
13702
|
-
},
|
|
13703
|
-
devpad_tasks_list: {
|
|
13968
|
+
}),
|
|
13969
|
+
devpad_tasks_list: define_tool({
|
|
13704
13970
|
name: "devpad_tasks_list",
|
|
13705
13971
|
description: "List tasks, optionally filtered by project or tag",
|
|
13706
13972
|
inputSchema: task_filters,
|
|
13707
13973
|
execute: async (client, input) => unwrap2(await client.tasks.list(input))
|
|
13708
|
-
},
|
|
13709
|
-
devpad_tasks_get: {
|
|
13974
|
+
}),
|
|
13975
|
+
devpad_tasks_get: define_tool({
|
|
13710
13976
|
name: "devpad_tasks_get",
|
|
13711
13977
|
description: "Get task by ID",
|
|
13712
13978
|
inputSchema: task_by_id,
|
|
13713
13979
|
execute: async (client, input) => unwrap2(await client.tasks.find(input.id))
|
|
13714
|
-
},
|
|
13715
|
-
devpad_tasks_upsert: {
|
|
13980
|
+
}),
|
|
13981
|
+
devpad_tasks_upsert: define_tool({
|
|
13716
13982
|
name: "devpad_tasks_upsert",
|
|
13717
13983
|
description: "Create or update a task (set deleted=true to delete). Returns 409 if entity is protected by user - pass force=true to override.",
|
|
13718
13984
|
inputSchema: upsert_todo,
|
|
13719
13985
|
execute: async (client, input) => unwrap2(await client.tasks.upsert(input))
|
|
13720
|
-
},
|
|
13721
|
-
devpad_tasks_save_tags: {
|
|
13986
|
+
}),
|
|
13987
|
+
devpad_tasks_save_tags: define_tool({
|
|
13722
13988
|
name: "devpad_tasks_save_tags",
|
|
13723
13989
|
description: "Save tags for tasks",
|
|
13724
13990
|
inputSchema: save_tags_request,
|
|
@@ -13726,20 +13992,20 @@ var tools = {
|
|
|
13726
13992
|
unwrap2(await client.tasks.saveTags(input));
|
|
13727
13993
|
return { success: true };
|
|
13728
13994
|
}
|
|
13729
|
-
},
|
|
13730
|
-
devpad_milestones_list: {
|
|
13995
|
+
}),
|
|
13996
|
+
devpad_milestones_list: define_tool({
|
|
13731
13997
|
name: "devpad_milestones_list",
|
|
13732
13998
|
description: "List milestones for authenticated user or by project",
|
|
13733
13999
|
inputSchema: milestone_filters,
|
|
13734
14000
|
execute: async (client, input) => unwrap2(input.project_id ? await client.milestones.getByProject(input.project_id) : await client.milestones.list())
|
|
13735
|
-
},
|
|
13736
|
-
devpad_milestones_get: {
|
|
14001
|
+
}),
|
|
14002
|
+
devpad_milestones_get: define_tool({
|
|
13737
14003
|
name: "devpad_milestones_get",
|
|
13738
14004
|
description: "Get milestone by ID",
|
|
13739
14005
|
inputSchema: milestone_by_id,
|
|
13740
14006
|
execute: async (client, input) => unwrap2(await client.milestones.find(input.id))
|
|
13741
|
-
},
|
|
13742
|
-
devpad_milestones_upsert: {
|
|
14007
|
+
}),
|
|
14008
|
+
devpad_milestones_upsert: define_tool({
|
|
13743
14009
|
name: "devpad_milestones_upsert",
|
|
13744
14010
|
description: "Create or update a milestone. Returns 409 if entity is protected by user - pass force=true to override.",
|
|
13745
14011
|
inputSchema: upsert_milestone,
|
|
@@ -13757,20 +14023,20 @@ var tools = {
|
|
|
13757
14023
|
target_version: input.target_version,
|
|
13758
14024
|
finished_at: input.finished_at
|
|
13759
14025
|
}))
|
|
13760
|
-
},
|
|
13761
|
-
devpad_goals_list: {
|
|
14026
|
+
}),
|
|
14027
|
+
devpad_goals_list: define_tool({
|
|
13762
14028
|
name: "devpad_goals_list",
|
|
13763
14029
|
description: "List goals for authenticated user",
|
|
13764
14030
|
inputSchema: exports_external.object({}),
|
|
13765
14031
|
execute: async (client) => unwrap2(await client.goals.list())
|
|
13766
|
-
},
|
|
13767
|
-
devpad_goals_get: {
|
|
14032
|
+
}),
|
|
14033
|
+
devpad_goals_get: define_tool({
|
|
13768
14034
|
name: "devpad_goals_get",
|
|
13769
14035
|
description: "Get goal by ID",
|
|
13770
14036
|
inputSchema: goal_by_id,
|
|
13771
14037
|
execute: async (client, input) => unwrap2(await client.goals.find(input.id))
|
|
13772
|
-
},
|
|
13773
|
-
devpad_goals_upsert: {
|
|
14038
|
+
}),
|
|
14039
|
+
devpad_goals_upsert: define_tool({
|
|
13774
14040
|
name: "devpad_goals_upsert",
|
|
13775
14041
|
description: "Create or update a goal. Returns 409 if entity is protected by user - pass force=true to override.",
|
|
13776
14042
|
inputSchema: upsert_goal,
|
|
@@ -13786,26 +14052,26 @@ var tools = {
|
|
|
13786
14052
|
target_time: input.target_time,
|
|
13787
14053
|
finished_at: input.finished_at
|
|
13788
14054
|
}))
|
|
13789
|
-
},
|
|
13790
|
-
devpad_tags_list: {
|
|
14055
|
+
}),
|
|
14056
|
+
devpad_tags_list: define_tool({
|
|
13791
14057
|
name: "devpad_tags_list",
|
|
13792
14058
|
description: "List tags for authenticated user",
|
|
13793
14059
|
inputSchema: exports_external.object({}),
|
|
13794
14060
|
execute: async (client) => unwrap2(await client.tags.list())
|
|
13795
|
-
},
|
|
13796
|
-
devpad_github_repos: {
|
|
14061
|
+
}),
|
|
14062
|
+
devpad_github_repos: define_tool({
|
|
13797
14063
|
name: "devpad_github_repos",
|
|
13798
14064
|
description: "List GitHub repositories for authenticated user",
|
|
13799
14065
|
inputSchema: exports_external.object({}),
|
|
13800
14066
|
execute: async (client) => unwrap2(await client.github.repos())
|
|
13801
|
-
},
|
|
13802
|
-
devpad_github_branches: {
|
|
14067
|
+
}),
|
|
14068
|
+
devpad_github_branches: define_tool({
|
|
13803
14069
|
name: "devpad_github_branches",
|
|
13804
14070
|
description: "List branches for a GitHub repository",
|
|
13805
14071
|
inputSchema: github_branches,
|
|
13806
14072
|
execute: async (client, input) => unwrap2(await client.github.branches(input.owner, input.repo))
|
|
13807
|
-
},
|
|
13808
|
-
devpad_projects_delete: {
|
|
14073
|
+
}),
|
|
14074
|
+
devpad_projects_delete: define_tool({
|
|
13809
14075
|
name: "devpad_projects_delete",
|
|
13810
14076
|
description: "Delete a project",
|
|
13811
14077
|
inputSchema: exports_external.object({
|
|
@@ -13818,56 +14084,56 @@ var tools = {
|
|
|
13818
14084
|
unwrap2(await client.projects.deleteProject(project2));
|
|
13819
14085
|
return { success: true };
|
|
13820
14086
|
}
|
|
13821
|
-
},
|
|
13822
|
-
devpad_projects_history: {
|
|
14087
|
+
}),
|
|
14088
|
+
devpad_projects_history: define_tool({
|
|
13823
14089
|
name: "devpad_projects_history",
|
|
13824
14090
|
description: "Get project history",
|
|
13825
14091
|
inputSchema: exports_external.object({
|
|
13826
14092
|
project_id: exports_external.string().describe("Project ID")
|
|
13827
14093
|
}),
|
|
13828
14094
|
execute: async (client, input) => unwrap2(await client.projects.history(input.project_id))
|
|
13829
|
-
},
|
|
13830
|
-
devpad_projects_specification: {
|
|
14095
|
+
}),
|
|
14096
|
+
devpad_projects_specification: define_tool({
|
|
13831
14097
|
name: "devpad_projects_specification",
|
|
13832
14098
|
description: "Fetch project specification from GitHub",
|
|
13833
14099
|
inputSchema: exports_external.object({
|
|
13834
14100
|
project_id: exports_external.string().describe("Project ID")
|
|
13835
14101
|
}),
|
|
13836
14102
|
execute: async (client, input) => unwrap2(await client.projects.specification(input.project_id))
|
|
13837
|
-
},
|
|
13838
|
-
devpad_projects_config_load: {
|
|
14103
|
+
}),
|
|
14104
|
+
devpad_projects_config_load: define_tool({
|
|
13839
14105
|
name: "devpad_projects_config_load",
|
|
13840
14106
|
description: "Load project configuration",
|
|
13841
14107
|
inputSchema: exports_external.object({
|
|
13842
14108
|
project_id: exports_external.string().describe("Project ID")
|
|
13843
14109
|
}),
|
|
13844
14110
|
execute: async (client, input) => unwrap2(await client.projects.config.load(input.project_id))
|
|
13845
|
-
},
|
|
13846
|
-
devpad_milestones_delete: {
|
|
14111
|
+
}),
|
|
14112
|
+
devpad_milestones_delete: define_tool({
|
|
13847
14113
|
name: "devpad_milestones_delete",
|
|
13848
14114
|
description: "Delete a milestone",
|
|
13849
14115
|
inputSchema: exports_external.object({
|
|
13850
14116
|
id: exports_external.string().describe("Milestone ID")
|
|
13851
14117
|
}),
|
|
13852
14118
|
execute: async (client, input) => unwrap2(await client.milestones.delete(input.id))
|
|
13853
|
-
},
|
|
13854
|
-
devpad_milestones_goals: {
|
|
14119
|
+
}),
|
|
14120
|
+
devpad_milestones_goals: define_tool({
|
|
13855
14121
|
name: "devpad_milestones_goals",
|
|
13856
14122
|
description: "Get goals for a milestone",
|
|
13857
14123
|
inputSchema: exports_external.object({
|
|
13858
14124
|
id: exports_external.string().describe("Milestone ID")
|
|
13859
14125
|
}),
|
|
13860
14126
|
execute: async (client, input) => unwrap2(await client.milestones.goals(input.id))
|
|
13861
|
-
},
|
|
13862
|
-
devpad_goals_delete: {
|
|
14127
|
+
}),
|
|
14128
|
+
devpad_goals_delete: define_tool({
|
|
13863
14129
|
name: "devpad_goals_delete",
|
|
13864
14130
|
description: "Delete a goal",
|
|
13865
14131
|
inputSchema: exports_external.object({
|
|
13866
14132
|
id: exports_external.string().describe("Goal ID")
|
|
13867
14133
|
}),
|
|
13868
14134
|
execute: async (client, input) => unwrap2(await client.goals.delete(input.id))
|
|
13869
|
-
},
|
|
13870
|
-
devpad_tasks_delete: {
|
|
14135
|
+
}),
|
|
14136
|
+
devpad_tasks_delete: define_tool({
|
|
13871
14137
|
name: "devpad_tasks_delete",
|
|
13872
14138
|
description: "Delete a task",
|
|
13873
14139
|
inputSchema: exports_external.object({
|
|
@@ -13880,22 +14146,22 @@ var tools = {
|
|
|
13880
14146
|
unwrap2(await client.tasks.deleteTask(task2));
|
|
13881
14147
|
return { success: true };
|
|
13882
14148
|
}
|
|
13883
|
-
},
|
|
13884
|
-
devpad_tasks_history: {
|
|
14149
|
+
}),
|
|
14150
|
+
devpad_tasks_history: define_tool({
|
|
13885
14151
|
name: "devpad_tasks_history",
|
|
13886
14152
|
description: "Get task history",
|
|
13887
14153
|
inputSchema: exports_external.object({
|
|
13888
14154
|
task_id: exports_external.string().describe("Task ID")
|
|
13889
14155
|
}),
|
|
13890
14156
|
execute: async (client, input) => unwrap2(await client.tasks.history.get(input.task_id))
|
|
13891
|
-
},
|
|
13892
|
-
devpad_user_history: {
|
|
14157
|
+
}),
|
|
14158
|
+
devpad_user_history: define_tool({
|
|
13893
14159
|
name: "devpad_user_history",
|
|
13894
14160
|
description: "Get user activity history",
|
|
13895
14161
|
inputSchema: exports_external.object({}),
|
|
13896
14162
|
execute: async (client) => unwrap2(await client.user.history())
|
|
13897
|
-
},
|
|
13898
|
-
devpad_user_preferences: {
|
|
14163
|
+
}),
|
|
14164
|
+
devpad_user_preferences: define_tool({
|
|
13899
14165
|
name: "devpad_user_preferences",
|
|
13900
14166
|
description: "Update user preferences",
|
|
13901
14167
|
inputSchema: exports_external.object({
|
|
@@ -13903,8 +14169,8 @@ var tools = {
|
|
|
13903
14169
|
task_view: exports_external.enum(["list", "grid"]).describe("Task view preference")
|
|
13904
14170
|
}),
|
|
13905
14171
|
execute: async (client, input) => unwrap2(await client.user.preferences(input))
|
|
13906
|
-
},
|
|
13907
|
-
devpad_activity_ai: {
|
|
14172
|
+
}),
|
|
14173
|
+
devpad_activity_ai: define_tool({
|
|
13908
14174
|
name: "devpad_activity_ai",
|
|
13909
14175
|
description: "Get AI activity feed - shows recent actions made via API/MCP grouped into sessions by time window",
|
|
13910
14176
|
inputSchema: exports_external.object({
|
|
@@ -13912,104 +14178,69 @@ var tools = {
|
|
|
13912
14178
|
since: exports_external.string().optional().describe("Only show activity after this ISO date")
|
|
13913
14179
|
}),
|
|
13914
14180
|
execute: async (client, input) => unwrap2(await client.activity.ai(input))
|
|
13915
|
-
},
|
|
13916
|
-
devpad_blog_posts_list: {
|
|
14181
|
+
}),
|
|
14182
|
+
devpad_blog_posts_list: define_tool({
|
|
13917
14183
|
name: "devpad_blog_posts_list",
|
|
13918
14184
|
description: "List blog posts with optional filters",
|
|
13919
|
-
inputSchema:
|
|
13920
|
-
category: exports_external.string().optional().describe("Filter by category"),
|
|
13921
|
-
tag: exports_external.string().optional().describe("Filter by tag"),
|
|
13922
|
-
project: exports_external.string().optional().describe("Filter by project ID"),
|
|
13923
|
-
status: exports_external.enum(["draft", "published"]).optional().describe("Filter by status"),
|
|
13924
|
-
archived: exports_external.boolean().optional().describe("Filter by archived state"),
|
|
13925
|
-
limit: exports_external.number().optional().describe("Max posts to return"),
|
|
13926
|
-
offset: exports_external.number().optional().describe("Offset for pagination"),
|
|
13927
|
-
sort: exports_external.string().optional().describe("Sort order")
|
|
13928
|
-
}),
|
|
14185
|
+
inputSchema: PostListParamsSchema.partial(),
|
|
13929
14186
|
execute: async (client, input) => unwrap2(await client.blog.posts.list(input))
|
|
13930
|
-
},
|
|
13931
|
-
devpad_blog_posts_get: {
|
|
14187
|
+
}),
|
|
14188
|
+
devpad_blog_posts_get: define_tool({
|
|
13932
14189
|
name: "devpad_blog_posts_get",
|
|
13933
14190
|
description: "Get a blog post by slug",
|
|
13934
14191
|
inputSchema: exports_external.object({
|
|
13935
14192
|
slug: exports_external.string().describe("Post slug")
|
|
13936
14193
|
}),
|
|
13937
14194
|
execute: async (client, input) => unwrap2(await client.blog.posts.getBySlug(input.slug))
|
|
13938
|
-
},
|
|
13939
|
-
devpad_blog_posts_create: {
|
|
14195
|
+
}),
|
|
14196
|
+
devpad_blog_posts_create: define_tool({
|
|
13940
14197
|
name: "devpad_blog_posts_create",
|
|
13941
14198
|
description: "Create a new blog post",
|
|
13942
|
-
inputSchema:
|
|
13943
|
-
title: exports_external.string().describe("Post title"),
|
|
13944
|
-
content: exports_external.string().describe("Post content"),
|
|
13945
|
-
format: exports_external.enum(["markdown", "html"]).describe("Content format"),
|
|
13946
|
-
slug: exports_external.string().optional().describe("Custom slug"),
|
|
13947
|
-
category: exports_external.string().optional().describe("Category name"),
|
|
13948
|
-
tags: exports_external.array(exports_external.string()).optional().describe("Tag names"),
|
|
13949
|
-
description: exports_external.string().optional().describe("Post description"),
|
|
13950
|
-
publish_at: exports_external.string().optional().describe("Scheduled publish date (ISO string)"),
|
|
13951
|
-
project_ids: exports_external.array(exports_external.string()).optional().describe("Associated project IDs"),
|
|
13952
|
-
archived: exports_external.boolean().optional().describe("Whether post is archived")
|
|
13953
|
-
}),
|
|
14199
|
+
inputSchema: PostCreateSchema,
|
|
13954
14200
|
execute: async (client, input) => unwrap2(await client.blog.posts.create(input))
|
|
13955
|
-
},
|
|
13956
|
-
devpad_blog_posts_update: {
|
|
14201
|
+
}),
|
|
14202
|
+
devpad_blog_posts_update: define_tool({
|
|
13957
14203
|
name: "devpad_blog_posts_update",
|
|
13958
14204
|
description: "Update a blog post by UUID",
|
|
13959
|
-
inputSchema: exports_external.
|
|
13960
|
-
uuid: exports_external.string().describe("Post UUID"),
|
|
13961
|
-
title: exports_external.string().optional().describe("Post title"),
|
|
13962
|
-
content: exports_external.string().optional().describe("Post content"),
|
|
13963
|
-
format: exports_external.enum(["markdown", "html"]).optional().describe("Content format"),
|
|
13964
|
-
slug: exports_external.string().optional().describe("Custom slug"),
|
|
13965
|
-
category: exports_external.string().optional().describe("Category name"),
|
|
13966
|
-
tags: exports_external.array(exports_external.string()).optional().describe("Tag names"),
|
|
13967
|
-
description: exports_external.string().optional().describe("Post description"),
|
|
13968
|
-
publish_at: exports_external.string().optional().describe("Scheduled publish date (ISO string)"),
|
|
13969
|
-
project_ids: exports_external.array(exports_external.string()).optional().describe("Associated project IDs"),
|
|
13970
|
-
archived: exports_external.boolean().optional().describe("Whether post is archived")
|
|
13971
|
-
}),
|
|
14205
|
+
inputSchema: PostUpdateSchema.extend({ uuid: exports_external.string().describe("Post UUID") }),
|
|
13972
14206
|
execute: async (client, input) => {
|
|
13973
14207
|
const { uuid, ...data } = input;
|
|
13974
14208
|
return unwrap2(await client.blog.posts.update(uuid, data));
|
|
13975
14209
|
}
|
|
13976
|
-
},
|
|
13977
|
-
devpad_blog_posts_delete: {
|
|
14210
|
+
}),
|
|
14211
|
+
devpad_blog_posts_delete: define_tool({
|
|
13978
14212
|
name: "devpad_blog_posts_delete",
|
|
13979
14213
|
description: "Delete a blog post by UUID",
|
|
13980
14214
|
inputSchema: exports_external.object({
|
|
13981
14215
|
uuid: exports_external.string().describe("Post UUID")
|
|
13982
14216
|
}),
|
|
13983
14217
|
execute: async (client, input) => unwrap2(await client.blog.posts.delete(input.uuid))
|
|
13984
|
-
},
|
|
13985
|
-
devpad_blog_tags_list: {
|
|
14218
|
+
}),
|
|
14219
|
+
devpad_blog_tags_list: define_tool({
|
|
13986
14220
|
name: "devpad_blog_tags_list",
|
|
13987
14221
|
description: "List all blog tags with post counts",
|
|
13988
14222
|
inputSchema: exports_external.object({}),
|
|
13989
14223
|
execute: async (client) => unwrap2(await client.blog.tags.list())
|
|
13990
|
-
},
|
|
13991
|
-
devpad_blog_categories_tree: {
|
|
14224
|
+
}),
|
|
14225
|
+
devpad_blog_categories_tree: define_tool({
|
|
13992
14226
|
name: "devpad_blog_categories_tree",
|
|
13993
14227
|
description: "Get the blog category tree",
|
|
13994
14228
|
inputSchema: exports_external.object({}),
|
|
13995
14229
|
execute: async (client) => unwrap2(await client.blog.categories.tree())
|
|
13996
|
-
},
|
|
13997
|
-
devpad_blog_categories_create: {
|
|
14230
|
+
}),
|
|
14231
|
+
devpad_blog_categories_create: define_tool({
|
|
13998
14232
|
name: "devpad_blog_categories_create",
|
|
13999
14233
|
description: "Create a blog category",
|
|
14000
|
-
inputSchema:
|
|
14001
|
-
name: exports_external.string().describe("Category name"),
|
|
14002
|
-
parent: exports_external.string().optional().describe("Parent category name")
|
|
14003
|
-
}),
|
|
14234
|
+
inputSchema: CategoryCreateSchema,
|
|
14004
14235
|
execute: async (client, input) => unwrap2(await client.blog.categories.create(input))
|
|
14005
|
-
},
|
|
14006
|
-
devpad_blog_tokens_list: {
|
|
14236
|
+
}),
|
|
14237
|
+
devpad_blog_tokens_list: define_tool({
|
|
14007
14238
|
name: "devpad_blog_tokens_list",
|
|
14008
14239
|
description: "List blog access tokens",
|
|
14009
14240
|
inputSchema: exports_external.object({}),
|
|
14010
14241
|
execute: async (client) => unwrap2(await client.blog.tokens.list())
|
|
14011
|
-
},
|
|
14012
|
-
devpad_blog_tokens_create: {
|
|
14242
|
+
}),
|
|
14243
|
+
devpad_blog_tokens_create: define_tool({
|
|
14013
14244
|
name: "devpad_blog_tokens_create",
|
|
14014
14245
|
description: "Create a blog access token",
|
|
14015
14246
|
inputSchema: exports_external.object({
|
|
@@ -14017,14 +14248,14 @@ var tools = {
|
|
|
14017
14248
|
note: exports_external.string().optional().describe("Optional note")
|
|
14018
14249
|
}),
|
|
14019
14250
|
execute: async (client, input) => unwrap2(await client.blog.tokens.create(input))
|
|
14020
|
-
},
|
|
14021
|
-
devpad_media_profiles_list: {
|
|
14251
|
+
}),
|
|
14252
|
+
devpad_media_profiles_list: define_tool({
|
|
14022
14253
|
name: "devpad_media_profiles_list",
|
|
14023
14254
|
description: "List media profiles",
|
|
14024
14255
|
inputSchema: exports_external.object({}),
|
|
14025
14256
|
execute: async (client) => unwrap2(await client.media.profiles.list())
|
|
14026
|
-
},
|
|
14027
|
-
devpad_media_profiles_create: {
|
|
14257
|
+
}),
|
|
14258
|
+
devpad_media_profiles_create: define_tool({
|
|
14028
14259
|
name: "devpad_media_profiles_create",
|
|
14029
14260
|
description: "Create a media profile",
|
|
14030
14261
|
inputSchema: exports_external.object({
|
|
@@ -14032,16 +14263,16 @@ var tools = {
|
|
|
14032
14263
|
slug: exports_external.string().describe("Profile slug")
|
|
14033
14264
|
}),
|
|
14034
14265
|
execute: async (client, input) => unwrap2(await client.media.profiles.create(input))
|
|
14035
|
-
},
|
|
14036
|
-
devpad_media_profiles_get: {
|
|
14266
|
+
}),
|
|
14267
|
+
devpad_media_profiles_get: define_tool({
|
|
14037
14268
|
name: "devpad_media_profiles_get",
|
|
14038
14269
|
description: "Get a media profile by ID",
|
|
14039
14270
|
inputSchema: exports_external.object({
|
|
14040
14271
|
id: exports_external.string().describe("Profile ID")
|
|
14041
14272
|
}),
|
|
14042
14273
|
execute: async (client, input) => unwrap2(await client.media.profiles.get(input.id))
|
|
14043
|
-
},
|
|
14044
|
-
devpad_media_profiles_update: {
|
|
14274
|
+
}),
|
|
14275
|
+
devpad_media_profiles_update: define_tool({
|
|
14045
14276
|
name: "devpad_media_profiles_update",
|
|
14046
14277
|
description: "Update a media profile by ID",
|
|
14047
14278
|
inputSchema: exports_external.object({
|
|
@@ -14053,32 +14284,32 @@ var tools = {
|
|
|
14053
14284
|
const { id: id2, ...data } = input;
|
|
14054
14285
|
return unwrap2(await client.media.profiles.update(id2, data));
|
|
14055
14286
|
}
|
|
14056
|
-
},
|
|
14057
|
-
devpad_media_profiles_delete: {
|
|
14287
|
+
}),
|
|
14288
|
+
devpad_media_profiles_delete: define_tool({
|
|
14058
14289
|
name: "devpad_media_profiles_delete",
|
|
14059
14290
|
description: "Delete a media profile by ID",
|
|
14060
14291
|
inputSchema: exports_external.object({
|
|
14061
14292
|
id: exports_external.string().describe("Profile ID")
|
|
14062
14293
|
}),
|
|
14063
14294
|
execute: async (client, input) => unwrap2(await client.media.profiles.delete(input.id))
|
|
14064
|
-
},
|
|
14065
|
-
devpad_media_connections_list: {
|
|
14295
|
+
}),
|
|
14296
|
+
devpad_media_connections_list: define_tool({
|
|
14066
14297
|
name: "devpad_media_connections_list",
|
|
14067
14298
|
description: "List connections for a media profile",
|
|
14068
14299
|
inputSchema: exports_external.object({
|
|
14069
14300
|
profile_id: exports_external.string().describe("Profile ID")
|
|
14070
14301
|
}),
|
|
14071
14302
|
execute: async (client, input) => unwrap2(await client.media.connections.list(input.profile_id))
|
|
14072
|
-
},
|
|
14073
|
-
devpad_media_connections_refresh: {
|
|
14303
|
+
}),
|
|
14304
|
+
devpad_media_connections_refresh: define_tool({
|
|
14074
14305
|
name: "devpad_media_connections_refresh",
|
|
14075
14306
|
description: "Refresh a media connection",
|
|
14076
14307
|
inputSchema: exports_external.object({
|
|
14077
14308
|
account_id: exports_external.string().describe("Account/connection ID")
|
|
14078
14309
|
}),
|
|
14079
14310
|
execute: async (client, input) => unwrap2(await client.media.connections.refresh(input.account_id))
|
|
14080
|
-
},
|
|
14081
|
-
devpad_media_timeline_get: {
|
|
14311
|
+
}),
|
|
14312
|
+
devpad_media_timeline_get: define_tool({
|
|
14082
14313
|
name: "devpad_media_timeline_get",
|
|
14083
14314
|
description: "Get media timeline for a user",
|
|
14084
14315
|
inputSchema: exports_external.object({
|
|
@@ -14090,8 +14321,8 @@ var tools = {
|
|
|
14090
14321
|
const { user_id, ...params } = input;
|
|
14091
14322
|
return unwrap2(await client.media.timeline.get(user_id, params));
|
|
14092
14323
|
}
|
|
14093
|
-
},
|
|
14094
|
-
devpad_pulse_summary: {
|
|
14324
|
+
}),
|
|
14325
|
+
devpad_pulse_summary: define_tool({
|
|
14095
14326
|
name: "devpad_pulse_summary",
|
|
14096
14327
|
description: "Get summary analytics for a project (pageviews, sessions, errors, latency)",
|
|
14097
14328
|
inputSchema: exports_external.object({
|
|
@@ -14099,8 +14330,8 @@ var tools = {
|
|
|
14099
14330
|
range: exports_external.enum(["24h", "7d", "30d", "90d"]).describe("Time range")
|
|
14100
14331
|
}),
|
|
14101
14332
|
execute: async (client, input) => unwrap2(await client.pulse.summary({ project_id: input.project_id, range: input.range }))
|
|
14102
|
-
},
|
|
14103
|
-
devpad_pulse_events: {
|
|
14333
|
+
}),
|
|
14334
|
+
devpad_pulse_events: define_tool({
|
|
14104
14335
|
name: "devpad_pulse_events",
|
|
14105
14336
|
description: "List events for a project with optional filtering",
|
|
14106
14337
|
inputSchema: exports_external.object({
|
|
@@ -14114,8 +14345,8 @@ var tools = {
|
|
|
14114
14345
|
cursor: exports_external.string().optional().describe("Pagination cursor")
|
|
14115
14346
|
}),
|
|
14116
14347
|
execute: async (client, input) => unwrap2(await client.pulse.events(input))
|
|
14117
|
-
},
|
|
14118
|
-
devpad_pulse_errors: {
|
|
14348
|
+
}),
|
|
14349
|
+
devpad_pulse_errors: define_tool({
|
|
14119
14350
|
name: "devpad_pulse_errors",
|
|
14120
14351
|
description: "List error issues for a project, optionally grouped by fingerprint",
|
|
14121
14352
|
inputSchema: exports_external.object({
|
|
@@ -14128,8 +14359,8 @@ var tools = {
|
|
|
14128
14359
|
range: input.range,
|
|
14129
14360
|
group_by_fingerprint: input.group_by_fingerprint
|
|
14130
14361
|
}))
|
|
14131
|
-
},
|
|
14132
|
-
devpad_pulse_logs: {
|
|
14362
|
+
}),
|
|
14363
|
+
devpad_pulse_logs: define_tool({
|
|
14133
14364
|
name: "devpad_pulse_logs",
|
|
14134
14365
|
description: "List logs for a project with optional level and message filtering",
|
|
14135
14366
|
inputSchema: exports_external.object({
|
|
@@ -14139,8 +14370,8 @@ var tools = {
|
|
|
14139
14370
|
search: exports_external.string().optional().describe("Search in log messages")
|
|
14140
14371
|
}),
|
|
14141
14372
|
execute: async (client, input) => unwrap2(await client.pulse.logs(input))
|
|
14142
|
-
},
|
|
14143
|
-
devpad_pulse_latency: {
|
|
14373
|
+
}),
|
|
14374
|
+
devpad_pulse_latency: define_tool({
|
|
14144
14375
|
name: "devpad_pulse_latency",
|
|
14145
14376
|
description: "Get request latency metrics (p50, p95, p99) for a project",
|
|
14146
14377
|
inputSchema: exports_external.object({
|
|
@@ -14150,16 +14381,16 @@ var tools = {
|
|
|
14150
14381
|
percentiles: exports_external.array(exports_external.number()).optional().describe("Percentiles to compute (default [50, 95, 99])")
|
|
14151
14382
|
}),
|
|
14152
14383
|
execute: async (client, input) => unwrap2(await client.pulse.latency(input))
|
|
14153
|
-
},
|
|
14154
|
-
devpad_alerts_list: {
|
|
14384
|
+
}),
|
|
14385
|
+
devpad_alerts_list: define_tool({
|
|
14155
14386
|
name: "devpad_alerts_list",
|
|
14156
14387
|
description: "List notification subscriptions (alerts) for a project",
|
|
14157
14388
|
inputSchema: exports_external.object({
|
|
14158
14389
|
project_id: exports_external.string().describe("Project ID")
|
|
14159
14390
|
}),
|
|
14160
14391
|
execute: async (client, input) => unwrap2(await client.pulse.subs.list(input))
|
|
14161
|
-
},
|
|
14162
|
-
devpad_alerts_subscribe: {
|
|
14392
|
+
}),
|
|
14393
|
+
devpad_alerts_subscribe: define_tool({
|
|
14163
14394
|
name: "devpad_alerts_subscribe",
|
|
14164
14395
|
description: "Create a new notification subscription (alert) for events",
|
|
14165
14396
|
inputSchema: exports_external.object({
|
|
@@ -14170,16 +14401,16 @@ var tools = {
|
|
|
14170
14401
|
cooldown_seconds: exports_external.number().optional().describe("Cooldown between notifications (default 60)")
|
|
14171
14402
|
}),
|
|
14172
14403
|
execute: async (client, input) => unwrap2(await client.pulse.subs.create(input))
|
|
14173
|
-
},
|
|
14174
|
-
devpad_alerts_unsubscribe: {
|
|
14404
|
+
}),
|
|
14405
|
+
devpad_alerts_unsubscribe: define_tool({
|
|
14175
14406
|
name: "devpad_alerts_unsubscribe",
|
|
14176
14407
|
description: "Delete a notification subscription by ID",
|
|
14177
14408
|
inputSchema: exports_external.object({
|
|
14178
14409
|
id: exports_external.string().describe("Subscription ID")
|
|
14179
14410
|
}),
|
|
14180
14411
|
execute: async (client, input) => unwrap2(await client.pulse.subs.delete(input.id))
|
|
14181
|
-
},
|
|
14182
|
-
devpad_pulse_key_create: {
|
|
14412
|
+
}),
|
|
14413
|
+
devpad_pulse_key_create: define_tool({
|
|
14183
14414
|
name: "devpad_pulse_key_create",
|
|
14184
14415
|
description: "Create a new ingest key for a project (returns plaintext once)",
|
|
14185
14416
|
inputSchema: exports_external.object({
|
|
@@ -14188,8 +14419,8 @@ var tools = {
|
|
|
14188
14419
|
rate_limit_per_min: exports_external.number().optional().describe("Rate limit in requests per minute (default 600)")
|
|
14189
14420
|
}),
|
|
14190
14421
|
execute: async (client, input) => unwrap2(await client.pulse.keys.create(input))
|
|
14191
|
-
},
|
|
14192
|
-
devpad_pipelines_list: {
|
|
14422
|
+
}),
|
|
14423
|
+
devpad_pipelines_list: define_tool({
|
|
14193
14424
|
name: "devpad_pipelines_list",
|
|
14194
14425
|
description: "List pipeline runs (newest first). Optionally filter by package and/or status; cap limit at 200.",
|
|
14195
14426
|
inputSchema: exports_external.object({
|
|
@@ -14198,16 +14429,16 @@ var tools = {
|
|
|
14198
14429
|
limit: exports_external.number().int().positive().max(200).optional().describe("Max rows to return (default 50, cap 200)")
|
|
14199
14430
|
}),
|
|
14200
14431
|
execute: async (client, input) => unwrap2(await client.pipelines.list(input))
|
|
14201
|
-
},
|
|
14202
|
-
devpad_pipelines_get: {
|
|
14432
|
+
}),
|
|
14433
|
+
devpad_pipelines_get: define_tool({
|
|
14203
14434
|
name: "devpad_pipelines_get",
|
|
14204
14435
|
description: "Get a pipeline run by ID",
|
|
14205
14436
|
inputSchema: exports_external.object({
|
|
14206
14437
|
run_id: exports_external.string().describe("Pipeline run ID")
|
|
14207
14438
|
}),
|
|
14208
14439
|
execute: async (client, input) => unwrap2(await client.pipelines.get(input.run_id))
|
|
14209
|
-
},
|
|
14210
|
-
devpad_pipelines_create: {
|
|
14440
|
+
}),
|
|
14441
|
+
devpad_pipelines_create: define_tool({
|
|
14211
14442
|
name: "devpad_pipelines_create",
|
|
14212
14443
|
description: "Create a new pipeline run",
|
|
14213
14444
|
inputSchema: exports_external.object({
|
|
@@ -14215,8 +14446,8 @@ var tools = {
|
|
|
14215
14446
|
version_set_id: exports_external.string().describe("Version set ID to deploy")
|
|
14216
14447
|
}),
|
|
14217
14448
|
execute: async (client, input) => unwrap2(await client.pipelines.create(input))
|
|
14218
|
-
},
|
|
14219
|
-
devpad_pipelines_approve: {
|
|
14449
|
+
}),
|
|
14450
|
+
devpad_pipelines_approve: define_tool({
|
|
14220
14451
|
name: "devpad_pipelines_approve",
|
|
14221
14452
|
description: "Approve or deny a stage in a pipeline run",
|
|
14222
14453
|
inputSchema: exports_external.object({
|
|
@@ -14230,8 +14461,8 @@ var tools = {
|
|
|
14230
14461
|
unwrap2(await client.pipelines.approve(input.run_id, input));
|
|
14231
14462
|
return { success: true };
|
|
14232
14463
|
}
|
|
14233
|
-
},
|
|
14234
|
-
devpad_pipelines_cancel: {
|
|
14464
|
+
}),
|
|
14465
|
+
devpad_pipelines_cancel: define_tool({
|
|
14235
14466
|
name: "devpad_pipelines_cancel",
|
|
14236
14467
|
description: "Cancel a pipeline run",
|
|
14237
14468
|
inputSchema: exports_external.object({
|
|
@@ -14241,8 +14472,8 @@ var tools = {
|
|
|
14241
14472
|
unwrap2(await client.pipelines.cancel(input.run_id));
|
|
14242
14473
|
return { success: true };
|
|
14243
14474
|
}
|
|
14244
|
-
},
|
|
14245
|
-
devpad_pipelines_rollback: {
|
|
14475
|
+
}),
|
|
14476
|
+
devpad_pipelines_rollback: define_tool({
|
|
14246
14477
|
name: "devpad_pipelines_rollback",
|
|
14247
14478
|
description: "Rollback a completed or failed pipeline run",
|
|
14248
14479
|
inputSchema: exports_external.object({
|
|
@@ -14252,8 +14483,8 @@ var tools = {
|
|
|
14252
14483
|
unwrap2(await client.pipelines.rollback(input.run_id));
|
|
14253
14484
|
return { success: true };
|
|
14254
14485
|
}
|
|
14255
|
-
},
|
|
14256
|
-
devpad_pipelines_runs_events_ingest: {
|
|
14486
|
+
}),
|
|
14487
|
+
devpad_pipelines_runs_events_ingest: define_tool({
|
|
14257
14488
|
name: "devpad_pipelines_runs_events_ingest",
|
|
14258
14489
|
description: 'Ingest an external webhook event against an in-flight pipeline run. Idempotent on (idempotency_key, payload). Server-side stamps payload.source = "external".',
|
|
14259
14490
|
inputSchema: exports_external.object({
|
|
@@ -14269,24 +14500,24 @@ var tools = {
|
|
|
14269
14500
|
payload: input.payload,
|
|
14270
14501
|
idempotency_key: input.idempotency_key
|
|
14271
14502
|
}))
|
|
14272
|
-
},
|
|
14273
|
-
devpad_pipelines_runs_events_list: {
|
|
14503
|
+
}),
|
|
14504
|
+
devpad_pipelines_runs_events_list: define_tool({
|
|
14274
14505
|
name: "devpad_pipelines_runs_events_list",
|
|
14275
14506
|
description: "List stored stage events for a pipeline run, newest-first",
|
|
14276
14507
|
inputSchema: exports_external.object({
|
|
14277
14508
|
run_id: exports_external.string().describe("Pipeline run ID")
|
|
14278
14509
|
}),
|
|
14279
14510
|
execute: async (client, input) => unwrap2(await client.pipelines.events.list(input.run_id))
|
|
14280
|
-
},
|
|
14281
|
-
devpad_pipelines_grants_list: {
|
|
14511
|
+
}),
|
|
14512
|
+
devpad_pipelines_grants_list: define_tool({
|
|
14282
14513
|
name: "devpad_pipelines_grants_list",
|
|
14283
14514
|
description: "List vault grants for a pipeline package",
|
|
14284
14515
|
inputSchema: exports_external.object({
|
|
14285
14516
|
package_id: exports_external.string().describe("Package ID to filter grants by")
|
|
14286
14517
|
}),
|
|
14287
14518
|
execute: async (client, input) => unwrap2(await client.pipelines.grants.list(input.package_id))
|
|
14288
|
-
},
|
|
14289
|
-
devpad_pipelines_grants_approve: {
|
|
14519
|
+
}),
|
|
14520
|
+
devpad_pipelines_grants_approve: define_tool({
|
|
14290
14521
|
name: "devpad_pipelines_grants_approve",
|
|
14291
14522
|
description: "Approve a pending vault grant request for a pipeline package",
|
|
14292
14523
|
inputSchema: exports_external.object({
|
|
@@ -14294,8 +14525,8 @@ var tools = {
|
|
|
14294
14525
|
user_id: exports_external.string().describe("User ID making the approval decision")
|
|
14295
14526
|
}),
|
|
14296
14527
|
execute: async (client, input) => unwrap2(await client.pipelines.grants.approve(input.grant_id, input.user_id))
|
|
14297
|
-
},
|
|
14298
|
-
devpad_pipelines_grants_deny: {
|
|
14528
|
+
}),
|
|
14529
|
+
devpad_pipelines_grants_deny: define_tool({
|
|
14299
14530
|
name: "devpad_pipelines_grants_deny",
|
|
14300
14531
|
description: "Deny a pending vault grant request for a pipeline package",
|
|
14301
14532
|
inputSchema: exports_external.object({
|
|
@@ -14304,24 +14535,24 @@ var tools = {
|
|
|
14304
14535
|
reason: exports_external.string().optional().describe("Optional reason for the denial")
|
|
14305
14536
|
}),
|
|
14306
14537
|
execute: async (client, input) => unwrap2(await client.pipelines.grants.deny(input.grant_id, input.user_id, input.reason))
|
|
14307
|
-
},
|
|
14308
|
-
devpad_pipelines_packages_list: {
|
|
14538
|
+
}),
|
|
14539
|
+
devpad_pipelines_packages_list: define_tool({
|
|
14309
14540
|
name: "devpad_pipelines_packages_list",
|
|
14310
14541
|
description: "List pipeline packages. Optionally filter by linked devpad project_id; unlinked packages have project_id = null.",
|
|
14311
14542
|
inputSchema: exports_external.object({
|
|
14312
14543
|
project_id: exports_external.string().optional().describe("Filter packages by linked devpad project")
|
|
14313
14544
|
}),
|
|
14314
14545
|
execute: async (client, input) => unwrap2(await client.pipelines.packages.list(input))
|
|
14315
|
-
},
|
|
14316
|
-
devpad_pipelines_packages_get: {
|
|
14546
|
+
}),
|
|
14547
|
+
devpad_pipelines_packages_get: define_tool({
|
|
14317
14548
|
name: "devpad_pipelines_packages_get",
|
|
14318
14549
|
description: "Get a pipeline package by ID",
|
|
14319
14550
|
inputSchema: exports_external.object({
|
|
14320
14551
|
package_id: exports_external.string().describe("Pipeline package ID")
|
|
14321
14552
|
}),
|
|
14322
14553
|
execute: async (client, input) => unwrap2(await client.pipelines.packages.get(input.package_id))
|
|
14323
|
-
},
|
|
14324
|
-
devpad_pipelines_packages_create: {
|
|
14554
|
+
}),
|
|
14555
|
+
devpad_pipelines_packages_create: define_tool({
|
|
14325
14556
|
name: "devpad_pipelines_packages_create",
|
|
14326
14557
|
description: "Register a new pipeline-managed package. By convention `id` equals the package `name`. `project_id` optionally links the package to a devpad project.",
|
|
14327
14558
|
inputSchema: exports_external.object({
|
|
@@ -14333,8 +14564,8 @@ var tools = {
|
|
|
14333
14564
|
default_template_ref: exports_external.string().optional().describe("Optional default pipeline template ref")
|
|
14334
14565
|
}),
|
|
14335
14566
|
execute: async (client, input) => unwrap2(await client.pipelines.packages.create(input))
|
|
14336
|
-
},
|
|
14337
|
-
devpad_pipelines_packages_update: {
|
|
14567
|
+
}),
|
|
14568
|
+
devpad_pipelines_packages_update: define_tool({
|
|
14338
14569
|
name: "devpad_pipelines_packages_update",
|
|
14339
14570
|
description: "Partially update a pipeline package. Only the provided fields are touched.",
|
|
14340
14571
|
inputSchema: exports_external.object({
|
|
@@ -14348,24 +14579,24 @@ var tools = {
|
|
|
14348
14579
|
const { id: id2, ...patch } = input;
|
|
14349
14580
|
return unwrap2(await client.pipelines.packages.update(id2, patch));
|
|
14350
14581
|
}
|
|
14351
|
-
},
|
|
14352
|
-
devpad_pipelines_packages_delete: {
|
|
14582
|
+
}),
|
|
14583
|
+
devpad_pipelines_packages_delete: define_tool({
|
|
14353
14584
|
name: "devpad_pipelines_packages_delete",
|
|
14354
14585
|
description: "Delete a pipeline package. Refuses with conflict if existing pipeline_run rows still reference the package.",
|
|
14355
14586
|
inputSchema: exports_external.object({
|
|
14356
14587
|
id: exports_external.string().describe("Pipeline package ID")
|
|
14357
14588
|
}),
|
|
14358
14589
|
execute: async (client, input) => unwrap2(await client.pipelines.packages.delete(input.id))
|
|
14359
|
-
},
|
|
14360
|
-
devpad_pipelines_analysis_templates_list: {
|
|
14590
|
+
}),
|
|
14591
|
+
devpad_pipelines_analysis_templates_list: define_tool({
|
|
14361
14592
|
name: "devpad_pipelines_analysis_templates_list",
|
|
14362
14593
|
description: "List pipeline analysis templates for an owner. Each row encodes the threshold DSL + window referenced by analysis-gate evaluations.",
|
|
14363
14594
|
inputSchema: exports_external.object({
|
|
14364
14595
|
owner_id: exports_external.string().describe("Devpad user ID whose templates to list")
|
|
14365
14596
|
}),
|
|
14366
14597
|
execute: async (client, input) => unwrap2(await client.pipelines.analysis_templates.list(input))
|
|
14367
|
-
},
|
|
14368
|
-
devpad_pipelines_analysis_templates_get: {
|
|
14598
|
+
}),
|
|
14599
|
+
devpad_pipelines_analysis_templates_get: define_tool({
|
|
14369
14600
|
name: "devpad_pipelines_analysis_templates_get",
|
|
14370
14601
|
description: "Get a single pipeline analysis template by id, scoped to its owner.",
|
|
14371
14602
|
inputSchema: exports_external.object({
|
|
@@ -14373,8 +14604,8 @@ var tools = {
|
|
|
14373
14604
|
owner_id: exports_external.string().describe("Owner ID (must match the template's owner)")
|
|
14374
14605
|
}),
|
|
14375
14606
|
execute: async (client, input) => unwrap2(await client.pipelines.analysis_templates.get(input.id, { owner_id: input.owner_id }))
|
|
14376
|
-
},
|
|
14377
|
-
devpad_pipelines_analysis_templates_create: {
|
|
14607
|
+
}),
|
|
14608
|
+
devpad_pipelines_analysis_templates_create: define_tool({
|
|
14378
14609
|
name: "devpad_pipelines_analysis_templates_create",
|
|
14379
14610
|
description: 'Create a new pipeline analysis template. `threshold_dsl` is a multi-line DSL: `metric_name OP value [: pending]` (OPs: > < >= <= =). Trailing ": pending" marks a breach as Pending rather than Fail. Server-side parse failure surfaces as `validation_error` with field=threshold_dsl. `window_ms` defaults to 600000 (10 min).',
|
|
14380
14611
|
inputSchema: exports_external.object({
|
|
@@ -14385,8 +14616,8 @@ var tools = {
|
|
|
14385
14616
|
window_ms: exports_external.number().int().positive().optional().describe("Analysis window in milliseconds. Default: 600000")
|
|
14386
14617
|
}),
|
|
14387
14618
|
execute: async (client, input) => unwrap2(await client.pipelines.analysis_templates.create(input))
|
|
14388
|
-
},
|
|
14389
|
-
devpad_pipelines_analysis_templates_update: {
|
|
14619
|
+
}),
|
|
14620
|
+
devpad_pipelines_analysis_templates_update: define_tool({
|
|
14390
14621
|
name: "devpad_pipelines_analysis_templates_update",
|
|
14391
14622
|
description: "Partially update a pipeline analysis template. Only the supplied fields are touched. Re-validates threshold_dsl when present.",
|
|
14392
14623
|
inputSchema: exports_external.object({
|
|
@@ -14401,8 +14632,8 @@ var tools = {
|
|
|
14401
14632
|
const { id: id2, ...patch } = input;
|
|
14402
14633
|
return unwrap2(await client.pipelines.analysis_templates.update(id2, patch));
|
|
14403
14634
|
}
|
|
14404
|
-
},
|
|
14405
|
-
devpad_pipelines_analysis_templates_delete: {
|
|
14635
|
+
}),
|
|
14636
|
+
devpad_pipelines_analysis_templates_delete: define_tool({
|
|
14406
14637
|
name: "devpad_pipelines_analysis_templates_delete",
|
|
14407
14638
|
description: "Hard-delete a pipeline analysis template. Does NOT consult pipeline_run.resolved_gates — runs snapshot their gate template at resolve-time, so deletion never orphans in-flight runs.",
|
|
14408
14639
|
inputSchema: exports_external.object({
|
|
@@ -14410,16 +14641,16 @@ var tools = {
|
|
|
14410
14641
|
owner_id: exports_external.string().describe("Owner ID (must match the template's owner)")
|
|
14411
14642
|
}),
|
|
14412
14643
|
execute: async (client, input) => unwrap2(await client.pipelines.analysis_templates.delete(input.id, { owner_id: input.owner_id }))
|
|
14413
|
-
},
|
|
14414
|
-
devpad_pipelines_oidc_trust_list: {
|
|
14644
|
+
}),
|
|
14645
|
+
devpad_pipelines_oidc_trust_list: define_tool({
|
|
14415
14646
|
name: "devpad_pipelines_oidc_trust_list",
|
|
14416
14647
|
description: "List GitHub Actions OIDC trust policies for an owner. Returned ordered by created_at DESC, id ASC to match the orchestrator's trust-matcher resolution order.",
|
|
14417
14648
|
inputSchema: exports_external.object({
|
|
14418
14649
|
owner_id: exports_external.string().describe("User ID whose trust policies to list")
|
|
14419
14650
|
}),
|
|
14420
14651
|
execute: async (client, input) => unwrap2(await client.pipelines.oidc_trust.list(input))
|
|
14421
|
-
},
|
|
14422
|
-
devpad_pipelines_oidc_trust_create: {
|
|
14652
|
+
}),
|
|
14653
|
+
devpad_pipelines_oidc_trust_create: define_tool({
|
|
14423
14654
|
name: "devpad_pipelines_oidc_trust_create",
|
|
14424
14655
|
description: 'Create a GitHub Actions OIDC trust policy. Authorises CI in repos owned by `github_owner` (filtered by `repo_pattern` and optional ref/environment lists) to mint orchestrator session tokens. Defaults: repo_pattern="*", allowed_actions=["artifacts:upload","runs:start"], session_ttl_seconds=900.',
|
|
14425
14656
|
inputSchema: exports_external.object({
|
|
@@ -14433,8 +14664,8 @@ var tools = {
|
|
|
14433
14664
|
session_ttl_seconds: exports_external.number().int().positive().optional().describe("Session token TTL. Default: 900 (15 min)")
|
|
14434
14665
|
}),
|
|
14435
14666
|
execute: async (client, input) => unwrap2(await client.pipelines.oidc_trust.create(input))
|
|
14436
|
-
},
|
|
14437
|
-
devpad_pipelines_oidc_trust_update: {
|
|
14667
|
+
}),
|
|
14668
|
+
devpad_pipelines_oidc_trust_update: define_tool({
|
|
14438
14669
|
name: "devpad_pipelines_oidc_trust_update",
|
|
14439
14670
|
description: "Partially update a GitHub Actions OIDC trust policy. Only the supplied fields are touched; validation runs server-side against the merged record.",
|
|
14440
14671
|
inputSchema: exports_external.object({
|
|
@@ -14452,8 +14683,8 @@ var tools = {
|
|
|
14452
14683
|
const { id: id2, ...patch } = input;
|
|
14453
14684
|
return unwrap2(await client.pipelines.oidc_trust.update(id2, patch));
|
|
14454
14685
|
}
|
|
14455
|
-
},
|
|
14456
|
-
devpad_pipelines_oidc_trust_delete: {
|
|
14686
|
+
}),
|
|
14687
|
+
devpad_pipelines_oidc_trust_delete: define_tool({
|
|
14457
14688
|
name: "devpad_pipelines_oidc_trust_delete",
|
|
14458
14689
|
description: "Soft-delete a GitHub Actions OIDC trust policy. The row is preserved for audit; the matcher and list operations skip soft-deleted rows.",
|
|
14459
14690
|
inputSchema: exports_external.object({
|
|
@@ -14461,7 +14692,7 @@ var tools = {
|
|
|
14461
14692
|
owner_id: exports_external.string().describe("Owner ID (must match the policy's owner)")
|
|
14462
14693
|
}),
|
|
14463
14694
|
execute: async (client, input) => unwrap2(await client.pipelines.oidc_trust.delete(input.id, { owner_id: input.owner_id }))
|
|
14464
|
-
}
|
|
14695
|
+
})
|
|
14465
14696
|
};
|
|
14466
14697
|
var toolNames = Object.keys(tools);
|
|
14467
14698
|
function getTool(name) {
|
|
@@ -21753,7 +21984,7 @@ function zodToMCPSchema(schema) {
|
|
|
21753
21984
|
target: "openApi3",
|
|
21754
21985
|
$refStrategy: "none"
|
|
21755
21986
|
});
|
|
21756
|
-
const { $schema, ...cleanSchema } = jsonSchema;
|
|
21987
|
+
const { $schema: _, ...cleanSchema } = jsonSchema;
|
|
21757
21988
|
if (jsonSchema.type === "object")
|
|
21758
21989
|
return jsonSchema;
|
|
21759
21990
|
return {
|
|
@@ -21763,7 +21994,7 @@ function zodToMCPSchema(schema) {
|
|
|
21763
21994
|
},
|
|
21764
21995
|
required: []
|
|
21765
21996
|
};
|
|
21766
|
-
} catch
|
|
21997
|
+
} catch {
|
|
21767
21998
|
return {
|
|
21768
21999
|
type: "object",
|
|
21769
22000
|
properties: {},
|
|
@@ -21774,7 +22005,7 @@ function zodToMCPSchema(schema) {
|
|
|
21774
22005
|
function assertObjectRootSchema(tools2) {
|
|
21775
22006
|
tools2.forEach((tool, i) => {
|
|
21776
22007
|
if (tool.inputSchema.type !== "object") {
|
|
21777
|
-
console.error(`! Tool ${i} (${tool.name}) has non-object root type: ${tool.inputSchema.type}`);
|
|
22008
|
+
console.error(`! Tool ${String(i)} (${tool.name}) has non-object root type: ${String(tool.inputSchema.type)}`);
|
|
21778
22009
|
}
|
|
21779
22010
|
});
|
|
21780
22011
|
return tools2;
|
|
@@ -21854,7 +22085,10 @@ class DevpadMCPServer {
|
|
|
21854
22085
|
if (request.method === "tools/list") {
|
|
21855
22086
|
result = { tools: tools2 };
|
|
21856
22087
|
} else if (request.method === "tools/call") {
|
|
21857
|
-
const
|
|
22088
|
+
const params = request.params;
|
|
22089
|
+
if (!params)
|
|
22090
|
+
throw new Error("Missing params for tools/call");
|
|
22091
|
+
const { name, arguments: args } = params;
|
|
21858
22092
|
const tool = getTool(name);
|
|
21859
22093
|
if (!tool) {
|
|
21860
22094
|
throw new Error(`Unknown tool: ${name}`);
|