@devpad/mcp 2.0.4 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +73 -56
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -4,25 +4,43 @@ var __getProtoOf = Object.getPrototypeOf;
4
4
  var __defProp = Object.defineProperty;
5
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ function __accessProp(key) {
8
+ return this[key];
9
+ }
10
+ var __toESMCache_node;
11
+ var __toESMCache_esm;
7
12
  var __toESM = (mod, isNodeMode, target) => {
13
+ var canCache = mod != null && typeof mod === "object";
14
+ if (canCache) {
15
+ var cache = isNodeMode ? __toESMCache_node ??= new WeakMap : __toESMCache_esm ??= new WeakMap;
16
+ var cached = cache.get(mod);
17
+ if (cached)
18
+ return cached;
19
+ }
8
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
9
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
10
22
  for (let key of __getOwnPropNames(mod))
11
23
  if (!__hasOwnProp.call(to, key))
12
24
  __defProp(to, key, {
13
- get: () => mod[key],
25
+ get: __accessProp.bind(mod, key),
14
26
  enumerable: true
15
27
  });
28
+ if (canCache)
29
+ cache.set(mod, to);
16
30
  return to;
17
31
  };
18
32
  var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
33
+ var __returnValue = (v) => v;
34
+ function __exportSetter(name, newValue) {
35
+ this[name] = __returnValue.bind(null, newValue);
36
+ }
19
37
  var __export = (target, all) => {
20
38
  for (var name in all)
21
39
  __defProp(target, name, {
22
40
  get: all[name],
23
41
  enumerable: true,
24
42
  configurable: true,
25
- set: (newValue) => all[name] = () => newValue
43
+ set: __exportSetter.bind(all, name)
26
44
  });
27
45
  };
28
46
 
@@ -10166,47 +10184,7 @@ var coerce = {
10166
10184
  date: (arg) => ZodDate.create({ ...arg, coerce: true })
10167
10185
  };
10168
10186
  var NEVER = INVALID;
10169
- // ../api/dist/chunk-XGQQPYSB.js
10170
- var ArrayBufferedQueue = class {
10171
- constructor(_capacity) {
10172
- this._capacity = _capacity;
10173
- this._entries = [];
10174
- this._head = 0;
10175
- this._tail = 0;
10176
- this._size = 0;
10177
- }
10178
- latest() {
10179
- if (this._size === 0)
10180
- return null;
10181
- return this._entries[this._tail - 1] ?? null;
10182
- }
10183
- list() {
10184
- if (this._size === 0)
10185
- return [];
10186
- if (this._head < this._tail) {
10187
- return this._entries.slice(this._head, this._tail);
10188
- }
10189
- return this._entries.slice(this._head).concat(this._entries.slice(0, this._tail));
10190
- }
10191
- add(item) {
10192
- if (this._size === this._capacity) {
10193
- this._head = (this._head + 1) % this._capacity;
10194
- } else {
10195
- this._size++;
10196
- }
10197
- this._entries[this._tail] = item;
10198
- this._tail = (this._tail + 1) % this._capacity;
10199
- }
10200
- size() {
10201
- return this._size;
10202
- }
10203
- clear() {
10204
- this._entries = [];
10205
- this._head = 0;
10206
- this._tail = 0;
10207
- this._size = 0;
10208
- }
10209
- };
10187
+ // ../api/dist/chunk-7SQVSGWV.js
10210
10188
  var upsert_project = exports_external.object({
10211
10189
  id: exports_external.string().optional().nullable(),
10212
10190
  project_id: exports_external.string(),
@@ -10241,13 +10219,6 @@ var upsert_todo = exports_external.object({
10241
10219
  force: exports_external.boolean().optional().describe("Override protection on user-modified entities")
10242
10220
  });
10243
10221
  var update_action = exports_external.union([exports_external.literal("CONFIRM"), exports_external.literal("UNLINK"), exports_external.literal("CREATE"), exports_external.literal("IGNORE"), exports_external.literal("DELETE"), exports_external.literal("COMPLETE")]);
10244
- var ConfigSchema = exports_external.object({
10245
- tags: exports_external.array(exports_external.object({
10246
- name: exports_external.string(),
10247
- match: exports_external.array(exports_external.string())
10248
- })),
10249
- ignore: exports_external.array(exports_external.string().regex(/^[^]*$/, "Invalid path"))
10250
- });
10251
10222
  var upsert_tag = exports_external.object({
10252
10223
  id: exports_external.string().optional(),
10253
10224
  title: exports_external.string(),
@@ -11809,6 +11780,46 @@ function handleNetworkError(error) {
11809
11780
  const message = error instanceof Error ? error.message : "Unknown network error";
11810
11781
  throw new NetworkError(message);
11811
11782
  }
11783
+ var ArrayBufferedQueue = class {
11784
+ constructor(_capacity) {
11785
+ this._capacity = _capacity;
11786
+ this._entries = [];
11787
+ this._head = 0;
11788
+ this._tail = 0;
11789
+ this._size = 0;
11790
+ }
11791
+ latest() {
11792
+ if (this._size === 0)
11793
+ return null;
11794
+ return this._entries[this._tail - 1] ?? null;
11795
+ }
11796
+ list() {
11797
+ if (this._size === 0)
11798
+ return [];
11799
+ if (this._head < this._tail) {
11800
+ return this._entries.slice(this._head, this._tail);
11801
+ }
11802
+ return this._entries.slice(this._head).concat(this._entries.slice(0, this._tail));
11803
+ }
11804
+ add(item) {
11805
+ if (this._size === this._capacity) {
11806
+ this._head = (this._head + 1) % this._capacity;
11807
+ } else {
11808
+ this._size++;
11809
+ }
11810
+ this._entries[this._tail] = item;
11811
+ this._tail = (this._tail + 1) % this._capacity;
11812
+ }
11813
+ size() {
11814
+ return this._size;
11815
+ }
11816
+ clear() {
11817
+ this._entries = [];
11818
+ this._head = 0;
11819
+ this._tail = 0;
11820
+ this._size = 0;
11821
+ }
11822
+ };
11812
11823
  var ApiClient = class {
11813
11824
  constructor(options) {
11814
11825
  this.category = "api";
@@ -12118,7 +12129,8 @@ var ApiClient2 = class {
12118
12129
  name: data.name ?? milestone.name,
12119
12130
  description: data.description ?? milestone.description,
12120
12131
  target_time: data.target_time ?? milestone.target_time,
12121
- target_version: data.target_version ?? milestone.target_version
12132
+ target_version: data.target_version ?? milestone.target_version,
12133
+ finished_at: data.finished_at !== undefined ? data.finished_at : milestone.finished_at
12122
12134
  };
12123
12135
  return this.clients.milestones.patch(`/milestones/${id}`, {
12124
12136
  body: updateData
@@ -12143,7 +12155,8 @@ var ApiClient2 = class {
12143
12155
  milestone_id: goal.milestone_id,
12144
12156
  name: data.name ?? goal.name,
12145
12157
  description: data.description ?? goal.description,
12146
- target_time: data.target_time ?? goal.target_time
12158
+ target_time: data.target_time ?? goal.target_time,
12159
+ finished_at: data.finished_at !== undefined ? data.finished_at : goal.finished_at
12147
12160
  };
12148
12161
  return this.clients.goals.patch(`/goals/${id}`, {
12149
12162
  body: updateData
@@ -12499,13 +12512,15 @@ var tools = {
12499
12512
  name: input.name,
12500
12513
  description: input.description,
12501
12514
  target_time: input.target_time,
12502
- target_version: input.target_version
12515
+ target_version: input.target_version,
12516
+ finished_at: input.finished_at
12503
12517
  }) : await client.milestones.create({
12504
12518
  project_id: input.project_id,
12505
12519
  name: input.name,
12506
12520
  description: input.description,
12507
12521
  target_time: input.target_time,
12508
- target_version: input.target_version
12522
+ target_version: input.target_version,
12523
+ finished_at: input.finished_at
12509
12524
  }))
12510
12525
  },
12511
12526
  devpad_goals_list: {
@@ -12527,12 +12542,14 @@ var tools = {
12527
12542
  execute: async (client, input) => unwrap2(input.id ? await client.goals.update(input.id, {
12528
12543
  name: input.name,
12529
12544
  description: input.description,
12530
- target_time: input.target_time
12545
+ target_time: input.target_time,
12546
+ finished_at: input.finished_at
12531
12547
  }) : await client.goals.create({
12532
12548
  milestone_id: input.milestone_id,
12533
12549
  name: input.name,
12534
12550
  description: input.description,
12535
- target_time: input.target_time
12551
+ target_time: input.target_time,
12552
+ finished_at: input.finished_at
12536
12553
  }))
12537
12554
  },
12538
12555
  devpad_tags_list: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@devpad/mcp",
3
- "version": "2.0.4",
3
+ "version": "2.1.2",
4
4
  "description": "MCP server for devpad - exposes devpad API functionality via Model Context Protocol",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",